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.

Problems with Cairo

See original GitHub issue

Hi, Im tried to install in mi macbook pro computed with MacOS Mojave and i complete this but when i tried the example i have this error

Tests-MacBook-Pro:ManimInstall test$ python3 -m manim example_scenes.py WriteStuff -pl
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/daniellara/ManimInstall/manim.py", line 2, in <module>
    import manimlib
  File "/Users/daniellara/ManimInstall/manimlib/__init__.py", line 4, in <module>
    import manimlib.extract_scene
  File "/Users/daniellara/ManimInstall/manimlib/extract_scene.py", line 9, in <module>
    from manimlib.scene.scene import Scene
  File "/Users/daniellara/ManimInstall/manimlib/scene/scene.py", line 12, in <module>
    from manimlib.camera.camera import Camera
  File "/Users/daniellara/ManimInstall/manimlib/camera/camera.py", line 9, in <module>
    import cairo
ModuleNotFoundError: No module named 'cairo'
Tests-MacBook-Pro:ManimInstall test$ 

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
RonaldQiaocommented, Apr 26, 2020

I faced the same error when installing pycario, do I have to install cairocffi first?

2reactions
daniel-lara-eccommented, Aug 7, 2019

Hi! I solve this problem with this code

export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"
export LDFLAGS="-L/usr/local/opt/libffi/lib"

and install pycairo

pip install pycairo

Thanks for your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Al-Qahira - LAITS
Cairo has some of the most polluted air in the world: the air quality is incredibly poor, due to the factories around the...
Read more >
4 The challenge of urban growth in Cairo (cont. 2)
Social problems, such as lack of safety, illiteracy, and crime, have appeared in many parts of this mega-city, affecting both rich and poor...
Read more >
Cairo, Egypt: Resiliency Problems and Solutions | URPL 590
Poverty · Inadequate Infrastructure · Overcrowding · Floods/Droughts/Water Polution · Sand Storms · Earthquakes · Civil unrest · Crime ...
Read more >
Cairo Urbanisation Problems and Solutions - Coggle
Many drivers are aggressive and do not keep to the rules of the road, causing danger for road users and pedestrians. Jobs for...
Read more >
'Cairo has started to become ugly': why Egypt is building a ...
The project is designed to wipe clean the problems of Cairo, and build a glistening new future. Most government buildings, as well as...
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