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

Installation from pip fails with python 3.10 fails #245

Open
nbrucy opened this issue Jan 31, 2023 · 2 comments
Open

Installation from pip fails with python 3.10 fails #245

nbrucy opened this issue Jan 31, 2023 · 2 comments

Comments

@nbrucy
Copy link

nbrucy commented Jan 31, 2023

Thank you for developing turbustat.

When trying to install turbustat within a python 3.10 environment from pip, I get the following error:

      Collecting cython==0.29.14
        Downloading Cython-0.29.14.tar.gz (2.1 MB)
           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 11.0 MB/s eta 0:00:00
        Preparing metadata (setup.py): started
        Preparing metadata (setup.py): finished with status 'error'
        error: subprocess-exited-with-error
      
        × python setup.py egg_info did not run successfully.
        │ exit code: 1
        ╰─> [>50 lines of output]
            AttributeError: module 'collections' has no attribute 'Iterable'
            [end of output]

If I follow https://stackoverflow.com/questions/72371859/attributeerror-module-collections-has-no-attribute-iterable and add from _collections_abc import Iterable in {python_env_dir}/lib/collections/__init__.py I run into another error:

Building wheels for collected packages: turbustat
  Building wheel for turbustat (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for turbustat (pyproject.toml) did not run successfully.
  │ exit code: -11
  ╰─> [>131 lines of output]
 running build_ext
      cythoning ./turbustat/simulator/spectrum.pyx to ./turbustat/simulator/spectrum.c
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for turbustat
Failed to build turbustat
ERROR: Could not build wheels for turbustat, which is required to install pyproject.toml-based projects

The installation through the git repo or with python 3.7 works well.

Cheers,

Noé.

@e-koch
Copy link
Member

e-koch commented Feb 16, 2023

thanks @nbrucy ! This is likely a weird interaction happening further upstream that I think I can track down.

Glad to hear 3.7 is working (I think 3.8 and 3.9 should be fine as well) and it's not an immediate blocker.

@CastleStar14654
Copy link

CastleStar14654 commented Mar 10, 2023

As for installing ver 1.2.1 on Python 3.10, simply removing ==0.29.14 from pyproject.toml works for me. But I do not know whether other bug would be introduced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants