On 2018/09/15 18:28, Klemens Nanni wrote: > On Sat, Sep 15, 2018 at 05:15:45PM +0200, Björn Ketelaars wrote: > > Instead of using the bundled qtpy use the version in ports. No issues > > found on amd64. > Sounds good. What about this from upstream README: > > Set QT_API=pyqt4 in your environment if you have both versions > of PyQt installed and want to ensure that PyQt4 is used. > > Dependencies are lacking ${MODPY_FLAVOR}. > > git-cola runs fine with your diff but I still see this: > > /usr/local/lib/python2.7/site-packages/qtpy/__init__.py:211: > RuntimeWarning: Selected binding "pyqt5" could not be found, using "pyqt" > 'using "{}"'.format(initial_api, API), RuntimeWarning) > > > As a side note, git-cola does not seem to work with Python 3 on our site: > > $ git-cola > Traceback (most recent call last): > File "/usr/local/lib/python3.6/site-packages/qtpy/__init__.py", line > 199, in <module> > from PySide import __version__ as PYSIDE_VERSION # analysis:ignore > ModuleNotFoundError: No module named 'PySide'
That's because you don't have any supported qt backend installed - IIRC if you install py3-qt5 it works. git-cola uses the first one it finds out of py-qt5, py-qt4, pyside - if none of them are found it shows the "module not found" error for the last one it tried. (pyside isn't in ports, py-qt4 doesn't have a py3 flavour, py-qt5 does). > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "/usr/local/bin/git-cola", line 53, in <module> > from cola.main import main > File "/usr/local/share/git-cola/lib/cola/main.py", line 6, in <module> > from . import app > File "/usr/local/share/git-cola/lib/cola/app.py", line 15, in <module> > from qtpy import QtCore > File "/usr/local/lib/python3.6/site-packages/qtpy/__init__.py", line > 205, in <module> > raise PythonQtError('No Qt bindings could be found') > qtpy.PythonQtError: No Qt bindings could be found >