Aws-iot-device-sdk-python-v2: مشاكل في التركيب

تم إنشاؤها على ١٣ أكتوبر ٢٠٢٠  ·  16تعليقات  ·  مصدر: aws/aws-iot-device-sdk-python-v2

بعد النظر في معظم القضايا المغلقة في هذه الصفحة ، هناك العديد من المناقشات حول هذه المشكلة ، ولكن لا شيء يحلها بالنسبة لي.

عندما تحاول التثبيت بامتداد
تثبيت python3 -m pip awsiotsdk أو
استنساخ بوابة https://github.com/aws/aws-iot-device-sdk-python-v2.git
تثبيت python3 -m pip ./aws-iot-device-sdk-python-v2

أحصل على ما يلي:


جمع awsiotsdk
استخدام awsiotsdk-1.5.1-py3-none-any.whl المخزن مؤقتًا (18 كيلو بايت)
جمع awscrt == 0.9.3
استخدام awscrt-0.9.3.tar.gz المخزن مؤقتًا (2.5 ميجابايت)
عجلات البناء للحزم المجمعة: awscrt
عجلة البناء لـ awscrt (setup.py) ... خطأ
خطأ: حدث خطأ في الأمر مع حالة الخروج 1:
الأمر: / usr / bin / python3 -u -c استيراد sys ، setuptools ، tokenize ؛ sys.argv [0] = "" "" /tmp/pip-install-un4mvgep/awscrt/setup.py '"" "'؛ __file __ = '"" "' / tmp / pip-install-un4mvgep / awscrt / setup.py '" ""' ؛ f = getattr (رمز مميز ، "" "" "فتح" "" "، فتح) (__ ملف__) ؛ code = f.read (). replace ('"" "' \ r \ n '" "' '،'" "" '\ n' "" ')؛ f.close ()؛ exec (ترجمة ( code، __file__، '"" "' exec '" ""')) 'bdist_wheel -d / tmp / pip-wheel-s5x44slu
cwd: / tmp / pip-install-un4mvgep / awscrt /
الإخراج الكامل (112 خطًا):
تشغيل bdist_wheel
تشغيل البناء
تشغيل build_py
خلق البناء
إنشاء بناء / lib.linux-aarch64-3.6
إنشاء بناء / lib.linux-aarch64-3.6 / awscrt
نسخ awscrt / auth.py -> build / lib.linux-aarch64-3.6 / awscrt
نسخ awscrt / crypto.py -> build / lib.linux-aarch64-3.6 / awscrt
نسخ awscrt / http.py -> build / lib.linux-aarch64-3.6 / awscrt
نسخ awscrt / io.py -> build / lib.linux-aarch64-3.6 / awscrt
نسخ awscrt / mqtt.py -> build / lib.linux-aarch64-3.6 / awscrt
نسخ awscrt / __ init__.py -> build / lib.linux-aarch64-3.6 / awscrt
نسخ awscrt / exceptions.py -> build / lib.linux-aarch64-3.6 / awscrt
نسخ awscrt / awsiot_mqtt_connection_builder.py -> build / lib.linux-aarch64-3.6 / awscrt
تشغيل build_ext
cmake الإصدار 3.10.2

مجموعة CMake تتم صيانتها ودعمها بواسطة Kitware (kitware.com/cmake).
- تبعية البناء: s2n (RelWithDebInfo) ---
cmake -DCMAKE_PREFIX_PATH = / tmp / pip-install-un4mvgep / awscrt / build / deps / install -DCMAKE_INSTALL_PREFIX = / tmp / pip-install-un4mvgep / awscrt / build / deps / install -DBUILD_SHARED_LEST = OFF -DCMAKE_INCLUDE_PATH = \ "/ usr / include / python3.6m \" -DLibCrypto_INCLUDE_DIR = / tmp / pip-install-un4mvgep / awscrt / build / deps / libcrypto / include -DLibCrypto_STATIC_LIBmvrARY = /build/deps/libcrypto/lib/libcrypto.a / tmp / pip-install-un4mvgep / awscrt / crt / s2n
- تعريف برنامج التحويل البرمجي للغة C هو GNU 7.5.0
- تحقق من عمل مترجم C: / usr / bin / cc
- التحقق من عمل مترجم C: / usr / bin / cc - Works
- الكشف عن معلومات المترجم C ABI
- الكشف عن معلومات المترجم C ABI - تم
- الكشف عن ميزات C compile
- الكشف عن ميزات C compile - تم
- أبحث عن pthread.h
- أبحث عن pthread.h - وجدت
- أبحث عن pthread_create
- تبحث عن pthread_create - غير موجود
- تحقق مما إذا كان المترجم يقبل -pthread
- تحقق مما إذا كان المترجم يقبل -pthread - نعم
- تم العثور على المواضيع: TRUE
- محاولة try_compile PQ ASM
- تعريف المترجم ASM هو GNU
- تم العثور على المجمع: / usr / bin / cc
- فشل try_compile PQ ASM - استخدام كود C عام لتشفير PQ
- إجراء الاختبار S2N_HAVE_EXECINFO
- أداء الاختبار S2N_HAVE_EXECINFO - النجاح
- تم العثور على LibCrypto: /tmp/pip-install-un4mvgep/awscrt/build/deps/libcrypto/lib/libcrypto.a
- LibCrypto تضمين Dir: / tmp / pip-install-un4mvgep / awscrt / build / deps / libcrypto / include
- LibCrypto Shared Lib: /usr/lib/aarch64-linux-gnu/libcrypto.so
- LibCrypto Static Lib: /tmp/pip-install-un4mvgep/awscrt/build/deps/libcrypto/lib/libcrypto.a
- تم التهيئة
CMake Error في CMakeLists. النص: 191 (add_library):
استهدف روابط "s2n" لاستهداف "LibCrypto :: Crypto" ولكن الهدف لم يكن كذلك
وجدت. ربما يكون استدعاء find_package () مفقودًا لهدف مستورد ، أو
هدف ALIAS مفقود؟

