Can't seem to import manimlib or cairo on macOS mojave.
See original GitHub issueDon’t know if it’s an import error or something else.
1. Steps to reproduce the issue (e.g. the command you ran)
python3 extract_scene.py example_scenes.py SquareToCircle -pl
Ran this in the folder and venv. Get the same error.
2. The unexpected behavior that occurred (e.g. error messages or screenshots)
Traceback (most recent call last):
File "extract_scene.py", line 9, in <module>
from manimlib.scene.scene import Scene
File "/Users/username/Code/ManimInstall/manim_9jul/manimlib/__init__.py", line 4, in <module>
import manimlib.extract_scene
File "/Users/username/Code/ManimInstall/manim_9jul/manimlib/extract_scene.py", line 9, in <module>
from manimlib.scene.scene import Scene
File "/Users/username/Code/ManimInstall/manim_9jul/manimlib/scene/scene.py", line 11, in <module>
from manimlib.camera.camera import Camera
File "/Users/username/Code/ManimInstall/manim_9jul/manimlib/camera/camera.py", line 9, in <module>
import cairo
File "/Users/username/Code/ManimInstall/manim_9jul/venv/lib/python3.7/site-packages/cairo/__init__.py", line 1, in <module>
from ._cairo import * # noqa: F401,F403
ImportError: dlopen(/Users/username/Code/ManimInstall/manim_9jul/venv/lib/python3.7/site-packages/cairo/_cairo.cpython-37m-darwin.so, 2): Symbol not found: _cairo_font_options_get_variations
Referenced from: /Users/username/Code/ManimInstall/manim_9jul/venv/lib/python3.7/site-packages/cairo/_cairo.cpython-37m-darwin.so
Expected in: flat namespace
in /Users/username/Code/ManimInstall/manim_9jul/venv/lib/python3.7/site-packages/cairo/_cairo.cpython-37m-darwin.so
3. The environment (e.g. operating system and version of manim)
macOS mojave 10.14.5
P.S. This is my first support ticket ever here, so feedback is appreciated.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Why I get an ImportError while importing cairo if the installation ...
The issue is quite simple. I've installed Python and Cairo with Homebrew since I use a M1 MacBook.
Read more >No Module Named Cairo - Mac - ADocLib
Hi there after trying to run a python file I got this error: Error:Import Error: No module Python throws modulenotfounderror: no module named...
Read more >ImportError: cannot import name 'main', from manimlib import ...
Describe the error. The current pip3 version of manimlib does not have get_rows() command for the Matrix mobject.
Read more >Cannot import manimlib issue - PythonTechWorld
Steps to reproduce the issue (e.g. the command you ran); The unexpected behavior that occurred (e.g. error messages or screenshots); The environment (e.g. ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I see that blog post, which was written September last year, referenced a couple times here. The installation guide is no longer applicable on the current code base.
manim uses subprocess and does not make use of those python wrappers.
Media output now defaults to
manim/videos
so modification at step 8 is not necessary.The command to run example scene is outdated. (though it will probably work still)
I am not sure what step10 is modifying.
tex_template.tex shoud work as is from the current repo.
Uninstalling Anaconda worked! Thanks @Kolloom @vbartle