question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when running the example_scenes.py file after installation

See original GitHub issue

I’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:open
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
luisjparedescommented, Jan 5, 2022

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.

0reactions
JusticeBoicommented, Jul 18, 2019

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found