DisplayCAL broken due to python dep

I'm on the testing branch with all my machines.

I just realized that DisplayCAL is broken on my machines, on launch it quits with the following error occurs:

$ displaycal
XDG: [Errno 2] No translation file found for domain: xdg-user-dirs
displaycal 3.8.1.1 2019-05-24T01:32:03.65864Z
   x86_64
Python 2.7.16 (default, Mar 11 2019, 18:59:25) 
[GCC 8.2.1 20181127]
ImportError: No module named faulthandler
12:00:30: Warning: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1013,wx containers,compatible with 2.8),
and wxPython used 3.0 (wchar_t,compiler with C++ ABI 1011,wx containers,compatible with 2.8).
/usr/lib64/python2.7/site-packages/wx-3.0-gtk3/wx/_core.py:16629: UserWarning: wxPython/wxWidgets release number mismatch
/usr/lib/python2.7/site-packages/DisplayCAL/edid.py:41: Warning: ImportError: No module named dbus
wxPython 3.0.2.0 gtk3 (classic)
Encoding: UTF-8
File system encoding: UTF-8
Fatal error: ImportError: No module named dbus

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/DisplayCAL/main.py", line 305, in main
    from DisplayCAL import main
  File "/usr/lib/python2.7/site-packages/DisplayCAL/DisplayCAL.py", line 76, in <module>
    import colord
  File "/usr/lib/python2.7/site-packages/DisplayCAL/colord.py", line 27, in <module>
    from util_dbus import DBusObject, DBusException, BUSTYPE_SYSTEM
  File "/usr/lib/python2.7/site-packages/DisplayCAL/util_dbus.py", line 6, in <module>
    import dbus
ImportError: No module named dbus
Exiting displaycal
Ran application exit handlers

dbus modules seems to be installed:

$ sudo pacman -Q python-dbus-common python-dbus dbus
python-dbus-common 1.2.8-2
python-dbus 1.2.8-2
dbus 1.12.14-1

Inxi output from my main machine:

ystem:    Host: athlon-manjaro Kernel: 5.1.7-1-MANJARO x86_64 bits: 64 compiler: gcc v: 8.3.0 Desktop: Xfce 4.13.4git-be04da 
           Distro: Manjaro Linux 
Machine:   Type: Desktop Mobo: BIOSTAR model: B450MH serial: <root required> UEFI: American Megatrends v: 5.14 
           date: 05/23/2019 
CPU:       Topology: 6-Core model: AMD Ryzen 5 2600 bits: 64 type: MT MCP arch: Zen+ rev: 2 L2 cache: 3072 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 81467 
           Speed: 1928 MHz min/max: 1550/3400 MHz Core speeds (MHz): 1: 1980 2: 1349 3: 1973 4: 1426 5: 1525 6: 1375 7: 1833 
           8: 1546 9: 2694 10: 1273 11: 2236 12: 1374 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Oland PRO [Radeon R7 240/340] vendor: XFX Pine driver: amdgpu v: kernel 
           bus ID: 08:00.0 
           Display: x11 server: X.Org 1.20.5 driver: amdgpu,ati unloaded: modesetting resolution: 1920x1200~60Hz 
           OpenGL: renderer: AMD Radeon HD 8500 series (OLAND DRM 3.30.0 5.1.7-1-MANJARO LLVM 8.0.0) v: 4.5 Mesa 19.0.6 
           direct render: Yes 
Audio:     Device-1: AMD Oland/Hainan/Cape Verde/Pitcairn HDMI Audio [Radeon HD 7000 Series] vendor: XFX Pine 
           driver: snd_hda_intel v: kernel bus ID: 08:00.1 
           Device-2: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: Biostar Microtech Intl Corp 
           driver: snd_hda_intel v: kernel bus ID: 0a:00.3 
           Sound Server: ALSA v: k5.1.7-1-MANJARO 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Biostar Microtech Intl Corp driver: r8169 
           v: kernel port: f000 bus ID: 04:00.0 
           IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: f4:b5:20:10:82:25 
Drives:    Local Storage: total: 231.03 GiB used: 83.74 GiB (36.2%) 
           ID-1: /dev/sda vendor: Crucial model: M4-CT128M4SSD2 size: 119.24 GiB 
           ID-2: /dev/sdb vendor: Kingston model: SHFS37A120G size: 111.79 GiB 
Partition: ID-1: / size: 100.58 GiB used: 36.36 GiB (36.1%) fs: ext4 dev: /dev/sdb2 
           ID-2: swap-1 size: 8.80 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sdb3 
Sensors:   System Temperatures: cpu: 40.0 C mobo: N/A gpu: amdgpu temp: 40 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 317 Uptime: 4m Memory: 7.80 GiB used: 1.44 GiB (18.5%) Init: systemd Compilers: gcc: 8.3.0 Shell: bash 
           v: 5.0.7 inxi: 3.0.34 

What package is missing here?

there seems to be a version mismatch. I have the same error presenting with KDE but all packages required are installed.

It's working for me on the unstable branch (and testing is currently in sync with unstable) so whatever version mismatch there is will be resolved as packages move through to stable.

You can switch up to testing if you want the packages faster.

2 Likes

good to know, I haven't applied today's testing-branch updates yet (still happening with 8th June 2019 ones) I'll do so this evening.

ah, i missed an important information: I'm on testing on all my machines...added this info in the opening post and moved the topic to the Testing category.

It's still not loading for me either after applying all available updates from testing. I must have had the updated python packages from 8th June 2019 update anyway. The mirrors I use are all shown as synchronised on the checker.

displaycal
XDG: [Errno 2] No translation file found for domain: xdg-user-dirs
displaycal 3.8.1.1 2019-05-24T01:32:03.65864Z
   x86_64
Python 2.7.16 (default, Mar 11 2019, 18:59:25) 
[GCC 8.2.1 20181127]
ImportError: No module named faulthandler
19:36:20: Warning: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1013,wx containers,compatible with 2.8),
and wxPython used 3.0 (wchar_t,compiler with C++ ABI 1011,wx containers,compatible with 2.8).
/usr/lib64/python2.7/site-packages/wx-3.0-gtk3/wx/_core.py:16629: UserWarning: wxPython/wxWidgets release number mismatch
/usr/lib/python2.7/site-packages/DisplayCAL/edid.py:41: Warning: ImportError: No module named dbus
wxPython 3.0.2.0 gtk3 (classic)
Encoding: UTF-8
File system encoding: UTF-8

The missing package is python2-dbus, after installing it DisplayCAL runs again.
$ sudo pacman -S python2-dbus

This should be added as a dependency to the DisplayCAL package.

3 Likes

I already have it installed and it still doesn't work. I'll reinstall the lot and hopefully that will fix it :man_shrugging:

EDIT - yeah that did it, it must have been a botched install of python2 on my system then.

EDIT 2 - I've emailed the maintainer and asked them to add the package to the dependency list.

Bruno the maintainer replied - This is fixed in displaycal 3.8.2.0, please update. :wink:

seems to be in unstable repo

EDIT - 3.8.2 runs fine without python2-dbus package installed. that's the fix, not adding it to the dependency list.

1 Like