microsoft / vscode-azure-iot-toolkit

Azure IoT Hub extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=vsciot-vscode.azure-iot-toolkit
Other
73 stars 58 forks source link

Run python generate code failed #420

Open czgtest opened 5 years ago

czgtest commented 5 years ago

repro on : Windows10 step:

  1. create one device in VS Code Toolkit
  2. right-click the device and generate code
  3. select python
  4. install "pip install azure-iothub-device-client"
  5. run code failed : [Running] python -u "d:\f\Untitled-2.py" Traceback (most recent call last): File "d:\f\Untitled-2.py", line 12, in import iothub_client File "C:\Users\iotedge\AppData\Local\Programs\Python\Python38-32\lib\site-packages\iothub_client__init__.py", line 1, in from .iothub_client import * ImportError: DLL load failed while importing iothub_client: The specified module could not be found.

[Done] exited with code=1 in 0.383 seconds image

formulahendry commented 4 years ago

Related to https://github.com/Azure/azure-iot-sdk-python/issues/270