Ubuntu studio 18.10 & displaycal_3.7.1.4-1

Home Forums Help and Support Ubuntu studio 18.10 & displaycal_3.7.1.4-1

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #15965

    dim162
    Participant
    • Offline

    I have upgraded to displaycal_3.7.1.4-1 in the ubuntu studio 18.10 & displaycal doesn’t start. In the bash, i have: ” Traceback (most recent call last):
    File “/usr/bin/displaycal”, line 4, in <module>
    from DisplayCAL.main import main
    ImportError: No module named DisplayCAL.main”

    #15972

    diehard67
    Participant
    • Offline

    I did this and sorta got it to work

    ubuntu 18.10 desktop

    cd /usr/lib/python2.7/
    
    sudo ln -s /DisplayCAL DisplayCAL

    now if I can just get a solution to this….

    diehard@silverbox:/usr/lib/python2.7$ displaycal
    XDG: [Errno 2] No translation file found for domain: xdg-user-dirs
    displaycal 3.7.1.4 2019-01-24T14:57:02.599726Z
    Ubuntu 18.10 cosmic x86_64
    Python 2.7.15+ (default, Oct 2 2018, 22:12:08)
    [GCC 8.2.0]
    ImportError: No module named faulthandler
    wxPython 3.0.2.0 gtk3 (classic)
    Encoding: UTF-8
    File system encoding: UTF-8
    Connection to 127.0.0.1:15411 failed: [Errno 111] Connection refused
    Starting up…
    SDL2: libSDL2-2.0.so.0
    SDL2_mixer: libSDL2_mixer-2.0.so.0
    Audio module: SDL 2.0
    Enumerating display devices and communication ports…
    /usr/bin
    ArgyllCMS 2.0.1
    …ok.
    Checking video card gamma table access for display 1…
    Dispwin: Warning – new_dispwin: Expected VideoLUT depth 8 doesn’t match actual 10
    VideoLUT has 1024 entries, interpolating to 256
    Dispwin: Warning – new_dispwin: Expected VideoLUT depth 8 doesn’t match actual 10
    Dispwin: Warning – new_dispwin: Expected VideoLUT depth 8 doesn’t match actual 10
    Verify: ‘test.cal’ IS loaded (discrepancy 0.0%)
    Dispwin: Warning – new_dispwin: Expected VideoLUT depth 8 doesn’t match actual 10
    …ok.
    Initializing GUI…

    wx._core.PyAssertionError: C++ assertion “cr && cairo_status(cr) == 0” failed at ../src/gtk/bitmap.cpp(1306) in CairoCreate():

    Traceback (most recent call last):
    File “/usr/lib/python2.7/dist-packages/wx-3.0-gtk3/wx/_core.py”, line 16765, in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
    File “/usr/lib/python2.7/DisplayCAL/DisplayCAL.py”, line 15500, in setup_frame
    app.frame = MainFrame(self.worker)
    File “/usr/lib/python2.7/DisplayCAL/DisplayCAL.py”, line 1383, in __init__
    self.setup_language()
    File “/usr/lib/python2.7/DisplayCAL/DisplayCAL.py”, line 1933, in setup_language
    BaseFrame.setup_language(self)
    File “/usr/lib/python2.7/DisplayCAL/wxwindows.py”, line 1866, in setup_language
    child.Label = translated
    File “/usr/lib/python2.7/DisplayCAL/wxwindows.py”, line 4694, in fset
    self.SetLabel(label)
    File “/usr/lib/python2.7/DisplayCAL/wxwindows.py”, line 4765, in SetLabel
    bmp = fancytext.RenderToBitmap(self._label, background)
    File “/usr/lib/python2.7/dist-packages/wx-3.0-gtk3/wx/lib/fancytext.py”, line 358, in RenderToBitmap
    dc.SelectObject(bmp)
    File “/usr/lib/python2.7/dist-packages/wx-3.0-gtk3/wx/_gdi.py”, line 5179, in SelectObject
    return _gdi_.MemoryDC_SelectObject(*args, **kwargs)
    PyAssertionError: C++ assertion “cr && cairo_status(cr) == 0” failed at ../src/gtk/bitmap.cpp(1306) in CairoCreate():

    as far as i can tell, i’m no expert, bug in wxgtk3

    #16014

    Florian Höch
    Administrator
    • Offline

    The *.deb packaging bug should have resolved itself over the past days, but you’ll need to re-download the updated *.deb (and likely do a bit of manual cleanup for the symlink you created).

    Sorry, no idea about the Cairo bug, but it might help to remove wxgtk3 and libcairo, then reinstall them (or switch to wxgtk4, although that package seems to be somewhat broken under Ubuntu because after installing it, import wx doesn’t work unless you manually add the wxPython-4.x folder to PYTHONPATH).

    #16029

    diehard67
    Participant
    • Offline

    ok, I installed the new deb file, no change, the symlink is still needed.

    and when I tried to remove wxgtk3 the package manager wanted to remove both displaycal and kicad.  I removed it anyway and reinstalled displaycal, the system reinstalled wxgtk3 automaticly with it.

    is there a way to make displaycal use wxgtk4 while haveing wxgtk3 still installed???? and if so, how?????????

    edit:

    I managed to get displaycalto use wxgtk4, no help, same error.

    so it would seem that the issue is with cairo.

    I got wxgtk4 to load by modifying the little shell script that launches displaycal

    #! /usr/bin/python
    # -*- coding: utf-8 -*-
    
    import sys
    sys.path.insert(0, '/usr/lib/python2.7/dist-packages/wxPython-4.0.1-py2.7-linux-amd64.egg')
    import wx
    wx.VERSION
    
    from DisplayCAL.main import main
    
    main()
    • This reply was modified 5 years, 2 months ago by diehard67. Reason: did some hacking
    #16033

    Florian Höch
    Administrator
    • Offline

    ok, I installed the new deb file, no change, the symlink is still needed.

    Then it’s not the new deb and you may have to wait for the mirrors to get updated. The new one has a creation date of 2018-02-28 (you can check that when opening the deb in e.g. file roller to see the archive contents).

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Log in or Register

Display Calibration and Characterization powered by ArgyllCMS