Got it and updated. Unfortunately, urllib doesn't like the URL. I'm sending a fully formed URL of the type
http://user@ipAddr:port/path, which best I can tell seems to be what urlretrieve expects. Does any of the special characters need to be escaped? Perhaps run it through urlencode first?
- Code: Select all
Traceback (most recent call last):
File "plugin.py", line 843, in CameraCommand
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 98, in urlretrieve
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 245, in retrieve
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 213, in open
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 364, in open_http
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 377, in http_error
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 702, in http_error_401
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 766, in retry_http_basic_auth
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 795, in get_user_passwd
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 804, in prompt_user_passwd
EOFError: EOF when reading a line