I'm trying to install system wide PyGObject. But I'm struggling with some weird error that pops up when installer try to build pycairo wheel. I tried to upgrade and reinstall setuptools using sudo python3 -m pip install --upgrade --force-reinstall setuptools but this did not help. Also tried to set export SETUPTOOLS_USE_DISTUTILS=stdlib but also did not work. Error is:
File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 290, in set_undefined_options
setattr(self, dst_option, getattr(src_cmd_obj, src_option))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 103, in __getattr__
raise AttributeError(attr)
AttributeError: install_layout. Did you mean: 'install_platlib'?
Seems like pycairo installer try to call some method/attribute that does not exist somehow.
I'm trying to install system wide
PyGObject
. But I'm struggling with some weird error that pops up when installer try to buildpycairo
wheel. I tried to upgrade and reinstallsetuptools
usingsudo python3 -m pip install --upgrade --force-reinstall setuptools
but this did not help. Also tried to setexport SETUPTOOLS_USE_DISTUTILS=stdlib
but also did not work. Error is:Seems like pycairo installer try to call some method/attribute that does not exist somehow.
How to fix this?
I'm using Python 3.11
Full install log below