CMake Error في CMakeLists. TXT: 239 (target_include_directories):
خطأ في تقييم تعبير المولد:

  $<TARGET_PROPERTY:LibCrypto::Crypto,INTERFACE_INCLUDE_DIRECTORIES>

Target "LibCrypto::Crypto" not found.

CMake Error في CMakeLists. TXT: 239 (target_include_directories):
خطأ في تقييم تعبير المولد:

  $<TARGET_PROPERTY:LibCrypto::Crypto,INTERFACE_INCLUDE_DIRECTORIES>

Target "LibCrypto::Crypto" not found.

CMake Error في CMakeLists. النص: 191 (add_library):
استهدف روابط "s2n" لاستهداف "LibCrypto :: Crypto" ولكن الهدف لم يكن كذلك
وجدت. ربما يكون استدعاء find_package () مفقودًا لهدف مستورد ، أو
هدف ALIAS مفقود؟

- تم التوليد
إجراء تحذير:
لم يستخدم المشروع المتغيرات المحددة يدويًا:

  CMAKE_INCLUDE_PATH

- تمت كتابة ملفات الإنشاء إلى: / tmp / pip-install-un4mvgep / awscrt / build / deps / s2n
Traceback (آخر مكالمة أخيرة):
ملف ""، السطر 1 ، في
ملف "/tmp/pip-install-un4mvgep/awscrt/setup.py" ، السطر 263 ، في
"boto3"
ملف "/usr/lib/python3/dist-packages/setuptools/__init__.py" ، السطر 129 ، في الإعداد
إرجاع distutils.core.setup (** attrs)
ملف "/usr/lib/python3.6/distutils/core.py" ، السطر 148 ، في الإعداد
أوامر dist.run_ ()
ملف "/usr/lib/python3.6/distutils/dist.py" ، السطر 955 ، في run_commands
self.run_command (كمد)
ملف "/usr/lib/python3.6/distutils/dist.py" ، السطر 974 ، في run_command
cmd_obj.run ()
ملف "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py" ، السطر 204 ، قيد التشغيل
self.run_command ("بناء")
ملف "/usr/lib/python3.6/distutils/cmd.py" ، السطر 313 ، في run_command
self.distribution.run_command (أمر)
ملف "/usr/lib/python3.6/distutils/dist.py" ، السطر 974 ، في run_command
cmd_obj.run ()
ملف "/usr/lib/python3.6/distutils/command/build.py" ، السطر 135 ، قيد التشغيل
self.run_command (cmd_name)
ملف "/usr/lib/python3.6/distutils/cmd.py" ، السطر 313 ، في run_command
self.distribution.run_command (أمر)
ملف "/usr/lib/python3.6/distutils/dist.py" ، السطر 974 ، في run_command
cmd_obj.run ()
ملف "/tmp/pip-install-un4mvgep/awscrt/setup.py" ، السطر 179 ، قيد التشغيل
الاعتماد على الذات_بناء_النفس (ليب)
ملف "/tmp/pip-install-un4mvgep/awscrt/setup.py" ، السطر 162 ، في _build_dependency
عملية فرعية. check_call (cmake_args)
ملف "/usr/lib/python3.6/subprocess.py" ، السطر 311 ، في check_call
رفع CalledProcessError (retcode، cmd)
خطأ العملية التي تم استدعاؤها: الأمر '[' cmake '،' -DCMAKE_PREFIX_PATH = / tmp / pip-install-un4mvgep / awscrt / build / deps / install '،' -DCMAKE_INSTALL_PREFIX = / tmp / pip-install / un4mvgep deps / تثبيت '،' -DBUILD_SHARED_LIBS = OFF '،' -DCMAKE_BUILD_TYPE = RelWithDebInfo '،' -DBUILD_TESTING = OFF '،' -DCMAKE_INCLUDE_PATH = "/ usr / include / pythrypton3.6mib =" -install-un4mvgep / awscrt / build / deps / libcrypto / include '،' -DLibCrypto_STATIC_LIBRARY = / tmp / pip-install-un4mvgep / awscrt / build / deps / libcrypto / lib / libcrypto.a '،' / tmp / pip- install-un4mvgep / awscrt / crt / s2n ']' أعاد حالة خروج غير صفرية 1.


