Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conda and pip installation fails with python 3.13 #2522

Closed
tvwenger opened this issue Dec 4, 2024 · 2 comments
Closed

conda and pip installation fails with python 3.13 #2522

tvwenger opened this issue Dec 4, 2024 · 2 comments
Labels

Comments

@tvwenger
Copy link

tvwenger commented Dec 4, 2024

Describe the bug
Neither the conda installation instructions nor the pip installation instructions, both found on this page, are able install a working version of glue.

To Reproduce
First, conda via the glueviz channel:

conda update -n root conda
conda create -n glue -c conda-forge python pip
conda activate glue
conda install -c glueviz glueviz
python --version
# Python 3.13.0
glue --version

Traceback:

Traceback (most recent call last):
  File "/home/twenger/miniconda3/envs/glue/bin/glue", line 6, in <module>
    from glue.main import main
  File "/home/twenger/miniconda3/envs/glue/lib/python3.13/site-packages/glue/__init__.py", line 22, in <module>
    from .config import load_configuration
  File "/home/twenger/miniconda3/envs/glue/lib/python3.13/site-packages/glue/config.py", line 2, in <module>
    import imp
ModuleNotFoundError: No module named 'imp'

Next, conda via the conda-forge channel:

conda deactivate
conda remove --all -n glue
conda create -n glue -c conda-forge python pip
conda activate glue
conda install -c conda-forge glueviz
python --version
# Python 3.13.0
glue --version

Error:

Command 'glue' not found, but can be installed with:
sudo apt install glueviz

Finally, pip:

conda deactivate
conda remove --all -n glue
conda create -n glue -c conda-forge python pip
conda activate glue
conda install -c conda-forge
pip install glueviz[all,qt]
# WARNING: glueviz 1.3.0 does not provide the extra 'all'
# WARNING: glueviz 1.3.0 does not provide the extra 'qt'
python --version
# Python 3.13.0
glue --version
# 1.21.1
glue

Traceback:

Traceback (most recent call last):
  File "/home/twenger/miniconda3/envs/glue/bin/glue", line 8, in <module>
    sys.exit(main())
             ~~~~^^
  File "/home/twenger/miniconda3/envs/glue/lib/python3.13/site-packages/glue_qt/main.py", line 253, in main
    start_glue(**kwargs)
    ~~~~~~~~~~^^^^^^^^^^
  File "/home/twenger/miniconda3/envs/glue/lib/python3.13/site-packages/glue_qt/main.py", line 145, in start_glue
    from glue_qt.utils.decorators import die_on_error
  File "/home/twenger/miniconda3/envs/glue/lib/python3.13/site-packages/glue_qt/utils/__init__.py", line 1, in <module>
    from .autocomplete_widget import *  # noqa
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/twenger/miniconda3/envs/glue/lib/python3.13/site-packages/glue_qt/utils/autocomplete_widget.py", line 9, in <module>
    from qtpy import QtGui, QtWidgets
  File "/home/twenger/miniconda3/envs/glue/lib/python3.13/site-packages/qtpy/__init__.py", line 293, in <module>
    raise QtBindingsNotFoundError from None
qtpy.QtBindingsNotFoundError: No Qt bindings could be found

Expected behavior
Installation should proceed as advertised.

Details:

  • Operating System: Ubuntu/WSL
  • Python version (python --version): 3.13
  • Glue version (glue --version): Didn't work
  • How you installed glue: See above
@tvwenger tvwenger added the bug label Dec 4, 2024
@astrofrog
Copy link
Member

@tvwenger - thanks for reporting this! The installation instructions for conda were out of date, see the latest version here now:

http://docs.glueviz.org/en/stable/installation/conda.html

Essentially you should use the conda-forge channel instead of the glueviz channel.

For the pip installation, there was an issue with the glueviz meta-package. You should now be able to try again and it should work (but let me know if not!)

@tvwenger
Copy link
Author

tvwenger commented Dec 4, 2024

Thanks for the quick update to the docs @astrofrog ! I can confirm that the pip and conda installations proceed correctly alongside python 3.12.7 (note the other issue about python 3.13).

@tvwenger tvwenger closed this as completed Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants