[MacPorts] #52868: git-cola: no qt bindings could be found, wrong python version?

MacPorts noreply at macports.org
Sun Nov 13 03:42:52 CET 2016


#52868: git-cola: no qt bindings could be found, wrong python version?
--------------------+----------------------
 Reporter:  skymoo  |      Owner:  raimue
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:  2.3.4
 Keywords:          |       Port:  git-cola
--------------------+----------------------
 Just installed `git-cola` on a Sierra machine and when trying to run it I
 receive the following:

 {{{
 $ git-cola
 Traceback (most recent call last):
   File "/opt/local/bin/git-cola", line 53, in <module>
     from cola.main import main
   File "/opt/local/share/git-cola/lib/cola/main.py", line 9, in <module>
     from .app import add_common_arguments
   File "/opt/local/share/git-cola/lib/cola/app.py", line 32, in <module>
     from qtpy import QtCore
   File "/opt/local/share/git-cola/lib/qtpy/__init__.py", line 125, in
 <module>
     raise PythonQtError('No Qt bindings could be found')
 qtpy.PythonQtError: No Qt bindings could be found
 $
 }}}

 From the port dependencies it seems that `git-cola` is depending on
 `python35` however the `git-cola` script is using `python27` as it's
 interpreter:

 {{{
 $ head -1 /opt/local/bin/git-cola
 #!/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
 $
 }}}

 If I manually run the script with the `python35` interpreter then is
 starts but isn't displayed correctly, see attached screen shot. I assume
 this is related to QT5 not support Sierra properly yet?

--
Ticket URL: <https://trac.macports.org/ticket/52868>
MacPorts <https://www.macports.org/>
Ports system for macOS



More information about the macports-tickets mailing list