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.

Can't seem to import manimlib or cairo on macOS mojave.

See original GitHub issue

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

github_iconTop GitHub Comments

1reaction
Kolloomcommented, Jul 17, 2019

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.

pip3 install sox
pip3 install ffmpeg
pip3 install latex

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.

0reactions
jagrajscommented, Jul 18, 2019

Uninstalling Anaconda worked! Thanks @Kolloom @vbartle

Read more comments on GitHub >

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

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