Aws-iot-device-sdk-python-v2: Raspberry Pi 上的安装问题

创建于 2021-04-04  ·  6评论  ·  资料来源: aws/aws-iot-device-sdk-python-v2

我在 Raspberry Pi 上安装 aws-iot-device-sdk-python-v2 时遇到问题

设置:-
• 树莓派 10.9(破坏者)
• Pi 3 Model B 修订版 1.2
• pip 版本 20.3.4
• Python 3.7

我在从源代码安装适用于 Python 的 AWS IoT Device SDK v2 以及使用 PyPI 时遇到了问题。 我还按照建议安装了 cmake 和 libssl-dev。 错误似乎来自 CMakeLists.txt:660。 任何帮助将不胜感激。

这是错误信息:-

`查看索引:https://pypi.org/simple、https://www.piwheels.org/simple
处理 ./aws-iot-device-sdk-python-v2
收集 awscrt==0.11.4(来自 awsiotsdk==1.0.0.dev0)
使用缓存的 https://files.pythonhosted.org/packages/31/3a/4914c140ec0ef203db8c7cef0e84c6eee1b54316766e77d5013af23cef12/awscrt-0.11.4.tar.gz
为收集的包构建轮子:awsiotsdk、awscrt
为 awsiotsdk 运行 setup.py bdist_wheel ... 完成
存放在目录:/home/pi/.cache/pip/wheels/c2/c1/c8/34fc01d6902334ae9a2945b916990246499b722dfd1bfe1970
为 awscrt 运行 setup.py bdist_wheel ... 错误
命令 /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:
运行 bdist_wheel
运行构建
运行 build_py
创建构建
创建 build/lib.linux-armv7l-3.7
创建 build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/io.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/crypto.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/exceptions.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/__init__.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/common.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/mqtt.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/http.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/s3.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/auth.py -> build/lib.linux-armv7l-3.7/awscrt
创建 build/lib.linux-armv7l-3.7/awscrt/eventstream
复制 awscrt/eventstream/__init__.py -> build/lib.linux-armv7l-3.7/awscrt/eventstream
复制 awscrt/eventstream/rpc.py -> build/lib.linux-armv7l-3.7/awscrt/eventstream
运行 build_ext
--- 构建依赖项: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_ =RelWithDebInfo -DBUILD_TESTING=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBUILD_LIBSSL=OFF /tmp/pip-install-apiudahh/awscrt/crt/aws-lc
-- C 编译器标识为 GNU 8.3.0
-- 检查工作的 C 编译器:/usr/bin/cc
-- 检查 C 编译器是否有效:/usr/bin/cc -- 有效
-- 检测 C 编译器 ABI 信息
-- 检测 C 编译器 ABI 信息 - 完成
-- 检测 C 编译特性
-- 检测 C 编译特性 - 完成
-- 找到 Perl:/usr/bin/perl(找到版本“5.28.1”)
-- 检查模块“libunwind-generic”
-- 没有找到包“libunwind-generic”
未找到 libunwind。 禁用展开测试。
——去没找到。 禁用一些代码生成并在生成的 src/ 中使用预先生成的代码
-- ASM 编译器标识为 GNU
-- 找到汇编程序:/usr/bin/cc
CMakeLists.txt 中的 CMake 错误:660(add_subdirectory):
add_subdirectory 给定源“util/fipstools/cavp”,它不是
现有目录。

CMakeLists.txt 中的 CMake 错误:661(add_subdirectory):
add_subdirectory 给定源“util/fipstools/acvp/modulewrapper”,即
不是现有目录。

-- 配置不完整,出现错误!
另请参阅“/tmp/pip-install-apiudahh/awscrt/build/deps/aws-lc/CMakeFiles/CMakeOutput.log”。
回溯(最近一次调用最后一次):
文件 ”",第 1 行,在
文件“/tmp/pip-install-apiudahh/awscrt/setup.py”,第 280 行,在
'boto3'
设置中的文件“/usr/lib/python3/dist-packages/setuptools/__init__.py”,第 145 行
返回 distutils.core.setup(**attrs)
文件“/usr/lib/python3.7/distutils/core.py”,第 148 行,在设置中
dist.run_commands()
文件“/usr/lib/python3.7/distutils/dist.py”,第 966 行,在 run_commands 中
self.run_command(cmd)
文件“/usr/lib/python3.7/distutils/dist.py”,第 985 行,在 run_command
cmd_obj.run()
运行中的文件“/usr/lib/python3/dist-packages/wheel/bdist_wheel.py”,第 188 行
self.run_command('build')
文件“/usr/lib/python3.7/distutils/cmd.py”,第 313 行,在 run_command 中
self.distribution.run_command(命令)
文件“/usr/lib/python3.7/distutils/dist.py”,第 985 行,在 run_command
cmd_obj.run()
运行中的文件“/usr/lib/python3.7/distutils/command/build.py”,第 135 行
self.run_command(cmd_name)
文件“/usr/lib/python3.7/distutils/cmd.py”,第 313 行,在 run_command 中
self.distribution.run_command(命令)
文件“/usr/lib/python3.7/distutils/dist.py”,第 985 行,在 run_command
cmd_obj.run()
运行中的文件“/tmp/pip-install-apiudahh/awscrt/setup.py”,第 194 行
self._build_dependency(lib)
_build_dependency 中的文件“/tmp/pip-install-apiudahh/awscrt/setup.py”,第 175 行
subprocess.check_call(cmake_args)
check_call 中的文件“/usr/lib/python3.7/subprocess.py”,第 347 行
引发 CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: 命令 '['/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/pip', -install-apiudahh/awscrt/crt/aws-lc']' 返回非零退出状态 1。


awscrt 的构建轮失败
为 awscrt 运行 setup.py clean
awsiotsdk 搭建成功
无法构建 awscrt
安装收集的包:awscrt、awsiotsdk
为 awscrt 运行 setup.py install ... 错误
命令 /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=:
运行安装
运行构建
运行 build_py
创建 build/lib.linux-armv7l-3.7
创建 build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/io.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/crypto.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/exceptions.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/__init__.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/common.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/mqtt.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/http.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/s3.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/auth.py -> build/lib.linux-armv7l-3.7/awscrt
创建 build/lib.linux-armv7l-3.7/awscrt/eventstream
复制 awscrt/eventstream/__init__.py -> build/lib.linux-armv7l-3.7/awscrt/eventstream
复制 awscrt/eventstream/rpc.py -> build/lib.linux-armv7l-3.7/awscrt/eventstream
运行 build_ext
--- 构建依赖项: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_ =RelWithDebInfo -DBUILD_TESTING=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBUILD_LIBSSL=OFF /tmp/pip-install-apiudahh/awscrt/crt/aws-lc
-- 检查模块“libunwind-generic”
-- 没有找到包“libunwind-generic”
未找到 libunwind。 禁用展开测试。
——去没找到。 禁用一些代码生成并在生成的 src/ 中使用预先生成的代码
CMakeLists.txt 中的 CMake 错误:660(add_subdirectory):
add_subdirectory 给定源“util/fipstools/cavp”,它不是
现有目录。

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.

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

命令 "/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=" 失败,错误代码 1 在 /tmp/pip-install-apiudahh/awscrt /

`