خطأ: فشل بناء عجلة لـ awscrt
تشغيل setup.py clean لـ awscrt
فشل بناء awscrt
تثبيت الحزم المجمعة: awscrt ، awsiotsdk
تشغيل تثبيت setup.py لـ awscrt ... خطأ
خطأ: حدث خطأ في الأمر مع حالة الخروج 1:
الأمر: / usr / bin / python3 -u -c استيراد sys ، setuptools ، tokenize ؛ sys.argv [0] = "" "" /tmp/pip-install-un4mvgep/awscrt/setup.py '"" "'؛ __file __ = '"" "' / tmp / pip-install-un4mvgep / awscrt / setup.py '" ""' ؛ f = getattr (رمز مميز ، "" "" "فتح" "" "، فتح) (__ ملف__) ؛ code = f.read (). replace ('"" "' \ r \ n '" "' '،'" "" '\ n' "" ')؛ f.close ()؛ exec (ترجمة ( code، __file__، '"" "' exec '" ""')) 'install --record /tmp/pip-record-mbraawb4/install-record.txt --single-version-externally -aged --user - البادئة = --compile --install-headers /home/grabitinigo/.local/include/python3.6m/awscrt
cwd: / tmp / pip-install-un4mvgep / awscrt /
الإخراج الكامل (88 خطًا):
تثبيت قيد التشغيل
تشغيل البناء
تشغيل build_py
إنشاء بناء / lib.linux-aarch64-3.6
إنشاء بناء / lib.linux-aarch64-3.6 / awscrt
نسخ awscrt / auth.py -> build / lib.linux-aarch64-3.6 / awscrt
نسخ awscrt / crypto.py -> build / lib.linux-aarch64-3.6 / awscrt
نسخ awscrt / http.py -> build / lib.linux-aarch64-3.6 / awscrt
نسخ awscrt / io.py -> build / lib.linux-aarch64-3.6 / awscrt
نسخ awscrt / mqtt.py -> build / lib.linux-aarch64-3.6 / awscrt
نسخ awscrt / __ init__.py -> build / lib.linux-aarch64-3.6 / awscrt
نسخ awscrt / exceptions.py -> build / lib.linux-aarch64-3.6 / awscrt
نسخ awscrt / awsiot_mqtt_connection_builder.py -> build / lib.linux-aarch64-3.6 / awscrt
تشغيل build_ext
cmake الإصدار 3.10.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).
--- Building dependency: s2n (RelWithDebInfo) ---
cmake -DCMAKE_PREFIX_PATH=/tmp/pip-install-un4mvgep/awscrt/build/deps/install -DCMAKE_INSTALL_PREFIX=/tmp/pip-install-un4mvgep/awscrt/build/deps/install -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=OFF -DCMAKE_INCLUDE_PATH=\"/usr/include/python3.6m\" -DLibCrypto_INCLUDE_DIR=/tmp/pip-install-un4mvgep/awscrt/build/deps/libcrypto/include -DLibCrypto_STATIC_LIBRARY=/tmp/pip-install-un4mvgep/awscrt/build/deps/libcrypto/lib/libcrypto.a /tmp/pip-install-un4mvgep/awscrt/crt/s2n
-- Attempting to try_compile PQ ASM
-- PQ ASM try_compile failed - using generic C code for PQ crypto
-- LibCrypto Include Dir: /tmp/pip-install-un4mvgep/awscrt/build/deps/libcrypto/include
-- LibCrypto Shared Lib:  /usr/lib/aarch64-linux-gnu/libcrypto.so
-- LibCrypto Static Lib:  /tmp/pip-install-un4mvgep/awscrt/build/deps/libcrypto/lib/libcrypto.a
-- Configuring done
CMake Error at CMakeLists.txt:191 (add_library):
  Target "s2n" links to target "LibCrypto::Crypto" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?


CMake Error at CMakeLists.txt:239 (target_include_directories):
  Error evaluating generator expression:

    $<TARGET_PROPERTY:LibCrypto::Crypto,INTERFACE_INCLUDE_DIRECTORIES>

  Target "LibCrypto::Crypto" not found.


CMake Error at CMakeLists.txt:239 (target_include_directories):
  Error evaluating generator expression:

    $<TARGET_PROPERTY:LibCrypto::Crypto,INTERFACE_INCLUDE_DIRECTORIES>

  Target "LibCrypto::Crypto" not found.


CMake Error at CMakeLists.txt:191 (add_library):
  Target "s2n" links to target "LibCrypto::Crypto" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?


