-
Dear Ginga Developers, I am new to Ginga, trying to use it as part of PypeIt (Prochaska et al.). I am running MacOSX 11.4 (Big Sur), Python 3.10.2 and Ginga 3.2.0. I cannot seem to get the graphics working. Any attempts to use QT result in an error:
I tried a clean install of ginga and various installs of QT, still nothing (either one of the errors above or I tried a clean install of ginga with GTK3, I get I've googled these issues, and it seems they are known (QT doesn't play well with Mac 10.14 and above), but I have not seen any solutions. Does anybody have any suggestions? Many thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Hi @zakamska, I ran Ginga just fine on Mac OS X "Big Sur" (currently upgraded to "Monterey" and still running fine). Are you using an Anaconda or Miniconda environment (the preferred way for most folks)? |
Beta Was this translation helpful? Give feedback.
-
Sorry, I see from the traceback now that you are using anaconda. |
Beta Was this translation helpful? Give feedback.
-
When I try to build a conda environment for ginga using python 3.10 I get dependence conflicts: $ conda create -n py310 python=3.10
...
...
$ conda activate py310
(py310) macbook-pro-5: eric$ conda install scipy matplotlib pyqt qtpy pillow astropy
...
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: \
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
failed |
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
Specifications:
- pyqt -> python[version='>=2.7,<2.8.0a0|>=3.8,<3.9.0a0|>=3.9,<3.10.0a0|>=3.6,<3.7.0a0|>=3.5,<3.6.0a0|>=3.7,<3.8.0a0']
- qtpy -> python[version='>=2.7,<2.8.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0|>=3.5,<3.6.0a0']
Your python: python=3.10
If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.
The following specifications were found to be incompatible with each other:
...
(followed by a lot more package conflicts) I am not sure that all of the necessary packages for running Qt successfully are available using the standard conda repos. Could you try creating a separate python 3.9 environment and installing the necessary packages as shown above? Then "pip install ginga". |
Beta Was this translation helpful? Give feedback.
-
Excellent. Have a great day! |
Beta Was this translation helpful? Give feedback.
When I try to build a conda environment for ginga using python 3.10 I get dependence conflicts: