Errors happening after trying out example commands
See original GitHub issueOS: Mac OS X 11.0 (on Apple Silicon)
Whenever I try to run python3 ./manim.py example_scenes.py SquareToCircle -pl
or other manim commands, I get
Traceback (most recent call last): File "/Users/bearjere/Desktop/manim/./manim.py", line 2, in <module> import manimlib File "/Users/bearjere/Desktop/manim/manimlib/__init__.py", line 4, in <module> import manimlib.extract_scene File "/Users/bearjere/Desktop/manim/manimlib/extract_scene.py", line 9, in <module> from manimlib.scene.scene import Scene File "/Users/bearjere/Desktop/manim/manimlib/scene/scene.py", line 11, in <module> from manimlib.camera.camera import Camera File "/Users/bearjere/Desktop/manim/manimlib/camera/camera.py", line 9, in <module> import cairo File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cairo/__init__.py", line 1, in <module> from ._cairo import * # noqa: F401,F403 ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cairo/_cairo.cpython-39-darwin.so, 2): Symbol not found: _cairo_append_path Referenced from: /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cairo/_cairo.cpython-39-darwin.so Expected in: flat namespace in /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cairo/_cairo.cpython-39-darwin.so
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (2 by maintainers)
Top GitHub Comments
I came across the same problem on my M1 macbook air. Here’s how I solved the problem: First uninstall the pycairo installed by pip. Then re-install it using anaconda,
conda install pycairo
, conda should install at least two packages: cairo and pycairo, where cairo is its own built binary. Then everything works well on my computer.This corrected the issue for me on the same platform.