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

Error when installing on apple silicon mac #3952

Open
abhigyanj opened this issue Oct 13, 2024 · 2 comments
Open

Error when installing on apple silicon mac #3952

abhigyanj opened this issue Oct 13, 2024 · 2 comments
Labels
installation Everything concerning the installation process

Comments

@abhigyanj
Copy link

abhigyanj commented Oct 13, 2024

Description of error

I've installed all the required dependencies for macOS mentioned on https://docs.manim.community/en/stable/installation/macos.html but when I try to install manim via pip, I get the following error:

...
Collecting manimpango<0.5.0,>=0.4.0.post0 (from manim)
  Using cached ManimPango-0.4.4.tar.gz (4.1 MB)
  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
  ╰─> [21 lines of output]
      Traceback (most recent call last):
        File "/Users/abhigyanj/Documents/Programming/Python Learning/3b1b/venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
          ~~~~^^
        File "/Users/abhigyanj/Documents/Programming/Python Learning/3b1b/venv/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/abhigyanj/Documents/Programming/Python Learning/3b1b/venv/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/32/wr9q6vq15n12d_r6zn21lpq80000gn/T/pip-build-env-7vh801uw/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 332, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/32/wr9q6vq15n12d_r6zn21lpq80000gn/T/pip-build-env-7vh801uw/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 302, in _get_build_requires
          self.run_setup()
          ~~~~~~~~~~~~~~^^
        File "/private/var/folders/32/wr9q6vq15n12d_r6zn21lpq80000gn/T/pip-build-env-7vh801uw/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 318, in run_setup
          exec(code, locals())
          ~~~~^^^^^^^^^^^^^^^^
        File "<string>", line 42, in <module>
        File "<string>", line 38, in get_version
      KeyError: '__version__'
      [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.

System specifications

System Details
  • OS: macOS 15.1
  • RAM: 16GB
  • Python version: Python 3.13.0
  • Installed modules (using venv):
  • Chip: M1
Package Version
------- -------
pip     24.2

Extra details: When I try installing the latest version of manimpango, it installs

@abhigyanj abhigyanj added the installation Everything concerning the installation process label Oct 13, 2024
@behackl
Copy link
Member

behackl commented Oct 13, 2024

This appears to be an issue with Python 3.13. The version restriction imposed on manimpango (>=0.4.0.post0, <0.5.0) seem a bit odd, though. Can you share the full log output of pip install?

The easiest way to get the install up and going on your machine is either directly brew-installing manim (brew install manim), or pip-installing it with a Python version of at most 3.12, until we manage to release a new version where this is fixed.

@nhabedi
Copy link

nhabedi commented Oct 13, 2024

I had the same problem on Windows and I can confirm that downgrading from Python 3.13 to 3.12 solves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation Everything concerning the installation process
Projects
Status: 🆕 New
Development

No branches or pull requests

3 participants