-- Generating done
-- Build files have been written to: /tmp/pip-install-un4mvgep/awscrt/build/deps/s2n
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-un4mvgep/awscrt/setup.py", line 263, in <module>
    'boto3'
  File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 129, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.6/distutils/dist.py", line 974, 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.6/distutils/command/install.py", line 589, in run
    self.run_command('build')
  File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.6/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/tmp/pip-install-un4mvgep/awscrt/setup.py", line 179, in run
    self._build_dependency(lib)
  File "/tmp/pip-install-un4mvgep/awscrt/setup.py", line 162, in _build_dependency
    subprocess.check_call(cmake_args)
  File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '-DCMAKE_PREFIX_PATH=/tmp/pip-install-un4mvgep/awscrt/build/deps/install', '-DCMAKE_INSTALL_PREFIX=/tmp/pip-install-un4mvgep/awscrt/build/deps/install', '-DBUILD_SHARED_LIBS=OFF', '-DCMAKE_BUILD_TYPE=RelWithDebInfo', '-DBUILD_TESTING=OFF', '-DCMAKE_INCLUDE_PATH="/usr/include/python3.6m"', '-DLibCrypto_INCLUDE_DIR=/tmp/pip-install-un4mvgep/awscrt/build/deps/libcrypto/include', '-DLibCrypto_STATIC_LIBRARY=/tmp/pip-install-un4mvgep/awscrt/build/deps/libcrypto/lib/libcrypto.a', '/tmp/pip-install-un4mvgep/awscrt/crt/s2n']' returned non-zero exit status 1.
----------------------------------------

