I've had issues install pycairo
via poetry. Here's the output:
• Installing pycairo (1.25.1)
ChefBuildError
Backend subprocess exited when trying to invoke build_wheel
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-311
creating build/lib.linux-x86_64-cpython-311/cairo
copying cairo/__init__.py -> build/lib.linux-x86_64-cpython-311/cairo
copying cairo/__init__.pyi -> build/lib.linux-x86_64-cpython-311/cairo
copying cairo/py.typed -> build/lib.linux-x86_64-cpython-311/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.
at ~/.pyenv/versions/3.12.1/lib/python3.12/site-packages/poetry/installation/chef.py:164 in _prepare
160│
161│ error = ChefBuildError("\n\n".join(message_parts))
162│
163│ if error is not None:
→ 164│ raise error from None
165│
166│ return path
167│
168│ def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:
Note: This error originates from the build backend, and is likely not a problem with poetry but with pycairo (1.25.1) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "pycairo (==1.25.1)"'.
based on this though, cairo should be installed? https://community.opalstack.com/d/842-libjpeg/3
Do I have to point my python to the path somehow?