-
Hello all! I am getting warnings about needing pygobject so I tried to install it And this is what happened I first include the output showing wheel is updated and setuptools fully installed ~ $ pip install --upgrade wheel
Requirement already satisfied: wheel in /data/data/com.termux/files/usr/lib/python3.11/site-packages (0.40.0)
~ $ pip install setuptools
Requirement already satisfied: setuptools in /data/data/com.termux/files/usr/lib/python3.11/site-packages (67.8.0)
~ $ pip install pygobject
Collecting pygobject
Using cached PyGObject-3.44.1.tar.gz (720 kB) Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully. │ exit code: 1
╰─> [43 lines of output]
Collecting setuptools
Using cached setuptools-67.8.0-py3-none-any.whl (1.1 MB)
Collecting wheel
Using cached wheel-0.40.0-py3-none-any.whl (64 kB)
Collecting pycairo
Using cached pycairo-1.23.0.tar.gz (344 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 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: pycairo
Building wheel for pycairo (pyproject.toml): started
Building wheel for pycairo (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Building wheel for pycairo (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [15 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-cpython-311
creating build/lib.linux-aarch64-cpython-311/cairo
copying cairo/__init__.py -> build/lib.linux-aarch64-cpython-311/cairo
copying cairo/__init__.pyi -> build/lib.linux-aarch64-cpython-311/cairo
copying cairo/py.typed -> build/lib.linux-aarch64-cpython-311/cairo
running build_ext
Package xproto was not found in the pkg-config search path.
Perhaps you should add the directory containing `xproto.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xproto', required by 'x11', not found
Command '['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pycairo
Failed to build pycairo
ERROR: Could not build wheels for pycairo, which is required to install pyproject.toml-based projects
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
~ $ So I see it talks about pycairo which also fails ~ $ pip install pycairo
Collecting pycairo
Using cached pycairo-1.23.0.tar.gz (344 kB) Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pycairo
Building wheel for pycairo (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pycairo (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [15 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-cpython-311
creating build/lib.linux-aarch64-cpython-311/cairo
copying cairo/__init__.py -> build/lib.linux-aarch64-cpython-311/cairo
copying cairo/__init__.pyi -> build/lib.linux-aarch64-cpython-311/cairo
copying cairo/py.typed -> build/lib.linux-aarch64-cpython-311/cairo
running build_ext
Package xproto was not found in the pkg-config search path.
Perhaps you should add the directory containing `xproto.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xproto', required by 'x11', not found
Command '['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pycairo
Failed to build pycairo
ERROR: Could not build wheels for pycairo, which is required to install pyproject.toml-based projects
~ $ And something called xproto which it says no such package Thanks for any help ❤️🇨🇦 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Found some old conversation on Google search and figured it out 🤗
~ $ pip install pygobject
Collecting pygobject
Using cached PyGObject-3.44.1.tar.gz (720 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: pycairo>=1.16.0 in /data/data/com.termux/files/usr/lib/python3.11/site-packages (from pygobject) (1.23.0)
Building wheels for collected packages: pygobject
Building wheel for pygobject (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pygobject (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [44 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-cpython-311
creating build/lib.linux-aarch64-cpython-311/pygtkcompat
copying pygtkcompat/__init__.py -> build/lib.linux-aarch64-cpython-311/pygtkcompat
copying pygtkcompat/generictreemodel.py -> build/lib.linux-aarch64-cpython-311/pygtkcompat
copying pygtkcompat/pygtkcompat.py -> build/lib.linux-aarch64-cpython-311/pygtkcompat
creating build/lib.linux-aarch64-cpython-311/gi
copying gi/_signalhelper.py -> build/lib.linux-aarch64-cpython-311/gi
copying gi/pygtkcompat.py -> build/lib.linux-aarch64-cpython-311/gi
copying gi/__init__.py -> build/lib.linux-aarch64-cpython-311/gi
copying gi/_error.py -> build/lib.linux-aarch64-cpython-311/gi
copying gi/docstring.py -> build/lib.linux-aarch64-cpython-311/gi
copying gi/module.py -> build/lib.linux-aarch64-cpython-311/gi
copying gi/_option.py -> build/lib.linux-aarch64-cpython-311/gi
copying gi/_constants.py -> build/lib.linux-aarch64-cpython-311/gi
copying gi/_propertyhelper.py -> build/lib.linux-aarch64-cpython-311/gi
copying gi/_gtktemplate.py -> build/lib.linux-aarch64-cpython-311/gi
copying gi/importer.py -> build/lib.linux-aarch64-cpython-311/gi
copying gi/_ossighelper.py -> build/lib.linux-aarch64-cpython-311/gi
copying gi/types.py -> build/lib.linux-aarch64-cpython-311/gi
creating build/lib.linux-aarch64-cpython-311/gi/repository
copying gi/repository/__init__.py -> build/lib.linux-aarch64-cpython-311/gi/repository
creating build/lib.linux-aarch64-cpython-311/gi/overrides
copying gi/overrides/Gdk.py -> build/lib.linux-aarch64-cpython-311/gi/overrides
copying gi/overrides/keysyms.py -> build/lib.linux-aarch64-cpython-311/gi/overrides
copying gi/overrides/GdkPixbuf.py -> build/lib.linux-aarch64-cpython-311/gi/overrides
copying gi/overrides/GIMarshallingTests.py -> build/lib.linux-aarch64-cpython-311/gi/overrides
copying gi/overrides/__init__.py -> build/lib.linux-aarch64-cpython-311/gi/overrides
copying gi/overrides/Gio.py -> build/lib.linux-aarch64-cpython-311/gi/overrides
copying gi/overrides/GObject.py -> build/lib.linux-aarch64-cpython-311/gi/overrides
copying gi/overrides/Gtk.py -> build/lib.linux-aarch64-cpython-311/gi/overrides
copying gi/overrides/GLib.py -> build/lib.linux-aarch64-cpython-311/gi/overrides
copying gi/overrides/Pango.py -> build/lib.linux-aarch64-cpython-311/gi/overrides
running build_ext
Package gobject-introspection-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gobject-introspection-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gobject-introspection-1.0' found
Command '('pkg-config', '--print-errors', '--exists', 'gobject-introspection-1.0 >= 1.56.0')' returned non-zero exit status 1.
Try installing it with: 'sudo apt install libgirepository1.0-dev'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pygobject
Failed to build pygobject
ERROR: Could not build wheels for pygobject, which is required to install pyproject.toml-based projects
~ $ It's complaining about something called After this is installed I can finally complete |
Beta Was this translation helpful? Give feedback.
Found some old conversation on Google search and figured it out 🤗
xproto
is inpkg install xorgproto
which then allowspip install pycairo
to complete no problempip install pygobject
now has new errors