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

Pip installation from PyPI fails on Python 3.10 #621

Closed
galenseilis opened this issue Feb 27, 2022 · 4 comments
Closed

Pip installation from PyPI fails on Python 3.10 #621

galenseilis opened this issue Feb 27, 2022 · 4 comments

Comments

@galenseilis
Copy link

Describe the bug

Pip installation failed on Archlinux.

To reproduce
Simply open up a BASH session and call pip3 install giotto-tda.

Expected behavior
The code above should terminate with an output saying successfully installed giotto-tda, or something similar.

Actual behaviour

$ pip3 install giotto-tda
Defaulting to user installation because normal site-packages is not writeable
Collecting giotto-tda
  Using cached giotto-tda-0.1.4.tar.gz (99 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy>=1.17.0 in /usr/lib/python3.10/site-packages (from giotto-tda) (1.21.5)
Requirement already satisfied: scipy>=0.17.0 in /usr/lib/python3.10/site-packages (from giotto-tda) (1.7.3)
Requirement already satisfied: joblib>=0.11 in /home/galen/.local/lib/python3.10/site-packages (from giotto-tda) (1.1.0)
Requirement already satisfied: scikit-learn>=0.22.0 in /home/galen/.local/lib/python3.10/site-packages (from giotto-tda) (1.0.2)
Requirement already satisfied: matplotlib>=3.0.3 in /usr/lib/python3.10/site-packages (from giotto-tda) (3.5.1)
Requirement already satisfied: plotly>=4.4.1 in /home/galen/.local/lib/python3.10/site-packages (from giotto-tda) (5.6.0)
Requirement already satisfied: ipywidgets>=7.5.1 in /usr/lib/python3.10/site-packages (from giotto-tda) (7.6.5)
Requirement already satisfied: python-igraph in /home/galen/.local/lib/python3.10/site-packages (from giotto-tda) (0.9.9)
Requirement already satisfied: cycler>=0.10 in /usr/lib/python3.10/site-packages (from matplotlib>=3.0.3->giotto-tda) (0.10.0)
Requirement already satisfied: fonttools>=4.22.0 in /usr/lib/python3.10/site-packages (from matplotlib>=3.0.3->giotto-tda) (4.28.5)
Requirement already satisfied: kiwisolver>=1.0.1 in /usr/lib/python3.10/site-packages (from matplotlib>=3.0.3->giotto-tda) (1.3.2)
Requirement already satisfied: packaging>=20.0 in /usr/lib/python3.10/site-packages (from matplotlib>=3.0.3->giotto-tda) (20.9)
Requirement already satisfied: pillow>=6.2.0 in /usr/lib/python3.10/site-packages (from matplotlib>=3.0.3->giotto-tda) (9.0.0)
Requirement already satisfied: pyparsing>=2.2.1 in /usr/lib/python3.10/site-packages (from matplotlib>=3.0.3->giotto-tda) (2.4.7)
Requirement already satisfied: python-dateutil>=2.7 in /usr/lib/python3.10/site-packages (from matplotlib>=3.0.3->giotto-tda) (2.8.2)
Requirement already satisfied: six in /home/galen/.local/lib/python3.10/site-packages (from plotly>=4.4.1->giotto-tda) (1.15.0)
Requirement already satisfied: tenacity>=6.2.0 in /home/galen/.local/lib/python3.10/site-packages (from plotly>=4.4.1->giotto-tda) (8.0.1)
Requirement already satisfied: threadpoolctl>=2.0.0 in /home/galen/.local/lib/python3.10/site-packages (from scikit-learn>=0.22.0->giotto-tda) (3.0.0)
Requirement already satisfied: igraph==0.9.9 in /home/galen/.local/lib/python3.10/site-packages (from python-igraph->giotto-tda) (0.9.9)
Requirement already satisfied: texttable>=1.6.2 in /usr/lib/python3.10/site-packages (from igraph==0.9.9->python-igraph->giotto-tda) (1.6.4)
Building wheels for collected packages: giotto-tda
  Building wheel for giotto-tda (setup.py) ... /[sudo] password for galen: 
error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [179 lines of output]
      /usr/lib/python3.10/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
        warnings.warn(
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-3.10
      creating build/lib.linux-x86_64-3.10/gtda
      copying gtda/pipeline.py -> build/lib.linux-x86_64-3.10/gtda
      copying gtda/base.py -> build/lib.linux-x86_64-3.10/gtda
      copying gtda/_version.py -> build/lib.linux-x86_64-3.10/gtda
      copying gtda/__init__.py -> build/lib.linux-x86_64-3.10/gtda
      creating build/lib.linux-x86_64-3.10/gtda/utils
      copying gtda/utils/validation.py -> build/lib.linux-x86_64-3.10/gtda/utils
      copying gtda/utils/testing.py -> build/lib.linux-x86_64-3.10/gtda/utils
      copying gtda/utils/_docs.py -> build/lib.linux-x86_64-3.10/gtda/utils
      copying gtda/utils/__init__.py -> build/lib.linux-x86_64-3.10/gtda/utils
      creating build/lib.linux-x86_64-3.10/gtda/time_series
      copying gtda/time_series/target.py -> build/lib.linux-x86_64-3.10/gtda/time_series
      copying gtda/time_series/preprocessing.py -> build/lib.linux-x86_64-3.10/gtda/time_series
      copying gtda/time_series/multivariate.py -> build/lib.linux-x86_64-3.10/gtda/time_series
      copying gtda/time_series/features.py -> build/lib.linux-x86_64-3.10/gtda/time_series
      copying gtda/time_series/embedding.py -> build/lib.linux-x86_64-3.10/gtda/time_series
      copying gtda/time_series/__init__.py -> build/lib.linux-x86_64-3.10/gtda/time_series
      creating build/lib.linux-x86_64-3.10/gtda/tests
      copying gtda/tests/test_pipeline.py -> build/lib.linux-x86_64-3.10/gtda/tests
      copying gtda/tests/__init__.py -> build/lib.linux-x86_64-3.10/gtda/tests
      creating build/lib.linux-x86_64-3.10/gtda/meta_transformers
      copying gtda/meta_transformers/features.py -> build/lib.linux-x86_64-3.10/gtda/meta_transformers
      copying gtda/meta_transformers/__init__.py -> build/lib.linux-x86_64-3.10/gtda/meta_transformers
      creating build/lib.linux-x86_64-3.10/gtda/mapper
      copying gtda/mapper/visualization.py -> build/lib.linux-x86_64-3.10/gtda/mapper
      copying gtda/mapper/pipeline.py -> build/lib.linux-x86_64-3.10/gtda/mapper
      copying gtda/mapper/nerve.py -> build/lib.linux-x86_64-3.10/gtda/mapper
      copying gtda/mapper/filter.py -> build/lib.linux-x86_64-3.10/gtda/mapper
      copying gtda/mapper/cover.py -> build/lib.linux-x86_64-3.10/gtda/mapper
      copying gtda/mapper/cluster.py -> build/lib.linux-x86_64-3.10/gtda/mapper
      copying gtda/mapper/__init__.py -> build/lib.linux-x86_64-3.10/gtda/mapper
      creating build/lib.linux-x86_64-3.10/gtda/homology
      copying gtda/homology/point_clouds.py -> build/lib.linux-x86_64-3.10/gtda/homology
      copying gtda/homology/consistent.py -> build/lib.linux-x86_64-3.10/gtda/homology
      copying gtda/homology/_utils.py -> build/lib.linux-x86_64-3.10/gtda/homology
      copying gtda/homology/__init__.py -> build/lib.linux-x86_64-3.10/gtda/homology
      creating build/lib.linux-x86_64-3.10/gtda/graphs
      copying gtda/graphs/transition.py -> build/lib.linux-x86_64-3.10/gtda/graphs
      copying gtda/graphs/kneighbors.py -> build/lib.linux-x86_64-3.10/gtda/graphs
      copying gtda/graphs/geodesic_distance.py -> build/lib.linux-x86_64-3.10/gtda/graphs
      copying gtda/graphs/__init__.py -> build/lib.linux-x86_64-3.10/gtda/graphs
      creating build/lib.linux-x86_64-3.10/gtda/externals
      copying gtda/externals/__init__.py -> build/lib.linux-x86_64-3.10/gtda/externals
      creating build/lib.linux-x86_64-3.10/gtda/diagrams
      copying gtda/diagrams/preprocessing.py -> build/lib.linux-x86_64-3.10/gtda/diagrams
      copying gtda/diagrams/features.py -> build/lib.linux-x86_64-3.10/gtda/diagrams
      copying gtda/diagrams/distance.py -> build/lib.linux-x86_64-3.10/gtda/diagrams
      copying gtda/diagrams/_utils.py -> build/lib.linux-x86_64-3.10/gtda/diagrams
      copying gtda/diagrams/_metrics.py -> build/lib.linux-x86_64-3.10/gtda/diagrams
      copying gtda/diagrams/__init__.py -> build/lib.linux-x86_64-3.10/gtda/diagrams
      creating build/lib.linux-x86_64-3.10/gtda/utils/tests
      copying gtda/utils/tests/test_validation.py -> build/lib.linux-x86_64-3.10/gtda/utils/tests
      copying gtda/utils/tests/__init__.py -> build/lib.linux-x86_64-3.10/gtda/utils/tests
      creating build/lib.linux-x86_64-3.10/gtda/time_series/tests
      copying gtda/time_series/tests/test_preprocessing.py -> build/lib.linux-x86_64-3.10/gtda/time_series/tests
      copying gtda/time_series/tests/test_multivariate.py -> build/lib.linux-x86_64-3.10/gtda/time_series/tests
      copying gtda/time_series/tests/test_embedding.py -> build/lib.linux-x86_64-3.10/gtda/time_series/tests
      copying gtda/time_series/tests/__init__.py -> build/lib.linux-x86_64-3.10/gtda/time_series/tests
      creating build/lib.linux-x86_64-3.10/gtda/meta_transformers/tests
      copying gtda/meta_transformers/tests/test_features.py -> build/lib.linux-x86_64-3.10/gtda/meta_transformers/tests
      copying gtda/meta_transformers/tests/__init__.py -> build/lib.linux-x86_64-3.10/gtda/meta_transformers/tests
      creating build/lib.linux-x86_64-3.10/gtda/mapper/utils
      copying gtda/mapper/utils/visualization.py -> build/lib.linux-x86_64-3.10/gtda/mapper/utils
      copying gtda/mapper/utils/pipeline.py -> build/lib.linux-x86_64-3.10/gtda/mapper/utils
      copying gtda/mapper/utils/decorators.py -> build/lib.linux-x86_64-3.10/gtda/mapper/utils
      copying gtda/mapper/utils/_logging.py -> build/lib.linux-x86_64-3.10/gtda/mapper/utils
      copying gtda/mapper/utils/_list_feature_union.py -> build/lib.linux-x86_64-3.10/gtda/mapper/utils
      copying gtda/mapper/utils/_cover.py -> build/lib.linux-x86_64-3.10/gtda/mapper/utils
      copying gtda/mapper/utils/_cluster.py -> build/lib.linux-x86_64-3.10/gtda/mapper/utils
      copying gtda/mapper/utils/__init__.py -> build/lib.linux-x86_64-3.10/gtda/mapper/utils
      creating build/lib.linux-x86_64-3.10/gtda/homology/tests
      copying gtda/homology/tests/test_point_clouds.py -> build/lib.linux-x86_64-3.10/gtda/homology/tests
      copying gtda/homology/tests/test_consistent.py -> build/lib.linux-x86_64-3.10/gtda/homology/tests
      copying gtda/homology/tests/__init__.py -> build/lib.linux-x86_64-3.10/gtda/homology/tests
      creating build/lib.linux-x86_64-3.10/gtda/graphs/tests
      copying gtda/graphs/tests/test_transition.py -> build/lib.linux-x86_64-3.10/gtda/graphs/tests
      copying gtda/graphs/tests/test_kneighbors.py -> build/lib.linux-x86_64-3.10/gtda/graphs/tests
      copying gtda/graphs/tests/test_geodesic_distance.py -> build/lib.linux-x86_64-3.10/gtda/graphs/tests
      copying gtda/graphs/tests/__init__.py -> build/lib.linux-x86_64-3.10/gtda/graphs/tests
      creating build/lib.linux-x86_64-3.10/gtda/externals/python
      copying gtda/externals/python/witness_complex_interface.py -> build/lib.linux-x86_64-3.10/gtda/externals/python
      copying gtda/externals/python/strong_witness_complex_interface.py -> build/lib.linux-x86_64-3.10/gtda/externals/python
      copying gtda/externals/python/simplex_tree_interface.py -> build/lib.linux-x86_64-3.10/gtda/externals/python
      copying gtda/externals/python/ripser_interface.py -> build/lib.linux-x86_64-3.10/gtda/externals/python
      copying gtda/externals/python/rips_complex_interface.py -> build/lib.linux-x86_64-3.10/gtda/externals/python
      copying gtda/externals/python/periodic_cubical_complex_interface.py -> build/lib.linux-x86_64-3.10/gtda/externals/python
      copying gtda/externals/python/cubical_complex_interface.py -> build/lib.linux-x86_64-3.10/gtda/externals/python
      copying gtda/externals/python/cech_complex_interface.py -> build/lib.linux-x86_64-3.10/gtda/externals/python
      copying gtda/externals/python/__init__.py -> build/lib.linux-x86_64-3.10/gtda/externals/python
      creating build/lib.linux-x86_64-3.10/gtda/externals/python/tests
      copying gtda/externals/python/tests/test_witness.py -> build/lib.linux-x86_64-3.10/gtda/externals/python/tests
      copying gtda/externals/python/tests/test_rips_complex.py -> build/lib.linux-x86_64-3.10/gtda/externals/python/tests
      copying gtda/externals/python/tests/test_periodic_cubical_complex.py -> build/lib.linux-x86_64-3.10/gtda/externals/python/tests
      copying gtda/externals/python/tests/test_cech_complex.py -> build/lib.linux-x86_64-3.10/gtda/externals/python/tests
      copying gtda/externals/python/tests/__init__.py -> build/lib.linux-x86_64-3.10/gtda/externals/python/tests
      creating build/lib.linux-x86_64-3.10/gtda/diagrams/tests
      copying gtda/diagrams/tests/test_preprocessing.py -> build/lib.linux-x86_64-3.10/gtda/diagrams/tests
      copying gtda/diagrams/tests/test_features.py -> build/lib.linux-x86_64-3.10/gtda/diagrams/tests
      copying gtda/diagrams/tests/test_distance.py -> build/lib.linux-x86_64-3.10/gtda/diagrams/tests
      copying gtda/diagrams/tests/__init__.py -> build/lib.linux-x86_64-3.10/gtda/diagrams/tests
      running build_ext
      Cloning into '/tmp/pip-install-50o_u2ao/giotto-tda_70b6f34ddc3442b6b434d60ea957bca7/gtda/externals/pybind11'...
      -- The CXX compiler identification is GNU 11.1.0
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /usr/bin/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- pybind11 v2.10.0 dev1
      -- CMake 3.22.1
      -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.10.1", minimum required is "3.6")
      -- Found PythonLibs: /usr/lib/libpython3.10.so
      -- PYTHON 3.10.1
      -- Performing Test HAS_FLTO
      -- Performing Test HAS_FLTO - Success
      -- pybind11::lto enabled
      -- pybind11::thin_lto enabled
      -- Configuring done
      -- Generating done
      -- Build files have been written to: /tmp/pip-install-50o_u2ao/giotto-tda_70b6f34ddc3442b6b434d60ea957bca7/gtda/externals/pybind11/build
      Install the project...
      -- Install configuration: ""
      -- Up-to-date: /usr/local/include/pybind11
      CMake Error at cmake_install.cmake:46 (file):
        file INSTALL cannot set permissions on "/usr/local/include/pybind11":
        Operation not permitted.
      
      
      make: *** [Makefile:100: install] Error 1
      sudo: timed out reading password
      sudo: a password is required
      Traceback (most recent call last):
        File "/tmp/pip-install-50o_u2ao/giotto-tda_70b6f34ddc3442b6b434d60ea957bca7/setup.py", line 145, in install_dependencies
          subprocess.check_call(cmake_cmd2, cwd=dir_build)
        File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['make', 'install']' returned non-zero exit status 2.
      
      During handling of the above exception, another exception occurred:
      
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-50o_u2ao/giotto-tda_70b6f34ddc3442b6b434d60ea957bca7/setup.py", line 183, in <module>
          setup(name=DISTNAME,
        File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 153, in setup
          return distutils.core.setup(**attrs)
        File "/usr/lib/python3.10/distutils/core.py", line 148, in setup
          dist.run_commands()
        File "/usr/lib/python3.10/distutils/dist.py", line 966, in run_commands
          self.run_command(cmd)
        File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
          cmd_obj.run()
        File "/usr/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 299, in run
          self.run_command('build')
        File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
          cmd_obj.run()
        File "/usr/lib/python3.10/distutils/command/build.py", line 135, in run
          self.run_command(cmd_name)
        File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
          cmd_obj.run()
        File "/tmp/pip-install-50o_u2ao/giotto-tda_70b6f34ddc3442b6b434d60ea957bca7/setup.py", line 116, in run
          self.install_dependencies()
        File "/tmp/pip-install-50o_u2ao/giotto-tda_70b6f34ddc3442b6b434d60ea957bca7/setup.py", line 147, in install_dependencies
          subprocess.check_call(cmake_cmd2_sudo, cwd=dir_build)
        File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['sudo', 'make', 'install']' returned non-zero exit status 1.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for giotto-tda
  Running setup.py clean for giotto-tda
Failed to build giotto-tda
Installing collected packages: giotto-tda
  Running setup.py install for giotto-tda ... error
  error: subprocess-exited-with-error
  
  × Running setup.py install for giotto-tda did not run successfully.
  │ exit code: 1
  ╰─> [146 lines of output]
      /usr/lib/python3.10/site-packages/setuptools/dist.py:717: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
        warnings.warn(
      running install
      /usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-3.10
      creating build/lib.linux-x86_64-3.10/gtda
      copying gtda/pipeline.py -> build/lib.linux-x86_64-3.10/gtda
      copying gtda/base.py -> build/lib.linux-x86_64-3.10/gtda
      copying gtda/_version.py -> build/lib.linux-x86_64-3.10/gtda
      copying gtda/__init__.py -> build/lib.linux-x86_64-3.10/gtda
      creating build/lib.linux-x86_64-3.10/gtda/utils
      copying gtda/utils/validation.py -> build/lib.linux-x86_64-3.10/gtda/utils
      copying gtda/utils/testing.py -> build/lib.linux-x86_64-3.10/gtda/utils
      copying gtda/utils/_docs.py -> build/lib.linux-x86_64-3.10/gtda/utils
      copying gtda/utils/__init__.py -> build/lib.linux-x86_64-3.10/gtda/utils
      creating build/lib.linux-x86_64-3.10/gtda/time_series
      copying gtda/time_series/target.py -> build/lib.linux-x86_64-3.10/gtda/time_series
      copying gtda/time_series/preprocessing.py -> build/lib.linux-x86_64-3.10/gtda/time_series
      copying gtda/time_series/multivariate.py -> build/lib.linux-x86_64-3.10/gtda/time_series
      copying gtda/time_series/features.py -> build/lib.linux-x86_64-3.10/gtda/time_series
      copying gtda/time_series/embedding.py -> build/lib.linux-x86_64-3.10/gtda/time_series
      copying gtda/time_series/__init__.py -> build/lib.linux-x86_64-3.10/gtda/time_series
      creating build/lib.linux-x86_64-3.10/gtda/tests
      copying gtda/tests/test_pipeline.py -> build/lib.linux-x86_64-3.10/gtda/tests
      copying gtda/tests/__init__.py -> build/lib.linux-x86_64-3.10/gtda/tests
      creating build/lib.linux-x86_64-3.10/gtda/meta_transformers
      copying gtda/meta_transformers/features.py -> build/lib.linux-x86_64-3.10/gtda/meta_transformers
      copying gtda/meta_transformers/__init__.py -> build/lib.linux-x86_64-3.10/gtda/meta_transformers
      creating build/lib.linux-x86_64-3.10/gtda/mapper
      copying gtda/mapper/visualization.py -> build/lib.linux-x86_64-3.10/gtda/mapper
      copying gtda/mapper/pipeline.py -> build/lib.linux-x86_64-3.10/gtda/mapper
      copying gtda/mapper/nerve.py -> build/lib.linux-x86_64-3.10/gtda/mapper
      copying gtda/mapper/filter.py -> build/lib.linux-x86_64-3.10/gtda/mapper
      copying gtda/mapper/cover.py -> build/lib.linux-x86_64-3.10/gtda/mapper
      copying gtda/mapper/cluster.py -> build/lib.linux-x86_64-3.10/gtda/mapper
      copying gtda/mapper/__init__.py -> build/lib.linux-x86_64-3.10/gtda/mapper
      creating build/lib.linux-x86_64-3.10/gtda/homology
      copying gtda/homology/point_clouds.py -> build/lib.linux-x86_64-3.10/gtda/homology
      copying gtda/homology/consistent.py -> build/lib.linux-x86_64-3.10/gtda/homology
      copying gtda/homology/_utils.py -> build/lib.linux-x86_64-3.10/gtda/homology
      copying gtda/homology/__init__.py -> build/lib.linux-x86_64-3.10/gtda/homology
      creating build/lib.linux-x86_64-3.10/gtda/graphs
      copying gtda/graphs/transition.py -> build/lib.linux-x86_64-3.10/gtda/graphs
      copying gtda/graphs/kneighbors.py -> build/lib.linux-x86_64-3.10/gtda/graphs
      copying gtda/graphs/geodesic_distance.py -> build/lib.linux-x86_64-3.10/gtda/graphs
      copying gtda/graphs/__init__.py -> build/lib.linux-x86_64-3.10/gtda/graphs
      creating build/lib.linux-x86_64-3.10/gtda/externals
      copying gtda/externals/__init__.py -> build/lib.linux-x86_64-3.10/gtda/externals
      creating build/lib.linux-x86_64-3.10/gtda/diagrams
      copying gtda/diagrams/preprocessing.py -> build/lib.linux-x86_64-3.10/gtda/diagrams
      copying gtda/diagrams/features.py -> build/lib.linux-x86_64-3.10/gtda/diagrams
      copying gtda/diagrams/distance.py -> build/lib.linux-x86_64-3.10/gtda/diagrams
      copying gtda/diagrams/_utils.py -> build/lib.linux-x86_64-3.10/gtda/diagrams
      copying gtda/diagrams/_metrics.py -> build/lib.linux-x86_64-3.10/gtda/diagrams
      copying gtda/diagrams/__init__.py -> build/lib.linux-x86_64-3.10/gtda/diagrams
      creating build/lib.linux-x86_64-3.10/gtda/utils/tests
      copying gtda/utils/tests/test_validation.py -> build/lib.linux-x86_64-3.10/gtda/utils/tests
      copying gtda/utils/tests/__init__.py -> build/lib.linux-x86_64-3.10/gtda/utils/tests
      creating build/lib.linux-x86_64-3.10/gtda/time_series/tests
      copying gtda/time_series/tests/test_preprocessing.py -> build/lib.linux-x86_64-3.10/gtda/time_series/tests
      copying gtda/time_series/tests/test_multivariate.py -> build/lib.linux-x86_64-3.10/gtda/time_series/tests
      copying gtda/time_series/tests/test_embedding.py -> build/lib.linux-x86_64-3.10/gtda/time_series/tests
      copying gtda/time_series/tests/__init__.py -> build/lib.linux-x86_64-3.10/gtda/time_series/tests
      creating build/lib.linux-x86_64-3.10/gtda/meta_transformers/tests
      copying gtda/meta_transformers/tests/test_features.py -> build/lib.linux-x86_64-3.10/gtda/meta_transformers/tests
      copying gtda/meta_transformers/tests/__init__.py -> build/lib.linux-x86_64-3.10/gtda/meta_transformers/tests
      creating build/lib.linux-x86_64-3.10/gtda/mapper/utils
      copying gtda/mapper/utils/visualization.py -> build/lib.linux-x86_64-3.10/gtda/mapper/utils
      copying gtda/mapper/utils/pipeline.py -> build/lib.linux-x86_64-3.10/gtda/mapper/utils
      copying gtda/mapper/utils/decorators.py -> build/lib.linux-x86_64-3.10/gtda/mapper/utils
      copying gtda/mapper/utils/_logging.py -> build/lib.linux-x86_64-3.10/gtda/mapper/utils
      copying gtda/mapper/utils/_list_feature_union.py -> build/lib.linux-x86_64-3.10/gtda/mapper/utils
      copying gtda/mapper/utils/_cover.py -> build/lib.linux-x86_64-3.10/gtda/mapper/utils
      copying gtda/mapper/utils/_cluster.py -> build/lib.linux-x86_64-3.10/gtda/mapper/utils
      copying gtda/mapper/utils/__init__.py -> build/lib.linux-x86_64-3.10/gtda/mapper/utils
      creating build/lib.linux-x86_64-3.10/gtda/homology/tests
      copying gtda/homology/tests/test_point_clouds.py -> build/lib.linux-x86_64-3.10/gtda/homology/tests
      copying gtda/homology/tests/test_consistent.py -> build/lib.linux-x86_64-3.10/gtda/homology/tests
      copying gtda/homology/tests/__init__.py -> build/lib.linux-x86_64-3.10/gtda/homology/tests
      creating build/lib.linux-x86_64-3.10/gtda/graphs/tests
      copying gtda/graphs/tests/test_transition.py -> build/lib.linux-x86_64-3.10/gtda/graphs/tests
      copying gtda/graphs/tests/test_kneighbors.py -> build/lib.linux-x86_64-3.10/gtda/graphs/tests
      copying gtda/graphs/tests/test_geodesic_distance.py -> build/lib.linux-x86_64-3.10/gtda/graphs/tests
      copying gtda/graphs/tests/__init__.py -> build/lib.linux-x86_64-3.10/gtda/graphs/tests
      creating build/lib.linux-x86_64-3.10/gtda/externals/python
      copying gtda/externals/python/witness_complex_interface.py -> build/lib.linux-x86_64-3.10/gtda/externals/python
      copying gtda/externals/python/strong_witness_complex_interface.py -> build/lib.linux-x86_64-3.10/gtda/externals/python
      copying gtda/externals/python/simplex_tree_interface.py -> build/lib.linux-x86_64-3.10/gtda/externals/python
      copying gtda/externals/python/ripser_interface.py -> build/lib.linux-x86_64-3.10/gtda/externals/python
      copying gtda/externals/python/rips_complex_interface.py -> build/lib.linux-x86_64-3.10/gtda/externals/python
      copying gtda/externals/python/periodic_cubical_complex_interface.py -> build/lib.linux-x86_64-3.10/gtda/externals/python
      copying gtda/externals/python/cubical_complex_interface.py -> build/lib.linux-x86_64-3.10/gtda/externals/python
      copying gtda/externals/python/cech_complex_interface.py -> build/lib.linux-x86_64-3.10/gtda/externals/python
      copying gtda/externals/python/__init__.py -> build/lib.linux-x86_64-3.10/gtda/externals/python
      creating build/lib.linux-x86_64-3.10/gtda/externals/python/tests
      copying gtda/externals/python/tests/test_witness.py -> build/lib.linux-x86_64-3.10/gtda/externals/python/tests
      copying gtda/externals/python/tests/test_rips_complex.py -> build/lib.linux-x86_64-3.10/gtda/externals/python/tests
      copying gtda/externals/python/tests/test_periodic_cubical_complex.py -> build/lib.linux-x86_64-3.10/gtda/externals/python/tests
      copying gtda/externals/python/tests/test_cech_complex.py -> build/lib.linux-x86_64-3.10/gtda/externals/python/tests
      copying gtda/externals/python/tests/__init__.py -> build/lib.linux-x86_64-3.10/gtda/externals/python/tests
      creating build/lib.linux-x86_64-3.10/gtda/diagrams/tests
      copying gtda/diagrams/tests/test_preprocessing.py -> build/lib.linux-x86_64-3.10/gtda/diagrams/tests
      copying gtda/diagrams/tests/test_features.py -> build/lib.linux-x86_64-3.10/gtda/diagrams/tests
      copying gtda/diagrams/tests/test_distance.py -> build/lib.linux-x86_64-3.10/gtda/diagrams/tests
      copying gtda/diagrams/tests/__init__.py -> build/lib.linux-x86_64-3.10/gtda/diagrams/tests
      running build_ext
      CMake Error: The source directory "/tmp/pip-install-50o_u2ao/giotto-tda_70b6f34ddc3442b6b434d60ea957bca7" does not appear to contain CMakeLists.txt.
      Specify --help for usage, or press the help button on the CMake GUI.
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-50o_u2ao/giotto-tda_70b6f34ddc3442b6b434d60ea957bca7/setup.py", line 183, in <module>
          setup(name=DISTNAME,
        File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 153, in setup
          return distutils.core.setup(**attrs)
        File "/usr/lib/python3.10/distutils/core.py", line 148, in setup
          dist.run_commands()
        File "/usr/lib/python3.10/distutils/dist.py", line 966, in run_commands
          self.run_command(cmd)
        File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
          cmd_obj.run()
        File "/usr/lib/python3.10/site-packages/setuptools/command/install.py", line 68, in run
          return orig.install.run(self)
        File "/usr/lib/python3.10/distutils/command/install.py", line 568, in run
          self.run_command('build')
        File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
          cmd_obj.run()
        File "/usr/lib/python3.10/distutils/command/build.py", line 135, in run
          self.run_command(cmd_name)
        File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
          cmd_obj.run()
        File "/tmp/pip-install-50o_u2ao/giotto-tda_70b6f34ddc3442b6b434d60ea957bca7/setup.py", line 119, in run
          self.build_extension(ext)
        File "/tmp/pip-install-50o_u2ao/giotto-tda_70b6f34ddc3442b6b434d60ea957bca7/setup.py", line 177, in build_extension
          subprocess.check_call(['cmake', ext.sourcedir] + cmake_args,
        File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-install-50o_u2ao/giotto-tda_70b6f34ddc3442b6b434d60ea957bca7', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-50o_u2ao/giotto-tda_70b6f34ddc3442b6b434d60ea957bca7/build/lib.linux-x86_64-3.10', '-DPYTHON_EXECUTABLE=/usr/bin/python', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> giotto-tda

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

Versions
My version of Linux is orcus 5.15.13-arch1-1 and my version of pip is pip 22.0.3.

Additional context

@galenseilis galenseilis added the bug Something isn't working label Feb 27, 2022
@galenseilis galenseilis changed the title [BUG] [BUG] Pip installation failed on Archlinux Feb 27, 2022
@ulupo
Copy link
Collaborator

ulupo commented Feb 27, 2022

Hi @galenseilis! The issue here I believe is that installation from PyPI is not yet supported on Python 3.10. We're working on this! So, pip is falling back to a tarball installation that is doomed to fail, see #308.

For now, I would recommend installing the library from sources, i.e. to perform a developer installation as described in https://giotto-ai.github.io/gtda-docs/0.5.1/installation.html#developer-installation.

@galenseilis
Copy link
Author

Thank you for responding, @ulupo. That makes sense. Thank you for the recommendation.

@ulupo
Copy link
Collaborator

ulupo commented Feb 27, 2022

You're welcome. Closing the issue for now, but feel free to reopen if issues remain.

@ulupo ulupo closed this as completed Feb 27, 2022
@ulupo ulupo removed the bug Something isn't working label Feb 27, 2022
@ulupo ulupo changed the title [BUG] Pip installation failed on Archlinux Pip installation from PyPI fails on Python 3.10 Feb 27, 2022
@ulupo ulupo pinned this issue Feb 27, 2022
@ulupo
Copy link
Collaborator

ulupo commented Aug 27, 2022

Fixed by the release of giotto-tda 0.6.0!

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

2 participants