最有用的评论

这是我们目前正在修复的已知问题。 应用修复后,我会在此处更新您。

所有6条评论

我的树莓派也有同样的问题

对我来说同样使用这个文档https://docs.aws.amazon.com/iot/latest/developerguide/connecting-to-existing-device.html#gs -device-sdk-tools
Pi 4 2 GB 版本

尝试安装并出现此错误:

pi<strong i="6">@raspberrypi</strong>:~ $ 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
默认为用户安装,因为普通站点包不可写
查看索引:https://pypi.org/simple、https://www.piwheels.org/simple
收集awsiotsdk
下载 https://www.piwheels.org/simple/awsiotsdk/awsiotsdk-1.5.10-py3-none-any.whl (42 kB)
|████████████████████████████████| 42 KB 1.3 MB/秒
收集 awscrt==0.11.4
下载 awscrt-0.11.4.tar.gz (29.0 MB)
|████████████████████████████████| 29.0 MB 11.5 MB/秒
为收集的包构建轮子:awscrt
awscrt (setup.py) 的构建轮......错误
错误:命令出错,退出状态为 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)( ;code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(代码,__file__,'"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-rbhe6u2e
cwd:/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/
完整输出(78 行):
运行 bdist_wheel
运行构建
运行 build_py
创建构建
创建 build/lib.linux-armv7l-3.7
创建 build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/http.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/io.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/__init__.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/crypto.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/mqtt.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/common.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/exceptions.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/auth.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/s3.py -> build/lib.linux-armv7l-3.7/awscrt
创建 build/lib.linux-armv7l-3.7/awscrt/eventstream
复制 awscrt/eventstream/__init__.py -> build/lib.linux-armv7l-3.7/awscrt/eventstream
复制 awscrt/eventstream/rpc.py -> build/lib.linux-armv7l-3.7/awscrt/eventstream
运行 build_ext
--- 构建依赖项:aws-lc (RelWithDebInfo) ---
的/ usr /斌/ cmake的-DCMAKE_PREFIX_PATH = / TMP / PIP-安装-_qge_j7_ / awscrt_5831c6121e1245d9bb1d2dcd83a61a83 /建造/ DEPS /安装-DCMAKE_INSTALL_PREFIX = / TMP / PIP-安装-_qge_j7_ / awscrt_5831c6121e1245d9bb1d2dcd83a61a83 /建造/ DEPS /安装-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/lct/aws
-- C 编译器标识为 GNU 8.3.0
-- 检查工作的 C 编译器:/usr/bin/cc
-- 检查 C 编译器是否有效:/usr/bin/cc -- 有效
-- 检测 C 编译器 ABI 信息
-- 检测 C 编译器 ABI 信息 - 完成
-- 检测 C 编译特性
-- 检测 C 编译特性 - 完成
-- 找到 Perl:/usr/bin/perl(找到版本“5.28.1”)
-- 检查模块“libunwind-generic”
-- 没有找到包“libunwind-generic”
未找到 libunwind。 禁用展开测试。
——去没找到。 禁用一些代码生成并在生成的 src/ 中使用预先生成的代码
-- ASM 编译器标识为 GNU
-- 找到汇编程序:/usr/bin/cc
CMakeLists 中的 CMake 错误。 txt:660 (add_subdirectory):
add_subdirectory 给定源“util/fipstools/cavp”,它不是
现有目录。

CMakeLists 中的 CMake 错误。 txt:661 (add_subdirectory):
add_subdirectory 给定源“util/fipstools/acvp/modulewrapper”,即
不是现有目录。

-- 配置不完整,出现错误!
另请参阅“/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/build/deps/aws-lc/CMakeFiles/CMakeOutput.log”。
回溯(最近一次调用最后一次):
文件 ”",第 1 行,在
文件“/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/setup.py”,第280行,在
'boto3'
设置中的文件“/home/pi/.local/lib/python3.7/site-packages/setuptools/__init__.py”,第 153 行
返回 distutils.core.setup(**attrs)
文件“/usr/lib/python3.7/distutils/core.py”,第 148 行,在设置中
dist.run_commands()
文件“/usr/lib/python3.7/distutils/dist.py”,第 966 行,在 run_commands 中
self.run_command(cmd)
文件“/usr/lib/python3.7/distutils/dist.py”,第 985 行,在 run_command
cmd_obj.run()
运行中的文件“/usr/lib/python3/dist-packages/wheel/bdist_wheel.py”,第 188 行
self.run_command('build')
文件“/usr/lib/python3.7/distutils/cmd.py”,第 313 行,在 run_command 中
self.distribution.run_command(命令)
文件“/usr/lib/python3.7/distutils/dist.py”,第 985 行,在 run_command
cmd_obj.run()
运行中的文件“/usr/lib/python3.7/distutils/command/build.py”,第 135 行
self.run_command(cmd_name)
文件“/usr/lib/python3.7/distutils/cmd.py”,第 313 行,在 run_command 中
self.distribution.run_command(命令)
文件“/usr/lib/python3.7/distutils/dist.py”,第 985 行,在 run_command
cmd_obj.run()
文件“/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/setup.py”,第194行,运行中
self._build_dependency(lib)
文件“/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/setup.py”,第 175 行,在 _build_dependency
subprocess.check_call(cmake_args)
check_call 中的文件“/usr/lib/python3.7/subprocess.py”,第 347 行
引发 CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: 命令 '['/usr/bin/cmake', '-DCMAKE_PREFIX_PATH=/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/build/deps/install', '-DCMAKE_PREFIX_PATH=/tmp/pip-install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/build/deps/install', '-dmps/install', '-dmps/install', '-jPREFIXT_DCM_ /awscrt_5831c6121e1245d9bb1d2dcd83a61a83/build/deps/install'、'-DBUILD_SHARED_LIBS=OFF'、'-DCMAKE_BUILD_TYPE=RelWithDebInfo'、'-DBUILD_TESTING=OFF'、'-DBUILD_TESTING=OFF'、'-DBUILD_TESTING=OFF'、'-DBUILD_TESTING=OFF'、'-DBUILD_TESTING=OFF'、'-DBUILD_SHARED_LIBS=OFF'、'-DBUILD_TESTING=OFF'、'pipD-ssl'、'-DBUILD_SHARED_LIBS=OFF' -install-_qge_j7_/awscrt_5831c6121e1245d9bb1d2dcd83a61a83/crt/aws-lc']' 返回非零退出状态 1。


错误:awscrt 的构建轮失败
为 awscrt 运行 setup.py clean
无法构建 awscrt
安装收集的包:awscrt、awsiotsdk
尝试卸载:awscrt
找到现有安装:awscrt 1.0.0.dev0
卸载 awscrt-1.0.0.dev0:
成功卸载 awscrt-1.0.0.dev0
为 awscrt 运行 setup.py install ... 错误
错误:命令出错,退出状态为 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)( ;code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(代码, __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/
完整输出(69 行):
运行安装
运行构建
运行 build_py
创建 build/lib.linux-armv7l-3.7
创建 build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/http.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/io.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/__init__.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/crypto.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/mqtt.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/common.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/exceptions.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/auth.py -> build/lib.linux-armv7l-3.7/awscrt
复制 awscrt/s3.py -> build/lib.linux-armv7l-3.7/awscrt
创建 build/lib.linux-armv7l-3.7/awscrt/eventstream
复制 awscrt/eventstream/__init__.py -> build/lib.linux-armv7l-3.7/awscrt/eventstream
复制 awscrt/eventstream/rpc.py -> build/lib.linux-armv7l-3.7/awscrt/eventstream
运行 build_ext
--- 构建依赖项:aws-lc (RelWithDebInfo) ---
的/ usr /斌/ cmake的-DCMAKE_PREFIX_PATH = / TMP / PIP-安装-_qge_j7_ / awscrt_5831c6121e1245d9bb1d2dcd83a61a83 /建造/ DEPS /安装-DCMAKE_INSTALL_PREFIX = / TMP / PIP-安装-_qge_j7_ / awscrt_5831c6121e1245d9bb1d2dcd83a61a83 /建造/ DEPS /安装-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/lct/aws
-- 检查模块“libunwind-generic”
-- 没有找到包“libunwind-generic”
未找到 libunwind。 禁用展开测试。
——去没找到。 禁用一些代码生成并在生成的 src/ 中使用预先生成的代码
CMakeLists 中的 CMake 错误。 txt:660 (add_subdirectory):
add_subdirectory 给定源“util/fipstools/cavp”,它不是
现有目录。

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.
----------------------------------------

回滚卸载 awscrt
移动到 /home/pi/.local/lib/python3.7/site-packages/_awscrt.cpython-37m-arm-linux-gnueabihf.so
来自 /tmp/pip-uninstall-2bh69c8z/_awscrt.cpython-37m-arm-linux-gnueabihf.so
移动到 /home/pi/.local/lib/python3.7/site-packages/awscrt-1.0.0.dev0.dist-info/
来自 /home/pi/.local/lib/python3.7/site-packages/~wscrt-1.0.0.dev0.dist-info
移动到 /home/pi/.local/lib/python3.7/site-packages/awscrt/
来自 /home/pi/.local/lib/python3.7/site-packages/~wscrt
错误:命令出错,退出状态为 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)( ;code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(代码, __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 检查日志以获取完整的命令输出。`

这是我们目前正在修复的已知问题。 应用修复后,我会在此处更新您。

这是在最新版本 1.5.11 中修复的

⚠️评论可见度警告⚠️

我们的团队很难看到对已解决问题的评论。
如果您需要更多帮助,请标记团队成员或打开引用此问题的新问题。
如果您希望在此问题下继续与其他社区成员进行对话,请随时这样做。

此页面是否有帮助?
0 / 5 - 0 等级

相关问题

GauravPatni picture GauravPatni  ·  4评论

mkozjak picture mkozjak  ·  8评论

shravan097 picture shravan097  ·  6评论

supertick picture supertick  ·  7评论

banuprathap picture banuprathap  ·  10评论