Skip to content

Instantly share code, notes, and snippets.

@mdegat01
Created February 19, 2022 03:14
Show Gist options
  • Save mdegat01/f655ab24928be487c64dfea35690f94e to your computer and use it in GitHub Desktop.
Save mdegat01/f655ab24928be487c64dfea35690f94e to your computer and use it in GitHub Desktop.
Error when running "Install all requirements" task
Running setup.py install for uamqp ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-u756m4v5/uamqp/setup.py'"'"'; __file__='"'"'/tmp/pip-install-u756m4v5/uamqp/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-of2xdiqa/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/uamqp
cwd: /tmp/pip-install-u756m4v5/uamqp/
Complete output (81 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-aarch64-3.9
creating build/lib.linux-aarch64-3.9/uamqp
copying uamqp/__init__.py -> build/lib.linux-aarch64-3.9/uamqp
copying uamqp/types.py -> build/lib.linux-aarch64-3.9/uamqp
copying uamqp/message.py -> build/lib.linux-aarch64-3.9/uamqp
copying uamqp/address.py -> build/lib.linux-aarch64-3.9/uamqp
copying uamqp/errors.py -> build/lib.linux-aarch64-3.9/uamqp
copying uamqp/mgmt_operation.py -> build/lib.linux-aarch64-3.9/uamqp
copying uamqp/client.py -> build/lib.linux-aarch64-3.9/uamqp
copying uamqp/sender.py -> build/lib.linux-aarch64-3.9/uamqp
copying uamqp/compat.py -> build/lib.linux-aarch64-3.9/uamqp
copying uamqp/receiver.py -> build/lib.linux-aarch64-3.9/uamqp
copying uamqp/constants.py -> build/lib.linux-aarch64-3.9/uamqp
copying uamqp/session.py -> build/lib.linux-aarch64-3.9/uamqp
copying uamqp/utils.py -> build/lib.linux-aarch64-3.9/uamqp
copying uamqp/connection.py -> build/lib.linux-aarch64-3.9/uamqp
creating build/lib.linux-aarch64-3.9/uamqp/async_ops
copying uamqp/async_ops/__init__.py -> build/lib.linux-aarch64-3.9/uamqp/async_ops
copying uamqp/async_ops/session_async.py -> build/lib.linux-aarch64-3.9/uamqp/async_ops
copying uamqp/async_ops/receiver_async.py -> build/lib.linux-aarch64-3.9/uamqp/async_ops
copying uamqp/async_ops/mgmt_operation_async.py -> build/lib.linux-aarch64-3.9/uamqp/async_ops
copying uamqp/async_ops/connection_async.py -> build/lib.linux-aarch64-3.9/uamqp/async_ops
copying uamqp/async_ops/sender_async.py -> build/lib.linux-aarch64-3.9/uamqp/async_ops
copying uamqp/async_ops/utils.py -> build/lib.linux-aarch64-3.9/uamqp/async_ops
copying uamqp/async_ops/client_async.py -> build/lib.linux-aarch64-3.9/uamqp/async_ops
creating build/lib.linux-aarch64-3.9/uamqp/authentication
copying uamqp/authentication/__init__.py -> build/lib.linux-aarch64-3.9/uamqp/authentication
copying uamqp/authentication/cbs_auth_async.py -> build/lib.linux-aarch64-3.9/uamqp/authentication
copying uamqp/authentication/cbs_auth.py -> build/lib.linux-aarch64-3.9/uamqp/authentication
copying uamqp/authentication/common.py -> build/lib.linux-aarch64-3.9/uamqp/authentication
running egg_info
writing uamqp.egg-info/PKG-INFO
writing dependency_links to uamqp.egg-info/dependency_links.txt
writing requirements to uamqp.egg-info/requires.txt
writing top-level names to uamqp.egg-info/top_level.txt
reading manifest file 'uamqp.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'uamqp.egg-info/SOURCES.txt'
copying uamqp/c_uamqp.c -> build/lib.linux-aarch64-3.9/uamqp
running build_ext
will build uamqp in build/temp.linux-aarch64-3.9/cmake
Building with generator flags: -G "Unix Makefiles"
calling cmake /tmp/pip-install-u756m4v5/uamqp/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
/bin/sh: 1: cmake: not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-u756m4v5/uamqp/setup.py", line 260, in <module>
setup(
File "/usr/local/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.9/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/lib/python3.9/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.9/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/usr/local/lib/python3.9/distutils/command/install.py", line 546, in run
self.run_command('build')
File "/usr/local/lib/python3.9/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.9/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/local/lib/python3.9/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-u756m4v5/uamqp/setup.py", line 134, in run
self.build_cmake(ext)
File "/tmp/pip-install-u756m4v5/uamqp/setup.py", line 183, in build_cmake
subprocess.check_call(joined_cmd, shell=True, universal_newlines=True, env=build_env)
File "/usr/local/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'cmake /tmp/pip-install-u756m4v5/uamqp/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 127.
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-u756m4v5/uamqp/setup.py'"'"'; __file__='"'"'/tmp/pip-install-u756m4v5/uamqp/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-of2xdiqa/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/uamqp Check the logs for full command output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment