Closed bmorris3 closed 6 months ago
Huh, you should have Qt by default?
https://github.com/ejeschke/ginga/blob/af1756aa0fb9bda485fee2e1706836382d60547b/setup.cfg#L50
It's not set as required in setup.cfg
because it is possible to use other back ends, like Gtk. I wonder how matplotlib takes care of choosing which one to install--maybe tries a few imports to see what is available during the install?
@pllim, installing qtpy
does not force a PyQt or PySide installation.
However, most people will want matplotlib
installed in order to see the plots, so once that is installed you have one of the back ends available.
Matplotlib has some fancy stuff but I got lost here:
I tried pip installing stginga
and had a similar issue with qt on an M1 mac Python 3.12.0.
(stginga) % stginga UI toolkit choose error: qt or gtk variants not found (stginga) % ginga UI toolkit choose error: qt or gtk variants not found
conda install PyQt
fixed this issue for me
Recommend installing by:
pip install ginga[qt5]
or
pip install ginga[qt6]
Closing, we can revisit later if a reasonable solution is found.
I tried
pip install ginga
today. I'm using py3.10.9 and ginga 4.0.1, on an M1 Mac with OS X 12.6.The install ran without issues, but running
$ ginga
yielded:After running
pip install PySide6
, the issues were resolved and ginga opened successfully.