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

gudhi does not install via pip on mac with Apple silicon (M4), macOS 15.2 #1165

Open
OnDraganov opened this issue Jan 9, 2025 · 1 comment

Comments

@OnDraganov
Copy link

pip install gudhi fails on my computer.

computer: MacBook with M4 processor
system: macOS Sequoia 15.2
Python: 3.13.1 (fresh installation via pyenv)
pip: 24.3.1

pip tries to install "gudhi-3.8.0rc1" rather than the current latest 3.10.1 version on pipy. When I run pip install gudhi==3.10, I get:

ERROR: Could not find a version that satisfies the requirement gudhi==3.10 (from versions: 3.8.0rc1)
ERROR: No matching distribution found for gudhi==3.10

The error for pip install gudhi:

Collecting gudhi
  Downloading gudhi-3.8.0rc1.tar.gz (526 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 527.0/527.0 kB 4.9 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [35 lines of output]
      Traceback (most recent call last):
        File "/Users/ondra/.pyenv/versions/3.13.1/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
          ~~~~^^
        File "/Users/ondra/.pyenv/versions/3.13.1/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
        File "/Users/ondra/.pyenv/versions/3.13.1/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/private/var/folders/t_/v7g23klj2b98md23khqz974r0000gn/T/pip-build-env-1gj2woef/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/t_/v7g23klj2b98md23khqz974r0000gn/T/pip-build-env-1gj2woef/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires
          self.run_setup()
          ~~~~~~~~~~~~~~^^
        File "/private/var/folders/t_/v7g23klj2b98md23khqz974r0000gn/T/pip-build-env-1gj2woef/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 320, in run_setup
          exec(code, locals())
          ~~~~^^^^^^^^^^^^^^^^
        File "<string>", line 47, in <module>
        File "/private/var/folders/t_/v7g23klj2b98md23khqz974r0000gn/T/pip-build-env-1gj2woef/overlay/lib/python3.13/site-packages/Cython/Build/Dependencies.py", line 1010, in cythonize
          module_list, module_metadata = create_extension_list(
                                         ~~~~~~~~~~~~~~~~~~~~~^
              module_list,
              ^^^^^^^^^^^^
          ...<4 lines>...
              language=language,
              ^^^^^^^^^^^^^^^^^^
              aliases=aliases)
              ^^^^^^^^^^^^^^^^
        File "/private/var/folders/t_/v7g23klj2b98md23khqz974r0000gn/T/pip-build-env-1gj2woef/overlay/lib/python3.13/site-packages/Cython/Build/Dependencies.py", line 845, in create_extension_list
          for file in nonempty(sorted(extended_iglob(filepattern)), "'%s' doesn't match any files" % filepattern):
                      ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/t_/v7g23klj2b98md23khqz974r0000gn/T/pip-build-env-1gj2woef/overlay/lib/python3.13/site-packages/Cython/Build/Dependencies.py", line 117, in nonempty
          raise ValueError(error_msg)
      ValueError: 'D:/a/gudhi-devel/gudhi-devel/src/python/gudhi/off_utils.pyx' doesn't match any files
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
@mglisse
Copy link
Member

mglisse commented Jan 9, 2025

We do not support Python 3.13 yet (you can check the files listed in https://pypi.org/project/gudhi/#files). Maybe you could use Python 3.12 instead for now?

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