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

[bug]: pycairo failing to install #65

Closed
michaelachrisco opened this issue May 25, 2023 · 0 comments
Closed

[bug]: pycairo failing to install #65

michaelachrisco opened this issue May 25, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@michaelachrisco
Copy link

michaelachrisco commented May 25, 2023

Expected Behavior

The cookie cutter project should install dependencies.

Actual/Current Behavior

After punching out a copy of the cookie cutter project, the requirements fail to install with the following error.

https://app.circleci.com/pipelines/github/Shift3/dj-starter/395/workflows/f90cf0ab-6074-4c6b-8f94-b55978d779a4/jobs/419

Building wheels for collected packages: djangorestframework-camel-case, hiredis, django-eventstream, autobahn, django-grip, gripcontrol, pubcontrol, coreschema, pycairo, svglib
  Building wheel for djangorestframework-camel-case (PEP 517) ... - done
  Created wheel for djangorestframework-camel-case: filename=djangorestframework_camel_case-1.3.0-py3-none-any.whl size=7983 sha256=4847d373dc25e3fd4b2d43d707cc4c841943f5e73d2cf977e1b82411fec56201
  Stored in directory: /home/circleci/.cache/pip/wheels/55/ba/5b/ee53e126a5748e95117f6e44d4fb8bed6d939ca96192b3dbbb
  Building wheel for hiredis (setup.py) ... - \ | / - \ done
  Created wheel for hiredis: filename=hiredis-2.0.0-cp310-cp310-linux_x86_64.whl size=92254 sha256=52cad17398239163fbc7249d4ca32727ac5687f6a2d5b9781e87995e7344d16a
  Stored in directory: /home/circleci/.cache/pip/wheels/a9/b0/b0/a58f2bc314a1c78d077171184d746540f45437234bc67e4b4d
  Building wheel for django-eventstream (setup.py) ... - done
  Created wheel for django-eventstream: filename=django_eventstream-4.4.1-py3-none-any.whl size=33209 sha256=67406e45e620fe16cd7ddc5e14dd78078fdbf5ddc858f2a42ba1699f80220489
  Stored in directory: /home/circleci/.cache/pip/wheels/4c/aa/b9/315b3ace4ca9538dbd244b5a7bc517c70c9a09cb47a17a8ee9
  Building wheel for autobahn (setup.py) ... - \ | / done
  Created wheel for autobahn: filename=autobahn-23.1.2-py2.py3-none-any.whl size=666860 sha256=6016d5449f58749539f43a31bc2a3e99004a6dee78c5c531d383b8ac3698c5c4
  Stored in directory: /home/circleci/.cache/pip/wheels/0a/a4/60/d547cb0414567a087281bd1474426e29194bf88b1972dba289
  Building wheel for django-grip (setup.py) ... - done
  Created wheel for django-grip: filename=django_grip-3.2.0-py3-none-any.whl size=5545 sha256=5652e86d68a2f4331626be949fbb12ec173d0ddf3fc60cb38eccd671a6746dc3
  Stored in directory: /home/circleci/.cache/pip/wheels/05/c0/52/19bd3d54cdc2000511aaa92eefae20ab22ae975f5860274eb2
  Building wheel for gripcontrol (setup.py) ... - done
  Created wheel for gripcontrol: filename=gripcontrol-4.1.0-py3-none-any.whl size=12360 sha256=db6d2c6176011e9a2df827136fe4ef08461864fa9b9d44395d7a79137d970185
  Stored in directory: /home/circleci/.cache/pip/wheels/22/be/df/32a51ddcb835035a5270ad29d105804fd32182c374390b8857
  Building wheel for pubcontrol (setup.py) ... - done
  Created wheel for pubcontrol: filename=pubcontrol-3.4.0-py3-none-any.whl size=22324 sha256=5368a901c9f6e73a6169f23bb8acc0bcc166d810e3d8b5618231bff83b3d9938
  Stored in directory: /home/circleci/.cache/pip/wheels/79/90/da/6418d47a54aeb22961076a4818a46352d290690632079e75c7
  Building wheel for coreschema (setup.py) ... - done
  Created wheel for coreschema: filename=coreschema-0.0.4-py3-none-any.whl size=15031 sha256=b3bd0f7190f673b88ec488ee07c5801522e7d04bca8bd9bd4e5fcff4e9c145b3
  Stored in directory: /home/circleci/.cache/pip/wheels/97/f0/a1/ee57c9b2aaaac2e8867798bbde65749450ddae129085e1393d
  Building wheel for pycairo (PEP 517) ... - error
  ERROR: Command errored out with exit status 1:
   command: /home/circleci/.pyenv/versions/3.10.1/bin/python3.10 /home/circleci/.pyenv/versions/3.10.1/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmpq87oq0lb
       cwd: /tmp/pip-install-zj8ntpg_/pycairo_206c4c07eef84698a29713621e0fce3b
  Complete output (15 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-cpython-310
  creating build/lib.linux-x86_64-cpython-310/cairo
  copying cairo/__init__.py -> build/lib.linux-x86_64-cpython-310/cairo
  copying cairo/__init__.pyi -> build/lib.linux-x86_64-cpython-310/cairo
  copying cairo/py.typed -> build/lib.linux-x86_64-cpython-310/cairo
  running build_ext
  Package cairo was not found in the pkg-config search path.
  Perhaps you should add the directory containing `cairo.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'cairo' found
  Command '['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']' returned non-zero exit status 1.
  ----------------------------------------
  ERROR: Failed building wheel for pycairo
  Building wheel for svglib (setup.py) ... - done
  Created wheel for svglib: filename=svglib-1.5.1-py3-none-any.whl size=30920 sha256=ff5be765b63299245d9d136209a21213dc1c8b2fc612b4fa751d1732a660bbc2
  Stored in directory: /home/circleci/.cache/pip/wheels/56/9f/90/f37f4b9dbf82987a24ae14f15586e96715cb669a4710b3b85d
Successfully built djangorestframework-camel-case hiredis django-eventstream autobahn django-grip gripcontrol pubcontrol coreschema svglib
Failed to build pycairo
ERROR: Could not build wheels for pycairo which use PEP 517 and cannot be installed directly
WARNING: You are using pip version 21.2.4; however, version 23.1.2 is available.
You should consider upgrading via the '/home/circleci/.pyenv/versions/3.10.1/bin/python3.10 -m pip install --upgrade pip' command.

Exited with code exit status 1
CircleCI received exit code 1

All based on this convo: https://bitwiseindustries.slack.com/archives/C025A3UE1PC/p1684970197762019

Steps to Reproduce the Problem

  1. run pip install -r requirements/test.txt
  2. see error

Pre-Testing TODOs

Pull down the project from the development branch.

Testing Steps

Run circleci script on base development and error pops up. Tried to re-do the cache, no such luck.

Environment

Please provide OS Version and Platform/Browser.

Learning

@coreyshuman and @Endtry both found:
nolanaatama/sd-1click-colab#43
https://www.reddit.com/r/StableDiffusion/comments/13ehad9/failed_to_build_pycairo_some_preprocessors_may/

and that adding the underlining dependency seemed to fix the issue by:
brew install cairo

@michaelachrisco michaelachrisco added the bug Something isn't working label May 25, 2023
@michaelachrisco michaelachrisco self-assigned this May 25, 2023
@michaelachrisco michaelachrisco mentioned this issue May 25, 2023
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant