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'

        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

Reply via email to