New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation Issue on Raspberry Pi #176
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 |
Tried installing and got this error:
`pi@raspberrypi:~ $ python3 -m pip install --no-cache-dir awsiotsdk CMake Error at CMakeLists.txt:661 (add_subdirectory): -- Configuring incomplete, errors occurred!
|
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 |
|
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.
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/
`
The text was updated successfully, but these errors were encountered: