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
Problems running tutorial on Ubuntu 18.04 #11406
Comments
@mattjhayes thank you for your feedback! Did you try also the suggestions from Zoltan here. It looks like the same issue as yours.
What is the result after running Thank you. |
I replicated by spinning up a new Ubuntu 18.04 VM. Start by ensuring Ubuntu 18.04 system up-to-date
Download and unzip tutorial samples:
Zoltan recommendation to upgrade pip setuptools:
Install the pip package as specified by tutorial:
Received an error:
Retry with --user option:
Set up and run simulated device:
Error:
Note, I also tried 'sudo pip install azure-iothub-device-client' but didn't fix issue
Error:
Try this as well, from Zoltan:
This downloaded and installed a lot, but didn't fix issue. Still same error when trying to run SimulatedDevice.py
Try bogan fix that worked previously:
Now have new error:
Install libcurl3:
Run SimulatedDevice.py and it runs (although with errors):
messages appear to be being received by Azure IoT Hub, despite the error... Moving onto the third issue.
Tried installing iothub-explorer
Errored out because of lack of privileges. Lets try that again:
Run iothub-explorer:
That didn't work. After mucking around found that syntax wrong. Needs to be:
Yay. Finally. All working. Please consider updating tutorial, and testing against various OS. Thx. |
@mattjhayes thank you so much for sharing all the details of the troubleshooting steps you've taken. I'm sure it will help others following this tutorial 👍 . I will take a note of the errors you've got and share it with Product Group, even though the device is sending messages to IoTHub:
The Prerequisites section of this doc needs to be completed after moving to the next steps. This is standard on all other docs.microsoft.com. Hope it helps clarifying.
Please note that <HUB_NAME> is not the IoTHubName but the deviceName. In this tutorial would be "MyPythonDevice" that you created before with:
Please correct me if I am wrong but I believe there is nothing to update\change on the tutorial at the moment. I will bring the "Share OS versions where tutorials were tested" topic into discussion for the next versions of the documentation. Again, thank you so much for bringing all the details of the troubleshoot! |
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue. |
Thanks for IoT Hub tutorial (https://docs.microsoft.com/en-us/azure/iot-hub/quickstart-send-telemetry-python). There seem to be some issues running it on Ubuntu:
Workaround was to link to version library that I did have:
Workaround:
Thanks
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: