rapid7 / nexpose-client-python

DEPRECATED : Rapid7 Nexpose API client library written in Python
https://www.rapid7.com/
BSD 3-Clause "New" or "Revised" License
25 stars 20 forks source link

ImportError: No module named request #40

Closed santsys closed 6 years ago

santsys commented 6 years ago

When attempting to run the v0.1.5 code using Python 2.7 the following error is returned.

Traceback (most recent call last):
  File ".\aruba_nexpose.py", line 15, in <module>
    from nexpose import nexpose
  File "W:\Python27\lib\site-packages\nexpose\nexpose.py", line 5, in <module>
    import urllib.request
ImportError: No module named request

I believe this breaks the backwards compatibility for python 2.7 due to the changes in the urllib modules between the two versions.


> python27 --version
Python 2.7.13
gschneider-r7 commented 6 years ago

Hm I thought this was working for me before I published it... 😞

gschneider-r7 commented 6 years ago

Should be fixed in 0.1.6