Error installing PyGObject
adimenia opened this issue · 3 comments
adimenia commented
Hello
trying to install the species on an Azure Machine Learning compute and when trying to install PyGObject I'm getting the following error
Collecting PyGObject
Using cached PyGObject-3.42.0.tar.gz (716 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting pycairo>=1.16.0
Using cached pycairo-1.20.1-cp38-cp38-linux_x86_64.whl
Building wheels for collected packages: PyGObject
Building wheel for PyGObject (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: /anaconda/envs/azureml_py38/bin/python /anaconda/envs/azureml_py38/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmpd52f9ztn
cwd: /tmp/pip-install-iel8t1tb/pygobject_76eaba687ac2447b82495d5cbb6e1473
Complete output (90 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/pygtkcompat
copying pygtkcompat/pygtkcompat.py -> build/lib.linux-x86_64-3.8/pygtkcompat
copying pygtkcompat/generictreemodel.py -> build/lib.linux-x86_64-3.8/pygtkcompat
copying pygtkcompat/init.py -> build/lib.linux-x86_64-3.8/pygtkcompat
creating build/lib.linux-x86_64-3.8/gi
copying gi/_constants.py -> build/lib.linux-x86_64-3.8/gi
copying gi/_propertyhelper.py -> build/lib.linux-x86_64-3.8/gi
copying gi/types.py -> build/lib.linux-x86_64-3.8/gi
copying gi/_error.py -> build/lib.linux-x86_64-3.8/gi
copying gi/_signalhelper.py -> build/lib.linux-x86_64-3.8/gi
copying gi/_gtktemplate.py -> build/lib.linux-x86_64-3.8/gi
copying gi/pygtkcompat.py -> build/lib.linux-x86_64-3.8/gi
copying gi/importer.py -> build/lib.linux-x86_64-3.8/gi
copying gi/_ossighelper.py -> build/lib.linux-x86_64-3.8/gi
copying gi/docstring.py -> build/lib.linux-x86_64-3.8/gi
copying gi/module.py -> build/lib.linux-x86_64-3.8/gi
copying gi/_option.py -> build/lib.linux-x86_64-3.8/gi
copying gi/init.py -> build/lib.linux-x86_64-3.8/gi
creating build/lib.linux-x86_64-3.8/gi/repository
copying gi/repository/init.py -> build/lib.linux-x86_64-3.8/gi/repository
creating build/lib.linux-x86_64-3.8/gi/overrides
copying gi/overrides/GObject.py -> build/lib.linux-x86_64-3.8/gi/overrides
copying gi/overrides/Gdk.py -> build/lib.linux-x86_64-3.8/gi/overrides
copying gi/overrides/keysyms.py -> build/lib.linux-x86_64-3.8/gi/overrides
copying gi/overrides/Gtk.py -> build/lib.linux-x86_64-3.8/gi/overrides
copying gi/overrides/GIMarshallingTests.py -> build/lib.linux-x86_64-3.8/gi/overrides
copying gi/overrides/Gio.py -> build/lib.linux-x86_64-3.8/gi/overrides
copying gi/overrides/GdkPixbuf.py -> build/lib.linux-x86_64-3.8/gi/overrides
copying gi/overrides/Pango.py -> build/lib.linux-x86_64-3.8/gi/overrides
copying gi/overrides/GLib.py -> build/lib.linux-x86_64-3.8/gi/overrides
copying gi/overrides/init.py -> build/lib.linux-x86_64-3.8/gi/overrides
running build_ext
pycairo: new API
Traceback (most recent call last):
File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in
main()
File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 261, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "/tmp/pip-build-env-mgboatwc/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 230, in build_wheel
return self._build_with_temp_dir(['bdist_wheel'], '.whl',
File "/tmp/pip-build-env-mgboatwc/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 215, in _build_with_temp_dir
self.run_setup()
File "/tmp/pip-build-env-mgboatwc/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 267, in run_setup
super(_BuildMetaLegacyBackend,
File "/tmp/pip-build-env-mgboatwc/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 158, in run_setup
exec(compile(code, file, 'exec'), locals())
File "setup.py", line 1259, in
main()
File "setup.py", line 1219, in main
setup(
File "/tmp/pip-build-env-mgboatwc/overlay/lib/python3.8/site-packages/setuptools/init.py", line 159, in setup
return distutils.core.setup(**attrs)
File "/anaconda/envs/azureml_py38/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/anaconda/envs/azureml_py38/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/anaconda/envs/azureml_py38/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-mgboatwc/overlay/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/anaconda/envs/azureml_py38/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/anaconda/envs/azureml_py38/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/anaconda/envs/azureml_py38/lib/python3.8/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/anaconda/envs/azureml_py38/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/anaconda/envs/azureml_py38/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "setup.py", line 1088, in run
self._setup_extensions()
File "setup.py", line 1083, in _setup_extensions
add_pycairo(gi_cairo_ext)
File "setup.py", line 1066, in add_pycairo
ext.include_dirs += [get_pycairo_include_dir()]
File "setup.py", line 893, in get_pycairo_include_dir
include_dir = find_path(find_new_api())
File "setup.py", line 848, in find_new_api
import cairo
File "/tmp/pip-build-env-mgboatwc/overlay/lib/python3.8/site-packages/cairo/init.py", line 1, in
from ._cairo import * # noqa: F401,F403
ImportError: /tmp/pip-build-env-mgboatwc/overlay/lib/python3.8/site-packages/cairo/_cairo.cpython-38-x86_64-linux-gnu.so: undefined symbol: cairo_svg_surface_set_document_unit
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
I have pycairo installed successfully. and I'm not sure what is causing the issue.
rayluo commented
We have a wiki page on how to install PyGObject.
FWIW, there is also a proof-of-concept docker image that already have all MSAL EXtension's dependencies installed.
adimenia commented
Hello
I have followed the installation guid, and the error I get is the one posted in the issue.
Docker POC will not help as I need it to work on an Azure Machine Leraning (AML) compute instance.
Adi
[adi peretz - Chat @ Spike](https://spikenow.com/r/a/?ref=spike-organic-signature&_ts=1a93dd) [1a93dd]
On November 8, 2021 at 19:37 GMT, Ray Luo ***@***.***> wrote:
We have [a wiki page on how to install PyGObject](https://github.com/AzureAD/microsoft-authentication-extensions-for-python/wiki/Encryption-on-Linux#dependency).
FWIW, there is also a proof-of-concept [docker image that already have all MSAL EXtension's dependencies installed](https://hub.docker.com/r/rayluomba/microsoft-authentication-extensions-for-python).
—
You are receiving this because you authored the thread.
Reply to this email directly, [view it on GitHub](#99 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/ABGGG6BHIAIGVVC3I764NWDULARHVANCNFSM5HSU27OQ).
Triage notifications on the go with GitHub Mobile for [iOS](https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675) or [Android](https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub).
rayluo commented
Closing inactive issue.