TeaspoonTDA / teaspoon

Topological Signal Processing in Python
https://teaspoontda.github.io/teaspoon/
GNU General Public License v3.0
22 stars 8 forks source link

Unable to install #95

Closed anfh27 closed 4 months ago

anfh27 commented 6 months ago

In a new environment:

(teaspoon) C:\Users\x\teaspoon>pip install .
WARNING: Skipping C:\Users\x\anaconda3\Lib\site-packages\semver-2.13.0.dist-info due to invalid metadata entry 'name'
WARNING: Skipping C:\Users\x\anaconda3\Lib\site-packages\semver-2.13.0.dist-info due to invalid metadata entry 'name'
Processing c:\users\x\teaspoon
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: cycler>=0.11.0 in c:\users\x\anaconda3\lib\site-packages (from teaspoon==1.4.8) (0.11.0)
Collecting fonttools>=4.34.4 (from teaspoon==1.4.8)
  Obtaining dependency information for fonttools>=4.34.4 from https://files.pythonhosted.org/packages/ea/69/89f4bb69e28bb293b95abb0a66d49a841580451a584adb1aba59f39b6dff/fonttools-4.49.0-cp311-cp311-win_amd64.whl.metadata
  Using cached fonttools-4.49.0-cp311-cp311-win_amd64.whl.metadata (162 kB)
Requirement already satisfied: joblib>=1.2.0 in c:\users\x\anaconda3\lib\site-packages (from teaspoon==1.4.8) (1.2.0)
Requirement already satisfied: kiwisolver>=1.4.4 in c:\users\x\anaconda3\lib\site-packages (from teaspoon==1.4.8) (1.4.4)
Collecting matplotlib>=3.5.2 (from teaspoon==1.4.8)
  Obtaining dependency information for matplotlib>=3.5.2 from https://files.pythonhosted.org/packages/a1/27/8a807464b0cf47fdf3ba8cbb542d4f3a551da0254d7588667857f8a8a88a/matplotlib-3.8.3-cp311-cp311-win_amd64.whl.metadata
  Using cached matplotlib-3.8.3-cp311-cp311-win_amd64.whl.metadata (5.9 kB)
Requirement already satisfied: networkx>=3.1 in c:\users\x\anaconda3\lib\site-packages (from teaspoon==1.4.8) (3.1)
Requirement already satisfied: numpy>=1.23.1 in c:\users\x\anaconda3\lib\site-packages (from teaspoon==1.4.8) (1.24.3)
Requirement already satisfied: packaging>=23.1 in c:\users\x\anaconda3\lib\site-packages (from teaspoon==1.4.8) (23.1)
Requirement already satisfied: Pillow>=9.3.0 in c:\users\x\anaconda3\lib\site-packages (from teaspoon==1.4.8) (9.4.0)
Collecting POT>=0.8.2 (from teaspoon==1.4.8)
  Obtaining dependency information for POT>=0.8.2 from https://files.pythonhosted.org/packages/77/9d/bf54da47d67c54e838950394c45f1362990e0ac52bbe2e5964c5f5b9ed45/POT-0.9.3-cp311-cp311-win_amd64.whl.metadata
  Using cached POT-0.9.3-cp311-cp311-win_amd64.whl.metadata (30 kB)
Collecting pyentrp>=0.7.1 (from teaspoon==1.4.8)
  Obtaining dependency information for pyentrp>=0.7.1 from https://files.pythonhosted.org/packages/9d/f1/8b77b0896e94d50a38249efb1d6f37da5858ffb467588ad7d771675db182/pyentrp-0.9.0-py3-none-any.whl.metadata
  Using cached pyentrp-0.9.0-py3-none-any.whl.metadata (3.4 kB)
Requirement already satisfied: pyparsing<3.1,>=2.3.1 in c:\users\x\anaconda3\lib\site-packages (from teaspoon==1.4.8) (3.0.9)
Requirement already satisfied: python-dateutil>=2.8.2 in c:\users\x\anaconda3\lib\site-packages (from teaspoon==1.4.8) (2.8.2)
Requirement already satisfied: scikit-learn>=1.1.1 in c:\users\x\anaconda3\lib\site-packages (from teaspoon==1.4.8) (1.1.3)
Requirement already satisfied: scipy>=1.8.1 in c:\users\x\anaconda3\lib\site-packages (from teaspoon==1.4.8) (1.11.1)
Requirement already satisfied: six>=1.16.0 in c:\users\x\anaconda3\lib\site-packages (from teaspoon==1.4.8) (1.16.0)
Collecting threadpoolctl>=3.1.0 (from teaspoon==1.4.8)
  Obtaining dependency information for threadpoolctl>=3.1.0 from https://files.pythonhosted.org/packages/b1/2c/f504e55d98418f2fcf756a56877e6d9a45dd5ed28b3d7c267b300e85ad5b/threadpoolctl-3.3.0-py3-none-any.whl.metadata
  Using cached threadpoolctl-3.3.0-py3-none-any.whl.metadata (13 kB)
Collecting ripser>=0.6.4 (from teaspoon==1.4.8)
  Obtaining dependency information for ripser>=0.6.4 from https://files.pythonhosted.org/packages/c0/83/831f94969cbcb28f08d23df6b6a09645d1e8c3c53d970784376195aa8c01/ripser-0.6.8-cp311-cp311-win_amd64.whl.metadata
  Using cached ripser-0.6.8-cp311-cp311-win_amd64.whl.metadata (7.9 kB)
