Azure-Samples / azure-iot-starterkit-cli

Microsoft Azure IoT Starter Kit Companion CLI
MIT License
2 stars 9 forks source link

ImportError: No module named request #4

Open terrymandin opened 6 years ago

terrymandin commented 6 years ago

Minimal steps to reproduce

pip install azure-iot-starterkit-cli iot

Any log messages given by the failure

C:>iot Traceback (most recent call last): File "c:\python27\lib\runpy.py", line 174, in _run_module_as_main "main", fname, loader, pkg_name) File "c:\python27\lib\runpy.py", line 72, in _run_code exec code in run_globals File "C:\Python27\Scripts\iot.exe__main__.py", line 5, in File "c:\python27\lib\site-packages\iot.py", line 7, in import urllib.request ImportError: No module named request

Expected/desired behavior

IoT CLI to start

OS and Version?

Windows 10

Versions

Mention any other details that might be useful

I tried:

easy_install.exe requests

as per this url: https://stackoverflow.com/questions/17309288/importerror-no-module-named-requests

Sorry, not a Python guy (yet) or I would debug/fix it.

terrymandin commented 6 years ago

Appears to only be an issue in Python 2. It works in Python 3.