Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3424

Programming • [Python] ERROR: Failed building wheel for uamqp

$
0
0
Hi,

I'm a new Debian user - running version 12 (bookworm) on a Raspberry Pi 5

As part of an IoT course I am studying, I am trying to to install various python packages as part of the course projects.

Issue 1 - if I attempt to install a package via bash using the following command as an example "pip3 install azure-iot-hub" I receive the following error:

error: externally-managed-environment
This environment is externally managed
To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

For more information visit http://rptl.io/venv

Issue 2 - If I then create a venv and attempt the same command from within the venv, I get this error:

Building wheel for uamqp (pyproject.toml) did not run successfully.
exit code: 1
[157 lines of output]

(lines of output ommitted)

subprocess.CalledProcessError: Command 'cmake /tmp/pip-install-ovsdrchh/uamqp_d8001e6a03b84939a5d3649ddd365d75/src/vendor/azure-uamqp-c/ -G "Unix Makefiles" -Duse_openssl:bool=ON -Duse_default_uuid:bool=ON -Duse_builtin_httpapi:bool=ON -Dskip_samples:bool=ON -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE -DCMAKE_BUILD_TYPE=Release' 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 uamqp
Failed to build uamqp
ERROR: Could not build wheels for uamqp, which is required to install pyproject.toml-based projects


All debian packages are up to date (sudo apt update)....
The cmake package referenced in the error has been installed in the venv (pip3 install cmake)....


Can anyone help in moving past these errors please?

Thanks in advance

Matt

Statistics: Posted by Bayaz75 — 2024-01-16 18:15 — Replies 0 — Views 608



Viewing all articles
Browse latest Browse all 3424

Trending Articles