خطأ: خطأ في الأمر مع حالة الخروج 1: / usr / bin / python3 -u -c 'import sys، setuptools، tokenize؛ sys.argv [0] = "" "" /tmp/pip-install-un4mvgep/awscrt/setup.py '"" "'؛ __file __ = '"" "' / tmp / pip-install-un4mvgep / awscrt / setup.py '" ""' ؛ f = getattr (رمز مميز ، "" "" "فتح" "" "، فتح) (__ ملف__) ؛ code = f.read (). replace ('"" "' \ r \ n '" "' '،'" "" '\ n' "" ')؛ f.close ()؛ exec (ترجمة ( code، __file__، '"" "' exec '" ""')) 'install --record /tmp/pip-record-mbraawb4/install-record.txt --single-version-externally -aged --user - البادئة = --compile - install-headers /home/grabitinigo/.local/include/python3.6m/awscrt تحقق من السجلات للحصول على إخراج الأمر الكامل.


لقد حاولت التنفيذ مع sudo -H أو بدونه.
شكرا للمساعدة.

bug

ال 16 كومينتر

ما هو نظام التشغيل الذي تستخدمه؟ ما هو إصدار opensl الذي قمت بتثبيته؟ للحصول على نسخة مفتوحة SSL استخدم openssl version -a

هل جربت ما يلي أيضًا:

مشكلات التثبيت

يعتمد awsiotsdk على awscrt ، والذي يستخدم امتدادات C. يتم تنزيل العجلات المترجمة مسبقًا عند التثبيت على الأنظمة الأساسية الرئيسية (Mac و Windows و Linux و Raspbian. إذا كانت العجلات غير متوفرة لمنصتك ، فيجب على جهازك تجميع بعض مكتبات C. إذا واجهت مشكلات ، فثبّت ما يلي وحاول مرة أخرى:

sudo apt-get update
sudo apt-get install cmake
sudo apt-get install libssl-dev

لدي نفس المشكلة بالضبط في Ubuntu 20.04 / aarch64 / Python 3.8 / OpenSSL 1.1.1f.

لقد جربت هذا بالفعل ، وجهازي هو Jetson nano. لقد قمت بتثبيت OpenSSL 1.1.1 ، وحاولت التثبيت باستخدام sudo -H python3 -m pip install awsiotsdk == 1.5.0 وقد نجحت ، لذا أفترض أنها مشكلة في الإصدار الأخير

هل جربت ما يلي أيضًا:

مشكلات التثبيت
يعتمد awsiotsdk على awscrt ، والذي يستخدم امتدادات C. يتم تنزيل العجلات المترجمة مسبقًا عند التثبيت على الأنظمة الأساسية الرئيسية (Mac و Windows و Linux و Raspbian. إذا كانت العجلات غير متوفرة لمنصتك ، فيجب على جهازك تجميع بعض مكتبات C. إذا واجهت مشكلات ، فثبّت ما يلي وحاول مرة أخرى:
sudo apt-get update
sudo apt-get install cmake
sudo apt-get install libssl-dev

من خلال نفس الخطوات مثل @ Sanrro10 ولكن مع Raspberry Pi واجهت نفس المشكلة. التراجع إلى العمل v1.5.0. بالتأكيد مشكلة في الإصدار 1.5.1.

نحن نعمل حاليًا على إصلاح ، ولكن هذا يجب أن يؤثر فقط على منصات ARM. في الوقت الحالي ، كما اكتشف @ Sanrro10 ، يمكنك فقط استخدام الإصدار السابق 1.5.0. سوف أقوم بتحديث هذه المشكلة بعد نشر الإصلاح.

أرى نفس المشكلة أثناء تثبيت تطبيق مع awsiotsdk باعتباره تبعية في حاوية عامل إرساء تافهة.

  Building wheel for awscrt (setup.py): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-74gwxf0s/awscrt/setup.py'"'"'; __file__='"'"'/tmp/pip-install-74gwxf0s/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-jum46of1
       cwd: /tmp/pip-install-74gwxf0s/awscrt/
  Complete output (130 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.8
  creating build/lib.linux-x86_64-3.8/awscrt
  copying awscrt/__init__.py -> build/lib.linux-x86_64-3.8/awscrt
  copying awscrt/io.py -> build/lib.linux-x86_64-3.8/awscrt
  copying awscrt/awsiot_mqtt_connection_builder.py -> build/lib.linux-x86_64-3.8/awscrt
  copying awscrt/crypto.py -> build/lib.linux-x86_64-3.8/awscrt
  copying awscrt/http.py -> build/lib.linux-x86_64-3.8/awscrt
  copying awscrt/auth.py -> build/lib.linux-x86_64-3.8/awscrt
  copying awscrt/exceptions.py -> build/lib.linux-x86_64-3.8/awscrt
  copying awscrt/mqtt.py -> build/lib.linux-x86_64-3.8/awscrt
  running build_ext
  cmake version 3.13.4

  CMake suite maintained and supported by Kitware (kitware.com/cmake).
  --- Building dependency: s2n (RelWithDebInfo) ---
  cmake -DCMAKE_PREFIX_PATH=/tmp/pip-install-74gwxf0s/awscrt/build/deps/install -DCMAKE_INSTALL_PREFIX=/tmp/pip-install-74gwxf0s/awscrt/build/deps/install -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=OFF -DCMAKE_INCLUDE_PATH=\"/usr/local/include/python3.8\" -DCMAKE_LIBRARY_PATH=\"/usr/local/lib\" -DLibCrypto_INCLUDE_DIR=/tmp/pip-install-74gwxf0s/awscrt/build/deps/libcrypto/include -DLibCrypto_STATIC_LIBRARY=/tmp/pip-install-74gwxf0s/awscrt/build/deps/libcrypto/lib/libcrypto.a /tmp/pip-install-74gwxf0s/awscrt/crt/s2n
  -- 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
  -- Looking for pthread.h
  -- Looking for pthread.h - found
  -- Looking for pthread_create
  -- Looking for pthread_create - not found
  -- Check if compiler accepts -pthread
  -- Check if compiler accepts -pthread - yes
  -- Found Threads: TRUE
  -- Attempting to try_compile PQ ASM
  -- The ASM compiler identification is GNU
  -- Found assembler: /usr/bin/cc
  -- PQ ASM try_compile succeeded - using optimized x86_64 assembly for PQ crypto
  -- Attempting to try_compile PQ ASM with ADX support
  -- PQ ASM try_compile with ADX support succeeded - using ASM code with ADX instructions
  -- Performing Test S2N_HAVE_EXECINFO
  -- Performing Test S2N_HAVE_EXECINFO - Success
  -- Found LibCrypto: /tmp/pip-install-74gwxf0s/awscrt/build/deps/libcrypto/lib/libcrypto.a
  -- LibCrypto Include Dir: /tmp/pip-install-74gwxf0s/awscrt/build/deps/libcrypto/include
  -- LibCrypto Shared Lib:  /usr/lib/x86_64-linux-gnu/libcrypto.so
  -- LibCrypto Static Lib:  /tmp/pip-install-74gwxf0s/awscrt/build/deps/libcrypto/lib/libcrypto.a
  -- Configuring done
  CMake Error at CMakeLists.txt:191 (add_library):
    Target "s2n" links to target "LibCrypto::Crypto" but the target was not
    found.  Perhaps a find_package() call is missing for an IMPORTED target, or
    an ALIAS target is missing?


  CMake Error at CMakeLists.txt:239 (target_include_directories):
    Error evaluating generator expression:

      $<TARGET_PROPERTY:LibCrypto::Crypto,INTERFACE_INCLUDE_DIRECTORIES>

    Target "LibCrypto::Crypto" not found.


  CMake Error at CMakeLists.txt:239 (target_include_directories):
    Error evaluating generator expression:

      $<TARGET_PROPERTY:LibCrypto::Crypto,INTERFACE_INCLUDE_DIRECTORIES>

    Target "LibCrypto::Crypto" not found.


  CMake Error at CMakeLists.txt:239 (target_include_directories):
    Error evaluating generator expression:

      $<TARGET_PROPERTY:LibCrypto::Crypto,INTERFACE_INCLUDE_DIRECTORIES>

    Target "LibCrypto::Crypto" not found.


  CMake Error at CMakeLists.txt:239 (target_include_directories):
    Error evaluating generator expression:

      $<TARGET_PROPERTY:LibCrypto::Crypto,INTERFACE_INCLUDE_DIRECTORIES>

    Target "LibCrypto::Crypto" not found.


  CMake Error at CMakeLists.txt:191 (add_library):
    Target "s2n" links to target "LibCrypto::Crypto" but the target was not
    found.  Perhaps a find_package() call is missing for an IMPORTED target, or
    an ALIAS target is missing?


  -- Generating done
  CMake Warning:
    Manually-specified variables were not used by the project:

      CMAKE_INCLUDE_PATH


  -- Build files have been written to: /tmp/pip-install-74gwxf0s/awscrt/build/deps/s2n
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-74gwxf0s/awscrt/setup.py", line 245, in <module>
      setuptools.setup(
    File "/usr/local/lib/python3.8/site-packages/setuptools/__init__.py", line 161, in setup
      return distutils.core.setup(**attrs)
    File "/usr/local/lib/python3.8/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/usr/local/lib/python3.8/distutils/dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "/usr/local/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/usr/local/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 223, in run
      self.run_command('build')
    File "/usr/local/lib/python3.8/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/local/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/usr/local/lib/python3.8/distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/usr/local/lib/python3.8/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/local/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/tmp/pip-install-74gwxf0s/awscrt/setup.py", line 179, in run
      self._build_dependency(lib)
    File "/tmp/pip-install-74gwxf0s/awscrt/setup.py", line 162, in _build_dependency
      subprocess.check_call(cmake_args)
    File "/usr/local/lib/python3.8/subprocess.py", line 364, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['cmake', '-DCMAKE_PREFIX_PATH=/tmp/pip-install-74gwxf0s/awscrt/build/deps/install', '-DCMAKE_INSTALL_PREFIX=/tmp/pip-install-74gwxf0s/awscrt/build/deps/install', '-DBUILD_SHARED_LIBS=OFF', '-DCMAKE_BUILD_TYPE=RelWithDebInfo', '-DBUILD_TESTING=OFF', '-DCMAKE_INCLUDE_PATH="/usr/local/include/python3.8"', '-DCMAKE_LIBRARY_PATH="/usr/local/lib"', '-DLibCrypto_INCLUDE_DIR=/tmp/pip-install-74gwxf0s/awscrt/build/deps/libcrypto/include', '-DLibCrypto_STATIC_LIBRARY=/tmp/pip-install-74gwxf0s/awscrt/build/deps/libcrypto/lib/libcrypto.a', '/tmp/pip-install-74gwxf0s/awscrt/crt/s2n']' returned non-zero exit status 1.
  ----------------------------------------
  ERROR: Failed building wheel for awscrt

لدي نفس المشكلة في Arch Linux و python 3.8 و Openssl v.1.1.1h.

نفس المشكلة هنا: docker image python: أحدث تشغيل على Raspberry Pi 4.
الإصدارات الموجودة في الحاوية: Debian GNU / Linux 10 (buster)، Python 3.9.0، Openssl 1.1.1d
لسوء الحظ أيضًا ، لا تعمل الإصدارات 1.5.0 ansd 1.4.0 بالنسبة لي ، فهي تلقي بخطأ مختلف. انظر الملف المرفق ..
خارج الحاوية (Raspbian) 1.5.0 يعمل.
error_awsiotsdk.txt
هل توجد أخطاء معروفة في حاويات الرصيف؟
تحرير : اكتشفت أنه غير متوافق مع Python 3.9.0! باستخدام 3.8 يعمل.

أنا أيضا لدي هذه القضايا. أنا أستخدم طراز Raspberry 3 B مع python 3.7.3.


حدثت أخطاء عند تشغيل python3 -m pip install awsiotsdk و python3 -m pip install ./aws-iot-device-sdk-python-v2

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Processing /home/pi/aws-iot-device-sdk-python-v2
Collecting awscrt==0.9.3 (from awsiotsdk==1.0.0.dev0)
  Using cached https://files.pythonhosted.org/packages/83/2b/ad7fe011bb17baeb59f4a6e4b6f8b0e53da607b6cc2b50bf3e3c57624a7e/awscrt-0.9.3.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-wejvufi4/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-5cp0qcot --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/__init__.py -> build/lib.linux-armv7l-3.7/awscrt
  copying awscrt/awsiot_mqtt_connection_builder.py -> build/lib.linux-armv7l-3.7/awscrt
  copying awscrt/mqtt.py -> build/lib.linux-armv7l-3.7/awscrt
  copying awscrt/io.py -> build/lib.linux-armv7l-3.7/awscrt
  copying awscrt/exceptions.py -> build/lib.linux-armv7l-3.7/awscrt
  copying awscrt/crypto.py -> build/lib.linux-armv7l-3.7/awscrt
  copying awscrt/http.py -> build/lib.linux-armv7l-3.7/awscrt
  copying awscrt/auth.py -> build/lib.linux-armv7l-3.7/awscrt
  running build_ext
  cmake version 3.18.2

  CMake suite maintained and supported by Kitware (kitware.com/cmake).
  --- Building dependency: s2n (RelWithDebInfo) ---
  cmake -DCMAKE_PREFIX_PATH=/tmp/pip-install-wejvufi4/awscrt/build/deps/install -DCMAKE_INSTALL_PREFIX=/tmp/pip-install-wejvufi4/awscrt/build/deps/install -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=OFF -DCMAKE_INCLUDE_PATH=\"/usr/include/python3.7m\" -DLibCrypto_INCLUDE_DIR=/tmp/pip-install-wejvufi4/awscrt/build/deps/libcrypto/include -DLibCrypto_STATIC_LIBRARY=/tmp/pip-install-wejvufi4/awscrt/build/deps/libcrypto/lib/libcrypto.a /tmp/pip-install-wejvufi4/awscrt/crt/s2n
  -- The C compiler identification is GNU 8.3.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: /usr/bin/cc - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Looking for pthread.h
  -- Looking for pthread.h - found
  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
  -- Check if compiler accepts -pthread
  -- Check if compiler accepts -pthread - yes
  -- Found Threads: TRUE
  -- Attempting to try_compile PQ ASM
  -- The ASM compiler identification is GNU
  -- Found assembler: /usr/bin/cc
  -- PQ ASM try_compile failed - using generic C code for PQ crypto
  -- Performing Test S2N_HAVE_EXECINFO
  -- Performing Test S2N_HAVE_EXECINFO - Success
  -- Found LibCrypto: /tmp/pip-install-wejvufi4/awscrt/build/deps/libcrypto/lib/libcrypto.a
  -- LibCrypto Include Dir: /tmp/pip-install-wejvufi4/awscrt/build/deps/libcrypto/include
  -- LibCrypto Shared Lib:  /usr/lib/arm-linux-gnueabihf/libcrypto.so
  -- LibCrypto Static Lib:  /tmp/pip-install-wejvufi4/awscrt/build/deps/libcrypto/lib/libcrypto.a
  -- Configuring done
  CMake Error at CMakeLists.txt:191 (add_library):
    Target "s2n" links to target "LibCrypto::Crypto" but the target was not
    found.  Perhaps a find_package() call is missing for an IMPORTED target, or
    an ALIAS target is missing?


  CMake Error at CMakeLists.txt:239 (target_include_directories):
    Error evaluating generator expression:

      $<TARGET_PROPERTY:LibCrypto::Crypto,INTERFACE_INCLUDE_DIRECTORIES>

    Target "LibCrypto::Crypto" not found.


  CMake Error at CMakeLists.txt:239 (target_include_directories):
    Error evaluating generator expression:

      $<TARGET_PROPERTY:LibCrypto::Crypto,INTERFACE_INCLUDE_DIRECTORIES>

    Target "LibCrypto::Crypto" not found.


  CMake Error at CMakeLists.txt:191 (add_library):
    Target "s2n" links to target "LibCrypto::Crypto" but the target was not
    found.  Perhaps a find_package() call is missing for an IMPORTED target, or
    an ALIAS target is missing?


  -- Generating done
  CMake Warning:
    Manually-specified variables were not used by the project:

      CMAKE_INCLUDE_PATH


  CMake Generate step failed.  Build files cannot be regenerated correctly.
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-wejvufi4/awscrt/setup.py", line 263, 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/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-wejvufi4/awscrt/setup.py", line 179, in run
      self._build_dependency(lib)
    File "/tmp/pip-install-wejvufi4/awscrt/setup.py", line 162, 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 '['cmake', '-DCMAKE_PREFIX_PATH=/tmp/pip-install-wejvufi4/awscrt/build/deps/install', '-DCMAKE_INSTALL_PREFIX=/tmp/pip-install-wejvufi4/awscrt/build/deps/install', '-DBUILD_SHARED_LIBS=OFF', '-DCMAKE_BUILD_TYPE=RelWithDebInfo', '-DBUILD_TESTING=OFF', '-DCMAKE_INCLUDE_PATH="/usr/include/python3.7m"', '-DLibCrypto_INCLUDE_DIR=/tmp/pip-install-wejvufi4/awscrt/build/deps/libcrypto/include', '-DLibCrypto_STATIC_LIBRARY=/tmp/pip-install-wejvufi4/awscrt/build/deps/libcrypto/lib/libcrypto.a', '/tmp/pip-install-wejvufi4/awscrt/crt/s2n']' 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-wejvufi4/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-cg6etnjd/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/__init__.py -> build/lib.linux-armv7l-3.7/awscrt
    copying awscrt/awsiot_mqtt_connection_builder.py -> build/lib.linux-armv7l-3.7/awscrt
    copying awscrt/mqtt.py -> build/lib.linux-armv7l-3.7/awscrt
    copying awscrt/io.py -> build/lib.linux-armv7l-3.7/awscrt
    copying awscrt/exceptions.py -> build/lib.linux-armv7l-3.7/awscrt
    copying awscrt/crypto.py -> build/lib.linux-armv7l-3.7/awscrt
    copying awscrt/http.py -> build/lib.linux-armv7l-3.7/awscrt
    copying awscrt/auth.py -> build/lib.linux-armv7l-3.7/awscrt
    running build_ext
    cmake version 3.18.2

    CMake suite maintained and supported by Kitware (kitware.com/cmake).
    --- Building dependency: s2n (RelWithDebInfo) ---
    cmake -DCMAKE_PREFIX_PATH=/tmp/pip-install-wejvufi4/awscrt/build/deps/install -DCMAKE_INSTALL_PREFIX=/tmp/pip-install-wejvufi4/awscrt/build/deps/install -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=OFF -DCMAKE_INCLUDE_PATH=\"/usr/include/python3.7m\" -DLibCrypto_INCLUDE_DIR=/tmp/pip-install-wejvufi4/awscrt/build/deps/libcrypto/include -DLibCrypto_STATIC_LIBRARY=/tmp/pip-install-wejvufi4/awscrt/build/deps/libcrypto/lib/libcrypto.a /tmp/pip-install-wejvufi4/awscrt/crt/s2n
    -- Attempting to try_compile PQ ASM
    -- PQ ASM try_compile failed - using generic C code for PQ crypto
    -- LibCrypto Include Dir: /tmp/pip-install-wejvufi4/awscrt/build/deps/libcrypto/include
    -- LibCrypto Shared Lib:  /usr/lib/arm-linux-gnueabihf/libcrypto.so
    -- LibCrypto Static Lib:  /tmp/pip-install-wejvufi4/awscrt/build/deps/libcrypto/lib/libcrypto.a
    -- Configuring done
    CMake Error at CMakeLists.txt:191 (add_library):
      Target "s2n" links to target "LibCrypto::Crypto" but the target was not
      found.  Perhaps a find_package() call is missing for an IMPORTED target, or
      an ALIAS target is missing?


    CMake Error at CMakeLists.txt:239 (target_include_directories):
      Error evaluating generator expression:

        $<TARGET_PROPERTY:LibCrypto::Crypto,INTERFACE_INCLUDE_DIRECTORIES>

      Target "LibCrypto::Crypto" not found.


    CMake Error at CMakeLists.txt:239 (target_include_directories):
      Error evaluating generator expression:

        $<TARGET_PROPERTY:LibCrypto::Crypto,INTERFACE_INCLUDE_DIRECTORIES>

      Target "LibCrypto::Crypto" not found.


    CMake Error at CMakeLists.txt:191 (add_library):
      Target "s2n" links to target "LibCrypto::Crypto" but the target was not
      found.  Perhaps a find_package() call is missing for an IMPORTED target, or
      an ALIAS target is missing?


    -- Generating done
    CMake Generate step failed.  Build files cannot be regenerated correctly.
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-wejvufi4/awscrt/setup.py", line 263, 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-wejvufi4/awscrt/setup.py", line 179, in run
        self._build_dependency(lib)
      File "/tmp/pip-install-wejvufi4/awscrt/setup.py", line 162, 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 '['cmake', '-DCMAKE_PREFIX_PATH=/tmp/pip-install-wejvufi4/awscrt/build/deps/install', '-DCMAKE_INSTALL_PREFIX=/tmp/pip-install-wejvufi4/awscrt/build/deps/install', '-DBUILD_SHARED_LIBS=OFF', '-DCMAKE_BUILD_TYPE=RelWithDebInfo', '-DBUILD_TESTING=OFF', '-DCMAKE_INCLUDE_PATH="/usr/include/python3.7m"', '-DLibCrypto_INCLUDE_DIR=/tmp/pip-install-wejvufi4/awscrt/build/deps/libcrypto/include', '-DLibCrypto_STATIC_LIBRARY=/tmp/pip-install-wejvufi4/awscrt/build/deps/libcrypto/lib/libcrypto.a', '/tmp/pip-install-wejvufi4/awscrt/crt/s2n']' returned non-zero exit status 1.

    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-wejvufi4/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-cg6etnjd/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-wejvufi4/awscrt/

أواجه هذه المشكلة أيضًا وفشل الآن مشروع إنشاء بناء الكود الخاص بي (py 3.8) ، لقد نشرت المشكلة بالفعل في مستودع awscrt https://github.com/awslabs/aws-crt-python/issues/192

نفس المشكلة مع Raspberry 3 model B with python. سوف يعود إلى v1.5

@ alozano-77 نعم لقد تراجعت أيضًا إلى 1.5.0 في الوقت الحالي ، وسأعاود الزيارة عندما يتم إصلاحها

لقد قمنا بإعادة هيكلة أداة البحث عن cmake libcrypto مؤخرًا وأعتقد أنه مرتبط بذلك ، وسوف نتواصل مع الفريق لإلقاء نظرة. آسف لمشاكلك.

تم إصلاح هذا في 1.5.2

"تحذير رؤية التعليق"

التعليقات على القضايا المغلقة يصعب على فريقنا رؤيتها.
إذا كنت بحاجة إلى مزيد من المساعدة ، فيرجى إما وضع علامة على أحد أعضاء الفريق أو فتح مشكلة جديدة تشير إلى هذه المشكلة.
إذا كنت ترغب في الاستمرار في إجراء محادثة مع أعضاء المجتمع الآخرين في إطار هذه المشكلة ، فلا تتردد في القيام بذلك.

هل كانت هذه الصفحة مفيدة؟
0 / 5 - 0 التقييمات