git-cola needs pyside to start but does not depend on it
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
git-cola (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
root@LAPTOP-
Traceback (most recent call last):
File "/usr/lib/
from PySide import __version__ as PYSIDE_VERSION # analysis:ignore
ModuleNotFoundE
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/
from cola.main import main
File "/usr/share/
from . import app
File "/usr/share/
from qtpy import QtCore
File "/usr/lib/
raise PythonQtError('No Qt bindings could be found')
qtpy.PythonQtError: No Qt bindings could be found
root@LAPTOP-
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
tags: | added: cosmic packaging |
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.