m5stack / Core2-for-AWS-IoT-Kit

Accompanying code for use with AWS IoT Kit content. Works with PlatformIO and ESP-IDF v4.2.
https://m5stack.com/collections/m5-core/products/m5stack-core2-esp32-iot-development-kit-for-aws-iot-edukit
MIT License
127 stars 66 forks source link

AWS IoT EduKit > Blinky Hello World > Device Provisioning - ModuleNotFoundError: No module named 'pyasn1_modules' #17

Closed takipone closed 3 years ago

takipone commented 3 years ago

When I run python registration_helper.py -p <<DEVICE_PORT>>, it occured an python module exception.

(edukit) takipone@latte AWS_IoT_registration_helper % python registration_helper.py -p /dev/cu.SLAB_USBtoUART
Traceback (most recent call last):
  File "registration_helper.py", line 26, in <module>
    from pyasn1_modules import pem
ModuleNotFoundError: No module named 'pyasn1_modules'

I run pip3 in order to resolved the exception.

pip3 install -r requirements.txt

Would you add this command line to the tutorial's instruction?

rashedtalukder commented 3 years ago

Done and thank you for reporting.