I got this error, tested it on smartos (Solaris) and macOS 10.13:
Traceback (most recent call last):
File "smartplug.py", line 658, in
p = SmartPlug(options.host, (options.login, options.password))
File "smartplug.py", line 146, in init
res = requests.head(self.url)
NameError: global name 'requests' is not defined
I got this error, tested it on smartos (Solaris) and macOS 10.13:
Traceback (most recent call last): File "smartplug.py", line 658, in
p = SmartPlug(options.host, (options.login, options.password))
File "smartplug.py", line 146, in init
res = requests.head(self.url)
NameError: global name 'requests' is not defined
requests is installed:
pip list
... ... requests (2.18.4)
Too tired to find the problem :)...