(2013-12-01, 17:46)iolaus Wrote: (2013-12-01, 04:16)lokipoki Wrote: Ok with the new "Security Cam Overlay" script I get this error:
Code:
13:13:22 T:3552 DEBUG: NEWADDON PythonCallbackHandler construction with PyThreadState 0xc6db8b0
13:13:22 T:3552 ERROR: Control has invalid animation type (no condition or no type)
13:13:22 T:1116 ERROR: Previous line repeats 1 times.
13:13:22 T:1116 DEBUG: ------ Window Init () ------
13:13:22 T:3552 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IOError'>
Error Contents: [Errno 2] The system cannot find the path specified: '10.1.1.50\\image.jpg'
Traceback (most recent call last):
File "C:\Users\Loki\AppData\Roaming\XBMC\addons\script.securitycam\default.py", line 61, in <module>
urllib.urlretrieve(url, __snapshot__)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib.py", line 93, in urlretrieve
return _urlopener.retrieve(url, filename, reporthook, data)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib.py", line 239, in retrieve
fp = self.open(url, data)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib.py", line 207, in open
return getattr(self, name)(url)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib.py", line 469, in open_file
return self.open_local_file(url)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib.py", line 483, in open_local_file
raise IOError(e.errno, e.strerror, e.filename)
IOError: [Errno 2] The system cannot find the path specified: '10.1.1.50\\image.jpg'
-->End of Python script error report<--
13:13:22 T:1116 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
13:13:22 T:1116 DEBUG: ------ Window Deinit () ------
13:13:22 T:1116 DEBUG: ------ Window Deinit (DialogAddonInfo.xml) ------
13:13:22 T:3552 INFO: Python script stopped
13:13:22 T:3552 DEBUG: Thread XBPyThread 3552 terminating
I do type in 10.1.1.50\image.jpg but in the log it appears as 10.1.1.50\\image.jpg, as you can see. I think there is the issue.
Cheers.
Try prefixing your url with "http://" or "https://". Also, urls should use a forward slash "/" not a backslash "\".
In your case something like this: http://10.1.1.50/image.jpg
Hi.
Thanks for your reply. My bad. Of course you have to use a forward slash. What was I thinking
I changed it and got this:
Code:
19:28:01 T:4924 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.EOFError'>
Error Contents: EOF when reading a line
Traceback (most recent call last):
File "C:\Users\Loki\AppData\Roaming\XBMC\addons\script.securitycam\default.py", line 61, in <module>
urllib.urlretrieve(url, __snapshot__)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib.py", line 93, in urlretrieve
return _urlopener.retrieve(url, filename, reporthook, data)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib.py", line 239, in retrieve
fp = self.open(url, data)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib.py", line 207, in open
return getattr(self, name)(url)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib.py", line 457, in open_https
return self.http_error(url, fp, errcode, errmsg, headers)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib.py", line 375, in http_error
result = method(url, fp, errcode, errmsg, headers)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib.py", line 690, in http_error_401
return getattr(self,name)(url, realm)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib.py", line 767, in retry_https_basic_auth
user, passwd = self.get_user_passwd(host, realm, i)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib.py", line 783, in get_user_passwd
user, passwd = self.prompt_user_passwd(host, realm)
File "C:\Program Files (x86)\XBMC\system\python\Lib\urllib.py", line 792, in prompt_user_passwd
host))
EOFError: EOF when reading a line
-->End of Python script error report<--
19:28:01 T:200 DEBUG: ------ Window Deinit () ------
19:28:01 T:200 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
19:28:01 T:4924 INFO: Python script stopped
19:28:01 T:4924 DEBUG: Thread XBPyThread 4924 terminating
19:28:01 T:200 DEBUG: waiting for python thread 13 (C:\Users\Loki\AppData\Roaming\XBMC\addons\script.securitycam\default.py) to stop
19:28:01 T:200 DEBUG: python thread 13 (C:\Users\Loki\AppData\Roaming\XBMC\addons\script.securitycam\default.py) destructed
Cheers mate.