conda-forge / gemmi-feedstock

A conda-smithy repository for gemmi.
BSD 3-Clause "New" or "Revised" License
1 stars 5 forks source link

Since v0.6.0 cannot "import gemmi" #53

Closed neumannrf closed 1 year ago

neumannrf commented 1 year ago

Solution to issue cannot be found in the documentation.

Issue

I had been using gemmi-0.5.8 until recently, but when I inadvertently upgraded to gemmi-0.6.0, I lost the ability to import the Python library.

Steps to reproduce

  1. Create a fresh environment with conda create -y -n gemmi gemmi=0.6.0
  2. Activate the environment with conda activate gemmi
  3. Open a Python terminal with python
  4. Try to import the library and get this error

    >>> import gemmi
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    ModuleNotFoundError: No module named 'gemmi'

Note

Downgrading to v0.5.8 fixes it, but several packages (e.g. pyGAPS) that depend on gemmi will install the latest version.

Originally reported to project-gemmi/gemmi#259.

Installed packages

# packages in environment at /opt/homebrew/Caskroom/miniconda/base/envs/gemmi:
#
# Name                    Version                   Build  Channel
bzip2                     1.0.8                h3422bc3_4    conda-forge
ca-certificates           2022.12.7            h4653dfc_0    conda-forge
gemmi                     0.6.0           py311h7b25133_0    conda-forge
libcxx                    15.0.7               h75e25f2_0    conda-forge
libffi                    3.4.2                h3422bc3_5    conda-forge
libsqlite                 3.40.0               h76d750c_0    conda-forge
libzlib                   1.2.13               h03a7124_4    conda-forge
ncurses                   6.3                  h07bb92c_1    conda-forge
openssl                   3.1.0                h03a7124_0    conda-forge
pip                       23.0.1             pyhd8ed1ab_0    conda-forge
python                    3.11.0          h3ba56d0_1_cpython    conda-forge
python_abi                3.11                    3_cp311    conda-forge
readline                  8.1.2                h46ed386_0    conda-forge
setuptools                67.6.0             pyhd8ed1ab_0    conda-forge
tk                        8.6.12               he1e0b03_0    conda-forge
tzdata                    2022g                h191b570_0    conda-forge
wheel                     0.40.0             pyhd8ed1ab_0    conda-forge
xz                        5.2.6                h57fd34a_0    conda-forge

Environment info

active environment : gemmi
    active env location : /opt/homebrew/Caskroom/miniconda/base/envs/gemmi
            shell level : 1
       user config file : /Users/rneumann/.condarc
 populated config files : /Users/rneumann/.condarc
          conda version : 23.1.0
    conda-build version : not installed
         python version : 3.10.9.final.0
       virtual packages : __archspec=1=arm64
                          __osx=13.2.1=0
                          __unix=0=0
       base environment : /opt/homebrew/Caskroom/miniconda/base  (writable)
      conda av data dir : /opt/homebrew/Caskroom/miniconda/base/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/osx-arm64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/osx-arm64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/osx-arm64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /opt/homebrew/Caskroom/miniconda/base/pkgs
                          /Users/rneumann/.conda/pkgs
       envs directories : /opt/homebrew/Caskroom/miniconda/base/envs
                          /Users/rneumann/.conda/envs
               platform : osx-arm64
             user-agent : conda/23.1.0 requests/2.28.2 CPython/3.10.9 Darwin/22.3.0 OSX/13.2.1
                UID:GID : 501:20
             netrc file : None
           offline mode : False