Azure / iotedgedev

The Azure IoT Edge Dev Tool greatly simplifies your Azure IoT Edge development process. It has everything you need to get started and helps with your day-to-day Edge development.
https://aka.ms/iotedgedev
Other
160 stars 69 forks source link

iotedgedev simulator setup giving AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY' #625

Closed gopimails closed 2 months ago

gopimails commented 3 months ago

While doing iotedgedev simulator setup, it give error AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'

iotedgedev simulator setup

Environment Variables loaded from: .env (/workspaces/xxxx/xxx/xx/.env)

SETTING UP IOT EDGE SIMULATOR

ERROR: Traceback (most recent call last): File "/usr/local/python/current/bin/iotedgehubdev", line 5, in from iotedgehubdev.cli import main File "/usr/local/python/3.9.19/lib/python3.9/site-packages/iotedgehubdev/cli.py", line 15, in from .edgecert import EdgeCert File "/usr/local/python/3.9.19/lib/python3.9/site-packages/iotedgehubdev/edgecert.py", line 4, in from .certutils import EdgeCertUtil File "/usr/local/python/3.9.19/lib/python3.9/site-packages/iotedgehubdev/certutils.py", line 6, in from OpenSSL import crypto File "/usr/local/python/3.9.19/lib/python3.9/site-packages/OpenSSL/init.py", line 8, in from OpenSSL import crypto, SSL File "/usr/local/python/3.9.19/lib/python3.9/site-packages/OpenSSL/crypto.py", line 1570, in class X509StoreFlags(object): File "/usr/local/python/3.9.19/lib/python3.9/site-packages/OpenSSL/crypto.py", line 1589, in X509StoreFlags NOTIFY_POLICY = _lib.X509_V_FLAG_NOTIFY_POLICY AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'

gopimails commented 2 months ago

I replaced devcontainer with "mcr.microsoft.com/iotedge/iotedgedev:latest"

Things are good now: python --version Python 2.7.18 iotedgedev, version 3.3.7 openssl version OpenSSL 1.1.1f 31 Mar 2020