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.

Errors happening after trying out example commands

See original GitHub issue

OS: 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:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
HexUpcommented, Apr 11, 2021

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.

0reactions
owenschriscommented, May 15, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Everything you wanted to know about exceptions - PowerShell
Basic terminology; Basic command syntax; $PSItem; Working with exceptions; Try can create terminating errors; Trap; Closing remarks.
Read more >
Errors and exceptions - Object-Oriented Programming in Python
Logical errors are the most difficult to fix. They occur when the program runs without crashing, but produces an incorrect result. The error...
Read more >
8. Errors and Exceptions — Python 3.11.1 documentation
If an exception occurs during execution of the try clause, the rest of the clause is skipped. Then, if its type matches the...
Read more >
30. Errors and Exception Handling | Python Tutorial
An exception is an error that happens during the execution of a program. Exceptions are known to non-programmers as instances that do not ......
Read more >
How to fix a "Command not found" error in Linux - Red Hat
Sometimes when you try to use a command and Bash displays the "Command not found" error, it might be because the program is...
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