git-cola needs pyside to start but does not depend on it

Bug #1799985 reported by Darafei Praliaskouski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
git-cola (Ubuntu)
New
Undecided
Unassigned

Bug Description

root@LAPTOP-A1BF6K4V:~# git-cola
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/qtpy/__init__.py", line 148, in <module>
    from PySide import __version__ as PYSIDE_VERSION # analysis:ignore
ModuleNotFoundError: No module named 'PySide'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/git-cola", line 55, in <module>
    from cola.main import main
  File "/usr/share/git-cola/lib/cola/main.py", line 7, in <module>
    from . import app
  File "/usr/share/git-cola/lib/cola/app.py", line 15, in <module>
    from qtpy import QtCore
  File "/usr/lib/python3/dist-packages/qtpy/__init__.py", line 154, in <module>
    raise PythonQtError('No Qt bindings could be found')
qtpy.PythonQtError: No Qt bindings could be found
root@LAPTOP-A1BF6K4V:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.10
DISTRIB_CODENAME=cosmic
DISTRIB_DESCRIPTION="Ubuntu 18.10"

tags: added: cosmic packaging
Revision history for this message
kbro (kevin-broadey) wrote :

Running Ubuntu 20.04 under Windows 10 WSL I still get the "PySide" problem even though PyQt5 is installed as a dependency of git-cola by apt install. The problem is that libQt5Core.so.5 fails to load because it calls a kernel function that doesn't exist in the distribution I'm using. The fix is to run "sudo strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5".

See https://askubuntu.com/a/1163268/358938 for the discussion that led me to this fix.

I know this isn't git-cola's fault, but hopefully others will find this solution when they search for the same symptom as me.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.