Skip to content

Installation from pip fails with python 3.10 fails #245

Description

@nbrucy

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é.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions