Aws-iot-device-sdk-python-v2: Installation Issue on Raspberry Pi

Created on 4 Apr 2021  Β·  6Comments  Β·  Source: aws/aws-iot-device-sdk-python-v2

I have an issue with aws-iot-device-sdk-python-v2 installation on Raspberry Pi

Setup:-
β€’ raspbian 10.9 (buster)
β€’ Pi 3 Model B revision 1.2
β€’ pip version 20.3.4
β€’ Python 3.7

I ran into problem when installing AWS IoT Device SDK v2 for Python from source as well as using PyPI. I have also install cmake and libssl-dev as suggested. The error seems to come from CMakeLists.txt:660. Any help will be appreciated.

This is the error message:-

`Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Processing ./aws-iot-device-sdk-python-v2
Collecting awscrt==0.11.4 (from awsiotsdk==1.0.0.dev0)
Using cached https://files.pythonhosted.org/packages/31/3a/4914c140ec0ef203db8c7cef0e84c6eee1b54316766e77d5013af23cef12/awscrt-0.11.4.tar.gz
Building wheels for collected packages: awsiotsdk, awscrt
Running setup.py bdist_wheel for awsiotsdk ... done
Stored in directory: /home/pi/.cache/pip/wheels/c2/c1/c8/34fc01d6902334ae9a2945b916990246499b722dfd1bfe1970
Running setup.py bdist_wheel for awscrt ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-apiudahh/awscrt/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-wa6brwre --python-tag cp37:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.7
creating build/lib.linux-armv7l-3.7/awscrt
copying awscrt/io.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/crypto.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/exceptions.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/__init__.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/common.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/mqtt.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/http.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/s3.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/auth.py -> build/lib.linux-armv7l-3.7/awscrt
creating build/lib.linux-armv7l-3.7/awscrt/eventstream
copying awscrt/eventstream/__init__.py -> build/lib.linux-armv7l-3.7/awscrt/eventstream
copying awscrt/eventstream/rpc.py -> build/lib.linux-armv7l-3.7/awscrt/eventstream
running build_ext
--- Building dependency: aws-lc (RelWithDebInfo) ---
/usr/bin/cmake -DCMAKE_PREFIX_PATH=/tmp/pip-install-apiudahh/awscrt/build/deps/install -DCMAKE_INSTALL_PREFIX=/tmp/pip-install-apiudahh/awscrt/build/deps/install -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBUILD_LIBSSL=OFF /tmp/pip-install-apiudahh/awscrt/crt/aws-lc
-- The C compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Perl: /usr/bin/perl (found version "5.28.1")
-- Checking for module 'libunwind-generic'
-- No package 'libunwind-generic' found
libunwind not found. Disabling unwind tests.
-- Go not found. Disabling some code generation and using pre-generated code in generated-src/
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
CMake Error at CMakeLists.txt:660 (add_subdirectory):
add_subdirectory given source "util/fipstools/cavp" which is not an
existing directory.

CMake Error at CMakeLists.txt:661 (add_subdirectory):
add_subdirectory given source "util/fipstools/acvp/modulewrapper" which is
not an existing directory.

-- Configuring incomplete, errors occurred!
See also "/tmp/pip-install-apiudahh/awscrt/build/deps/aws-lc/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-apiudahh/awscrt/setup.py", line 280, in
'boto3'
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 188, in run
self.run_command('build')
File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-apiudahh/awscrt/setup.py", line 194, in run
self._build_dependency(lib)
File "/tmp/pip-install-apiudahh/awscrt/setup.py", line 175, in _build_dependency
subprocess.check_call(cmake_args)
File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/cmake', '-DCMAKE_PREFIX_PATH=/tmp/pip-install-apiudahh/awscrt/build/deps/install', '-DCMAKE_INSTALL_PREFIX=/tmp/pip-install-apiudahh/awscrt/build/deps/install', '-DBUILD_SHARED_LIBS=OFF', '-DCMAKE_BUILD_TYPE=RelWithDebInfo', '-DBUILD_TESTING=OFF', '-DCMAKE_POSITION_INDEPENDENT_CODE=ON', '-DBUILD_LIBSSL=OFF', '/tmp/pip-install-apiudahh/awscrt/crt/aws-lc']' returned non-zero exit status 1.


Failed building wheel for awscrt
Running setup.py clean for awscrt
Successfully built awsiotsdk
Failed to build awscrt
Installing collected packages: awscrt, awsiotsdk
Running setup.py install for awscrt ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-apiudahh/awscrt/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-bnasw_9w/install-record.txt --single-version-externally-managed --compile --user --prefix=:
running install
running build
running build_py
creating build/lib.linux-armv7l-3.7
creating build/lib.linux-armv7l-3.7/awscrt
copying awscrt/io.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/crypto.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/exceptions.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/__init__.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/common.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/mqtt.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/http.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/s3.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/auth.py -> build/lib.linux-armv7l-3.7/awscrt
creating build/lib.linux-armv7l-3.7/awscrt/eventstream
copying awscrt/eventstream/__init__.py -> build/lib.linux-armv7l-3.7/awscrt/eventstream
copying awscrt/eventstream/rpc.py -> build/lib.linux-armv7l-3.7/awscrt/eventstream
running build_ext
--- Building dependency: aws-lc (RelWithDebInfo) ---
/usr/bin/cmake -DCMAKE_PREFIX_PATH=/tmp/pip-install-apiudahh/awscrt/build/deps/install -DCMAKE_INSTALL_PREFIX=/tmp/pip-install-apiudahh/awscrt/build/deps/install -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBUILD_LIBSSL=OFF /tmp/pip-install-apiudahh/awscrt/crt/aws-lc
-- Checking for module 'libunwind-generic'
-- No package 'libunwind-generic' found
libunwind not found. Disabling unwind tests.
-- Go not found. Disabling some code generation and using pre-generated code in generated-src/
CMake Error at CMakeLists.txt:660 (add_subdirectory):
add_subdirectory given source "util/fipstools/cavp" which is not an
existing directory.

CMake Error at CMakeLists.txt:661 (add_subdirectory):
  add_subdirectory given source "util/fipstools/acvp/modulewrapper" which is
  not an existing directory.


-- Configuring incomplete, errors occurred!
See also "/tmp/pip-install-apiudahh/awscrt/build/deps/aws-lc/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-apiudahh/awscrt/setup.py", line 280, in <module>
    'boto3'
  File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.7/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 61, in run
    return orig.install.run(self)
  File "/usr/lib/python3.7/distutils/command/install.py", line 589, in run
    self.run_command('build')
  File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.7/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/tmp/pip-install-apiudahh/awscrt/setup.py", line 194, in run
    self._build_dependency(lib)
  File "/tmp/pip-install-apiudahh/awscrt/setup.py", line 175, in _build_dependency
    subprocess.check_call(cmake_args)
  File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/cmake', '-DCMAKE_PREFIX_PATH=/tmp/pip-install-apiudahh/awscrt/build/deps/install', '-DCMAKE_INSTALL_PREFIX=/tmp/pip-install-apiudahh/awscrt/build/deps/install', '-DBUILD_SHARED_LIBS=OFF', '-DCMAKE_BUILD_TYPE=RelWithDebInfo', '-DBUILD_TESTING=OFF', '-DCMAKE_POSITION_INDEPENDENT_CODE=ON', '-DBUILD_LIBSSL=OFF', '/tmp/pip-install-apiudahh/awscrt/crt/aws-lc']' returned non-zero exit status 1.

----------------------------------------

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-apiudahh/awscrt/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-bnasw_9w/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-apiudahh/awscrt/

`

bug

Most helpful comment

This is a know issue that we are currently working on fixing. I will update you here when the fix is applied.

All 6 comments

I have a same problem on my raspberry-pi

Same for me using this documentation https://docs.aws.amazon.com/iot/latest/developerguide/connecting-to-existing-device.html#gs-device-sdk-tools
Pi 4 2 GB version

Tried installing and got this error:

pi@raspberrypi:~ $ uname -a
Linux raspberrypi 5.10.17-v7l+ #1403 SMP Mon Feb 22 11:33:35 GMT 2021 armv7l GNU/Linux

`pi@raspberrypi:~ $ python3 -m pip install --no-cache-dir awsiotsdk
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting awsiotsdk
Downloading https://www.piwheels.org/simple/awsiotsdk/awsiotsdk-1.5.10-py3-none-any.whl (42 kB)
|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 42 kB 1.3 MB/s
Collecting awscrt==0.11.4
Downloading awscrt-0.11.4.tar.gz (29.0 MB)
|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 29.0 MB 11.5 MB/s
Building wheels for collected packages: awscrt
Building wheel for awscrt (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-rbhe6u2e
cwd: /tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/
Complete output (78 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.7
creating build/lib.linux-armv7l-3.7/awscrt
copying awscrt/http.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/io.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/__init__.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/crypto.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/mqtt.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/common.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/exceptions.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/auth.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/s3.py -> build/lib.linux-armv7l-3.7/awscrt
creating build/lib.linux-armv7l-3.7/awscrt/eventstream
copying awscrt/eventstream/__init__.py -> build/lib.linux-armv7l-3.7/awscrt/eventstream
copying awscrt/eventstream/rpc.py -> build/lib.linux-armv7l-3.7/awscrt/eventstream
running build_ext
--- Building dependency: aws-lc (RelWithDebInfo) ---
/usr/bin/cmake -DCMAKE_PREFIX_PATH=/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/build/deps/install -DCMAKE_INSTALL_PREFIX=/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/build/deps/install -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBUILD_LIBSSL=OFF /tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/crt/aws-lc
-- The C compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Perl: /usr/bin/perl (found version "5.28.1")
-- Checking for module 'libunwind-generic'
-- No package 'libunwind-generic' found
libunwind not found. Disabling unwind tests.
-- Go not found. Disabling some code generation and using pre-generated code in generated-src/
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
CMake Error at CMakeLists.txt:660 (add_subdirectory):
add_subdirectory given source "util/fipstools/cavp" which is not an
existing directory.

CMake Error at CMakeLists.txt:661 (add_subdirectory):
add_subdirectory given source "util/fipstools/acvp/modulewrapper" which is
not an existing directory.

-- Configuring incomplete, errors occurred!
See also "/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/build/deps/aws-lc/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/setup.py", line 280, in
'boto3'
File "/home/pi/.local/lib/python3.7/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 188, in run
self.run_command('build')
File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/setup.py", line 194, in run
self._build_dependency(lib)
File "/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/setup.py", line 175, in _build_dependency
subprocess.check_call(cmake_args)
File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/cmake', '-DCMAKE_PREFIX_PATH=/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/build/deps/install', '-DCMAKE_INSTALL_PREFIX=/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/build/deps/install', '-DBUILD_SHARED_LIBS=OFF', '-DCMAKE_BUILD_TYPE=RelWithDebInfo', '-DBUILD_TESTING=OFF', '-DCMAKE_POSITION_INDEPENDENT_CODE=ON', '-DBUILD_LIBSSL=OFF', '/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/crt/aws-lc']' returned non-zero exit status 1.


ERROR: Failed building wheel for awscrt
Running setup.py clean for awscrt
Failed to build awscrt
Installing collected packages: awscrt, awsiotsdk
Attempting uninstall: awscrt
Found existing installation: awscrt 1.0.0.dev0
Uninstalling awscrt-1.0.0.dev0:
Successfully uninstalled awscrt-1.0.0.dev0
Running setup.py install for awscrt ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-bhyvnybv/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/pi/.local/include/python3.7m/awscrt
cwd: /tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/
Complete output (69 lines):
running install
running build
running build_py
creating build/lib.linux-armv7l-3.7
creating build/lib.linux-armv7l-3.7/awscrt
copying awscrt/http.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/io.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/__init__.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/crypto.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/mqtt.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/common.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/exceptions.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/auth.py -> build/lib.linux-armv7l-3.7/awscrt
copying awscrt/s3.py -> build/lib.linux-armv7l-3.7/awscrt
creating build/lib.linux-armv7l-3.7/awscrt/eventstream
copying awscrt/eventstream/__init__.py -> build/lib.linux-armv7l-3.7/awscrt/eventstream
copying awscrt/eventstream/rpc.py -> build/lib.linux-armv7l-3.7/awscrt/eventstream
running build_ext
--- Building dependency: aws-lc (RelWithDebInfo) ---
/usr/bin/cmake -DCMAKE_PREFIX_PATH=/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/build/deps/install -DCMAKE_INSTALL_PREFIX=/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/build/deps/install -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBUILD_LIBSSL=OFF /tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/crt/aws-lc
-- Checking for module 'libunwind-generic'
-- No package 'libunwind-generic' found
libunwind not found. Disabling unwind tests.
-- Go not found. Disabling some code generation and using pre-generated code in generated-src/
CMake Error at CMakeLists.txt:660 (add_subdirectory):
add_subdirectory given source "util/fipstools/cavp" which is not an
existing directory.

CMake Error at CMakeLists.txt:661 (add_subdirectory):
  add_subdirectory given source "util/fipstools/acvp/modulewrapper" which is
  not an existing directory.


-- Configuring incomplete, errors occurred!
See also "/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/build/deps/aws-lc/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/setup.py", line 280, in <module>
    'boto3'
  File "/home/pi/.local/lib/python3.7/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.7/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/home/pi/.local/lib/python3.7/site-packages/setuptools/command/install.py", line 61, in run
    return orig.install.run(self)
  File "/usr/lib/python3.7/distutils/command/install.py", line 589, in run
    self.run_command('build')
  File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.7/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/setup.py", line 194, in run
    self._build_dependency(lib)
  File "/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/setup.py", line 175, in _build_dependency
    subprocess.check_call(cmake_args)
  File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/cmake', '-DCMAKE_PREFIX_PATH=/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/build/deps/install', '-DCMAKE_INSTALL_PREFIX=/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/build/deps/install', '-DBUILD_SHARED_LIBS=OFF', '-DCMAKE_BUILD_TYPE=RelWithDebInfo', '-DBUILD_TESTING=OFF', '-DCMAKE_POSITION_INDEPENDENT_CODE=ON', '-DBUILD_LIBSSL=OFF', '/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/crt/aws-lc']' returned non-zero exit status 1.
----------------------------------------

Rolling back uninstall of awscrt
Moving to /home/pi/.local/lib/python3.7/site-packages/_awscrt.cpython-37m-arm-linux-gnueabihf.so
from /tmp/pip-uninstall-2bh69c8z/_awscrt.cpython-37m-arm-linux-gnueabihf.so
Moving to /home/pi/.local/lib/python3.7/site-packages/awscrt-1.0.0.dev0.dist-info/
from /home/pi/.local/lib/python3.7/site-packages/~wscrt-1.0.0.dev0.dist-info
Moving to /home/pi/.local/lib/python3.7/site-packages/awscrt/
from /home/pi/.local/lib/python3.7/site-packages/~wscrt
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-bhyvnybv/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/pi/.local/include/python3.7m/awscrt Check the logs for full command output.`

This is a know issue that we are currently working on fixing. I will update you here when the fix is applied.

This is fixed in the latest release 1.5.11

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

banuprathap picture banuprathap  Β·  10Comments

shravan097 picture shravan097  Β·  6Comments

mkozjak picture mkozjak  Β·  8Comments

Sanrro10 picture Sanrro10  Β·  16Comments

GauravPatni picture GauravPatni  Β·  4Comments