taylordotfish / harmony

A free/libre program for performing account-related tasks with Discord
GNU General Public License v3.0
86 stars 8 forks source link

Can't build; py3cairo was not found in the pkg-config search path." #10

Closed asvvvad1 closed 3 years ago

asvvvad1 commented 4 years ago
    [omitted]
    pycairo: new API
    pycairo: trying include directory: '/usr/lib/python3/dist-packages/cairo'
    pycairo: header file ('/usr/lib/python3/dist-packages/cairo/py3cairo.h') not found
    pycairo: old API
    pycairo: found '/usr/lib/python3/dist-packages'
    pycairo: trying include directory: '/usr/include/pycairo'
    pycairo: header file ('/usr/include/pycairo/py3cairo.h') not found
    pycairo: pkg-config
    Package py3cairo was not found in the pkg-config search path.
    Perhaps you should add the directory containing `py3cairo.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'py3cairo' found
    Command '('pkg-config', '--print-errors', '--exists', 'py3cairo >= 1.11.1')' returned non-zero exit status 1.

    ----------------------------------------
  Can't rollback PyGObject, nothing uninstalled.
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-figwc11g/PyGObject/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-bc1utt5d-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-figwc11g/PyGObject/
taylordotfish commented 3 years ago

I haven't been able to reproduce this with Python 3.9 and PyGObject 3.38.0. Given that it's been many months, I'll assume it's fixed and close this issue, but please feel free to reopen it or create another issue if you still encounter problems.

ashr123 commented 2 years ago

This is happening to me in Python 3.10.4

taylordotfish commented 2 years ago

@ashr123 Could you provide some additional system details (OS/distro type and version, processor architecture, the exact command you're running, etc.)?

ashr123 commented 2 years ago

@taylordotfish I encountered it on my Raspberry Pi 4B, Ubuntu 22.04 64 bit. I've solved the problem by installing the package python3-cairo-dev

electron-farmer commented 2 years ago

Ditto. Just happened to me on Pop!_OS 22.04 LTS.

This appears to be related. https://github.com/pygobject/pycairo/issues/270