#64383 closed defect (fixed)
git-cola @3.1 fails to launch
Reported by: | odysseus9672 (Sean Lake) | Owned by: | raimue (Rainer Müller) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | git-cola |
Description
When I try to launch git-cola
in the command line I get the following error
Seans-Work-Macbook-Pro:FASTView sean$ git-cola Traceback (most recent call last): File "/opt/local/bin/git-cola", line 55, in <module> from cola.main import main File "/opt/local/share/git-cola/lib/cola/main.py", line 7, in <module> from . import app File "/opt/local/share/git-cola/lib/cola/app.py", line 18, in <module> from qtpy import QtCore File "/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/qtpy/__init__.py", line 106, in <module> assert API in (PYQT5_API + PYQT6_API + PYSIDE2_API + PYSIDE6_API) AssertionError
This looks like it might actually be a bug in py36-pyqt4 @4.12.1_3
.
git-cola +qt5
is not affected by this error.
Change History (5)
comment:1 Changed 3 years ago by jmroot (Joshua Root)
Owner: | set to raimue |
---|---|
Status: | new → assigned |
comment:2 Changed 3 years ago by reneeotten (Renee Otten)
comment:3 Changed 20 months ago by reneeotten (Renee Otten)
port updated in this commit - no longer uses Qt4.
comment:4 Changed 20 months ago by reneeotten (Renee Otten)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:5 Changed 20 months ago by odysseus9672 (Sean Lake)
Git-cola still fails to launch for me. Should I open another ticket? Now the error text reads:
Seans-Work-Macbook-Pro:~ sean$ git-cola You do not seem to have PyQt (or PySide) and qtpy installed. Please install the PyQt (or PySide) and qtpy into your Python environment. For example, on a Debian/Ubuntu system you can install these using apt: sudo apt install python3-pyqt5 python3-pyqt5.qtwebkit python3-qtpy
For the record, I have the following installed:
py311-pyqt5 @5.15.9_0 (active) py311-pyqt5-sip @12.11.1_0 (active) py311-qtpy @2.3.0_0 (active)
so I'm not sure what additional package I should install. Is there a missing dependency, or is this just a bug?
Note: See
TracTickets for help on using
tickets.
support for Qt4 was removed in the latest
py-qtpy
release (v2.0) - I guess it's time to remove theqt4
variant from thegit-cola
port.[edit: I see the `git-cola` port could be updated, but also that it vendors the `qtpy` package. So to keep full compatibility with what upstream supports, I guess the port could use the internal `qtpy` version instead of using MacPort's own port. I'll leave that to the maintainer to decide]