Requirement already satisfied: sympy>=1.11.1 in c:\users\x\anaconda3\lib\site-packages (from teaspoon==1.4.8) (1.11.1)
Requirement already satisfied: sortedcontainers>=2.4.0 in c:\users\x\anaconda3\lib\site-packages (from teaspoon==1.4.8) (2.4.0)
INFO: pip is looking at multiple versions of teaspoon to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement giotto-tda>=0.5.0 (from teaspoon) (from versions: 0.1.4)
ERROR: No matching distribution found for giotto-tda>=0.5.0
WARNING: Skipping C:\Users\x\anaconda3\Lib\site-packages\semver-2.13.0.dist-info due to invalid metadata entry 'name'
WARNING: There was an error checking the latest version of pip.

(teaspoon) C:\Users\x\teaspoon>pip install giotto-tda
WARNING: Skipping C:\Users\x\anaconda3\Lib\site-packages\semver-2.13.0.dist-info due to invalid metadata entry 'name'
WARNING: Skipping C:\Users\x\anaconda3\Lib\site-packages\semver-2.13.0.dist-info due to invalid metadata entry 'name'
Collecting giotto-tda
  Downloading giotto-tda-0.1.4.tar.gz (99 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 99.8/99.8 kB 1.1 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
ERROR: Packages installed from PyPI cannot depend on packages which are not also hosted on PyPI.
giotto-tda depends on pycairo@ https://storage.googleapis.com/l2f-open-models/giotto-learn/windows-binaries/pycairo/pycairo-1.18.2-cp311-cp311m-win_amd64.whl
WARNING: Skipping C:\Users\x\anaconda3\Lib\site-packages\semver-2.13.0.dist-info due to invalid metadata entry 'name'
WARNING: There was an error checking the latest version of pip.

It also errored with pip install teaspoon Error compiling cython file

                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\x\anaconda3\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 149, in prepare_metadata_for_build_wheel
          return hook(metadata_directory, config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\x\AppData\Local\Temp\pip-build-env-t5am7dq_\overlay\Lib\site-packages\setuptools\build_meta.py", line 174, in prepare_metadata_for_build_wheel
          self.run_setup()
        File "C:\Users\x\AppData\Local\Temp\pip-build-env-t5am7dq_\overlay\Lib\site-packages\setuptools\build_meta.py", line 268, in run_setup
          self).run_setup(setup_script=setup_script)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\x\AppData\Local\Temp\pip-build-env-t5am7dq_\overlay\Lib\site-packages\setuptools\build_meta.py", line 158, in run_setup
          exec(compile(code, __file__, 'exec'), locals())
        File "setup.py", line 328, in <module>
          setup_package()
        File "setup.py", line 324, in setup_package
          setup(**metadata)
        File "C:\Users\x\AppData\Local\Temp\pip-build-env-t5am7dq_\overlay\Lib\site-packages\numpy\distutils\core.py", line 135, in setup
          config = configuration()
                   ^^^^^^^^^^^^^^^
        File "setup.py", line 187, in configuration
          config.add_subpackage("sklearn")
        File "C:\Users\x\AppData\Local\Temp\pip-build-env-t5am7dq_\overlay\Lib\site-packages\numpy\distutils\misc_util.py", line 1050, in add_subpackage
          config_list = self.get_subpackage(subpackage_name, subpackage_path,
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\x\AppData\Local\Temp\pip-build-env-t5am7dq_\overlay\Lib\site-packages\numpy\distutils\misc_util.py", line 1016, in get_subpackage
          config = self._get_configuration_from_setup_py(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\x\AppData\Local\Temp\pip-build-env-t5am7dq_\overlay\Lib\site-packages\numpy\distutils\misc_util.py", line 958, in _get_configuration_from_setup_py
          config = setup_module.configuration(*args)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\x\AppData\Local\Temp\pip-install-vr7c90_0\scikit-learn_d25309fc03bd4954859848669cf2b6b4\sklearn\setup.py", line 85, in configuration
          cythonize_extensions(top_path, config)
        File "C:\Users\x\AppData\Local\Temp\pip-install-vr7c90_0\scikit-learn_d25309fc03bd4954859848669cf2b6b4\sklearn\_build_utils\__init__.py", line 74, in cythonize_extensions
          config.ext_modules = cythonize(
                               ^^^^^^^^^^
        File "C:\Users\x\AppData\Local\Temp\pip-build-env-t5am7dq_\overlay\Lib\site-packages\Cython\Build\Dependencies.py", line 1145, in cythonize
          result.get(99999)  # seconds
          ^^^^^^^^^^^^^^^^^
        File "C:\Users\x\anaconda3\Lib\multiprocessing\pool.py", line 774, in get
          raise self._value
      Cython.Compiler.Errors.CompileError: sklearn\ensemble\_hist_gradient_boosting\splitting.pyx
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

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

Before installing I downloaded CMake and added to path, and Boost, and added to environment variables under BOOST_ROOT

arturzabaluiev commented 5 months ago

@anfh27 did you find solution to 'compiling cython file' problem ?

barnesd8 commented 5 months ago

@anfh27 @arturzabaluiev we are working on a fix. We update and close this issue.

barnesd8 commented 4 months ago

@anfh27 @arturzabaluiev please try to install and let us know if you encounter further issues this should be resolved