Error when running the example_scenes.py file after installation
See original GitHub issueI’m facing the following error when I run the example file as suggested in the documentation. I am unable to understand the error here.
~/manim$ python -m manim example_scenes.py -pl
Media will be stored in media/. You can change this behavior by writing a different directory to media_dir.txt.
Traceback (most recent call last):
File "/home/gautham/anaconda3/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/home/gautham/anaconda3/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/gautham/manim/manim.py", line 3, in <module>
import manimlib.extract_scene
File "/home/gautham/manim/manimlib/extract_scene.py", line 9, in <module>
from manimlib.scene.scene import Scene
File "/home/gautham/manim/manimlib/scene/scene.py", line 11, in <module>
from manimlib.camera.camera import Camera
File "/home/gautham/manim/manimlib/camera/camera.py", line 9, in <module>
import cairo
File "/home/gautham/anaconda3/lib/python3.6/site-packages/cairo/__init__.py", line 1, in <module>
from ._cairo import * # noqa: F401,F403
ImportError: /home/gautham/anaconda3/lib/python3.6/site-packages/cairo/_cairo.cpython-36m-x86_64-linux-gnu.so: undefined symbol: cairo_tee_surface_index
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
manim example_scenes.py won't run - Stack Overflow
Whenever I try to run this code, it fails. python -m manim example_scenes.py SquareToCircle -pl. cmd throws a big error at my face....
Read more >Can not find 'example_scenes.py' when running example on ...
I get the following error: Traceback (most recent call last): File "C:\Users\steve\OneDrive\Documenten\Nerds\Manim\manim\manim.py", line 5, ...
Read more >ModuleNotFoundError: no module named Python Error [Fixed]
Here are some solutions. 1. Make sure imported modules are installed. Take for example, numpy . You use this module in your code...
Read more >How to Fix Python Was Not Found Run Without ... - YouTube
How to Fix Python Was Not Found Run Without Arguments to Install From the Microsoft Store Error. 164K views 1 year ago.
Read more >How to Fix Python `No such file or directory` Compiler Errors ...
A common error that you may receive when installing Python modules ... Python packages are typically installed using the pip package manager ...
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
Hi, I had this same issue and although python 3.6 did solve it I found that it breaks some methods in the Manim Library as it only supports version 0.6.0 and not the current (or future) one.
I managed to get it working nicely using python 3.9, using 3.7 or 3.8 did not work for me.
I hope this comment helps out.
Hey, thank you for referencing other issues similar to mine, as removing anaconda and using system python3.6 to create virtualenv worked out. Hope this also helps @gautham949’s problem. #637 helped me out. Cheers!