Error installing manim and running a test program

See original GitHub issue

Describe the error

I installed ffmpeg from the APT package manager and PyOpenGL from pip3 in a virtual environment. Then, when I tried to install manim in the same virtual environment it gave the following error

However, in the end, it said that it successfully installed manim and its dependencies.

Then, I tried to run a simple program to see if it works:

But, it just keeps running with no errors (like it is frozen).

Code and Error

Code:

 class SquareImage(Scene):
 def construct(self):
square = Square()
self.add(square)

manimgl manim_test.py SquareImage -s

Error:

ERROR: Command errored out with exit status 1:
   command: /home/karan/manim/venv/bin/python /home/karan/manim/venv/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp8troxa62
       cwd: /tmp/pip-install-vtkpor5m/manimpango_d759c30457a744afbb343d792b24d300
  Complete output (33 lines):
  Package pangocairo was not found in the pkg-config search path.
  Perhaps you should add the directory containing `pangocairo.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'pangocairo' found
  Traceback (most recent call last):
    File "setup.py", line 124, in check_min_version
      check_call(command, stdout=subprocess.DEVNULL)
    File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['pkg-config', '--print-errors', '--atleast-version', '1.30.0', 'pangocairo']' returned non-zero exit status 1.
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "/home/karan/manim/venv/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 280, in <module>
      main()
    File "/home/karan/manim/venv/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 263, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/home/karan/manim/venv/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 114, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/tmp/pip-build-env-vytjtzxg/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 149, in get_requires_for_build_wheel
      return self._get_build_requires(
    File "/tmp/pip-build-env-vytjtzxg/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 130, in _get_build_requires
      self.run_setup()
    File "/tmp/pip-build-env-vytjtzxg/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 253, in run_setup
      super(_BuildMetaLegacyBackend,
    File "/tmp/pip-build-env-vytjtzxg/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 145, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 190, in <module>
      _pkg_config.check_min_version(MINIMUM_PANGO_VERSION)
    File "setup.py", line 127, in check_min_version
      raise RequiredDependencyException(f"{self.name} >= {version} is required")
  __main__.RequiredDependencyException: pangocairo >= 1.30.0 is required
  ----------------------------------------

Environment

OS System: Linux Mint manim version: master python version: 3.8.5

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

4reactions
EZ4ZZWcommented, Dec 18, 2021

In my M1 Mac, brew install pango can solve this problem.

2reactions
cutebbbcommented, Jun 13, 2022

https://docs.manim.community/en/stable/installation/linux.html#required-dependencies

Run sudo apt install libcairo2-dev libpango1.0-dev ffmpeg before the pip3 install manimgl.

OS: ubuntu20.04

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem installing Manim with pip · Issue #900 - GitHub
Hi there! I want to get started with Manim, but i can't install it. When I use pip, I get the following error...
Read more >
FAQ: Installation - Manim Community v0.17.1
I am using Windows and get the error X is not recognized as an internal or external command, operable program or batch file...
Read more >
manim execute but nothing happen - python - Stack Overflow
at the last, i faced this problem: when i run this commande python3.8 -m manim example_scenes.py SquareToCircle -pl . the terminal stuck and ......
Read more >
Installing manim and Python – manim Series: Part 1
Check them out if you haven't seen any of them yet. ... how to use manim, the mathematical animation software behind the beautiful...
Read more >
I need help with installation of manim - Reddit
I suspect Chocolatey installed Python 3.9 which isn't supported on Win7 and Manim package can't find Python because of that error. What you...
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