-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Technical Question] Cannot find azure.iot.hub.models #627
Comments
Could you please provide the steps what you followed to get this error? I want to see how will it repro. Zoltan |
hi @leolauleolau , is this still an issue for you? We will close this issue if you confirm it has been resolved. Thanks! |
Sorry for the late reply. The issue is still here. I am using a raspberry pi 4 2GB RAM to run the example script. After running the command
I ignore this and continue to run the code (which is the same as the document)
And the error is it cannot find the module even I have restart the pi.
So, is it my command problem or the script? Thanks |
In the original issue the error was: In the second one it is: I cannot repro the problem and I think your Python installation is not working correctly. It looks like doesn't find modules in general. Is any other Python script working on your setup? |
Both errors happened at different time. I have try the same script on vs code of my own computer. It works. I have been sending messages to the cloud through pi using python with the module "azure.iot.device" and it works fine. |
hi @leolauleolau , has this issue been resolved? it appears that it's outside the control of the Python SDK and rather related to the python runtime on the Pi-- let us know if you're still having issues. Otherwise we'll go ahead and close this issue. Thanks! |
Seems like pi's python problem. Thanks for the help |
@zolvarga, @leolauleolau, thank you for your contribution to our open-sourced project! Please help us improve by filling out this 2-minute customer satisfaction survey |
I am getting exactly the same issue, how did you solve it @leolauleolau ? I am using a Le Potato (Debian) |
Same issues with you on RPi4 running fresh installed Bullseye. I tried installing the module via all different method, with/wihtout sudo, pip, pip3, python -m pip , python3 -m pip... all to make sure the its installed properly. In my case, i end up finding the module was not actually installed in the path. And have to manually copy the source file over to fix the issues.(
|
I had the same: No /usr/local/lib/python3.9/dist-packages/azure/iot/hub folder |
I am trying to use the sample from microsoft(link below) to get device twin data
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-python-twin-getstarted#feedback
I have installed azure-iot-hub as shown in the instruction.
I have tried pip3 install as well. Yet, still got the below error
"ModuleNotFoundError: No module named 'azure.iot.hub.models'"
Any ideas?
AB#7724107
The text was updated successfully, but these errors were encountered: