Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to install via pip in GitHub Action #53

Closed
TonyCrane opened this issue Apr 11, 2021 · 8 comments
Closed

Failed to install via pip in GitHub Action #53

TonyCrane opened this issue Apr 11, 2021 · 8 comments

Comments

@TonyCrane
Copy link

Sorry to bother you, I'm currently preparing for an important exam and I don't have much time to spend on GitHub. But I found that the Action used to build the document in 3b1b/manim failed in a run 3 days ago (https://github.com/3b1b/manim/runs/2300857732). The following is the error message:

Collecting manimpango<0.3.0',>=0.2.0
  Downloading ManimPango-0.2.5.post0.tar.gz (455 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /tmp/tmphiy_wfhh get_requires_for_build_wheel /tmp/tmph92gvin_
       cwd: /tmp/pip-install-t40xq14y/manimpango
  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 129, 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 "/tmp/tmphiy_wfhh", line 280, in <module>
      main()
    File "/tmp/tmphiy_wfhh", line 263, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/tmp/tmphiy_wfhh", line 114, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/tmp/pip-build-env-18yciq1c/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 154, in get_requires_for_build_wheel
      return self._get_build_requires(
    File "/tmp/pip-build-env-18yciq1c/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 135, in _get_build_requires
      self.run_setup()
    File "/tmp/pip-build-env-18yciq1c/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 258, in run_setup
      super(_BuildMetaLegacyBackend,
    File "/tmp/pip-build-env-18yciq1c/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 150, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 194, in <module>
      _pkg_config.check_min_version(MINIMUM_PANGO_VERSION)
    File "setup.py", line 132, in check_min_version
      raise RequiredDependencyException(f"{self.name} >= {version} is required")
  __main__.RequiredDependencyException: pangocairo >= 1.30.0 is required
  ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 /tmp/tmphiy_wfhh get_requires_for_build_wheel /tmp/tmph92gvin_ Check the logs for full command output.
Error: Process completed with exit code 1.

This run corresponds to 3b1b/manim@f6291d7, which merged 3b1b/manim#1421. But the check for this pull request passed a month ago: https://github.com/3b1b/manim/actions/runs/609607503.
So I think it is a problem with the installation of the new version of ManimPango.

This may be an easy problem to deal with. But please forgive me for not having time to fix it at the moment. So can you take a look at this problem and create a PR in 3b1b/manim to fix it?

@naveen521kk
Copy link
Member

Sure, it is as simple as installing Pango through apt.

@TonyCrane
Copy link
Author

It succeeded. Thank you!

@bth5032
Copy link

bth5032 commented Aug 19, 2021

Sure, it is as simple as installing Pango through apt.

sudo apt-get install libsdl-pango-dev

@Myzel394
Copy link

Myzel394 commented Mar 6, 2023

@bth5032 Do you know the equivalent for dnf?

@727yubin
Copy link

727yubin commented Mar 7, 2023

@bth5032 Do you know the equivalent for dnf?

dnf install pango-devel

@naveen521kk
Copy link
Member

Sure, it is as simple as installing Pango through apt.

sudo apt-get install libsdl-pango-dev

Actually, it should be sudo apt-get install libpango1.0-dev and not the other one, but it should've worked, I guess.

@ashish111333
Copy link

@bth5032 Do you know the equivalent for dnf?

dnf install pango-devel

hey this helped a lot,thanks.

@hfikry92
Copy link

for mac os
brew install pango

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants