Skip to content

conda installation fails with python 3.13 #2522

@tvwenger

Description

@tvwenger

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions