Posts: 105
Joined: Jul 2004
Reputation:
0
Lennon
Senior Member
Posts: 105
hello,
when i try to run a script sometimes they work on the first try, sometimes i have to try the script 3 times before they run. this is for scripts like xmbclyics & xbmcscripts... i do self builds using build.bat...
any ideas? what can i change/try?
thanks
Posts: 529
Joined: Sep 2003
Reputation:
0
darkie
Team-Kodi Member
Posts: 529
after running a script that 'doesn't do a thing' look at xbmc's logfile in q:\xbmc.log, it will show you some information of what went wrong
Posts: 105
Joined: Jul 2004
Reputation:
0
Lennon
Senior Member
Posts: 105
here it is..... i don't understand most of this...
thanks
29-01-2006 13:31:16 info loading skin file: myscripts.xml
29-01-2006 13:31:16 debug cguimediawindow::getdirectory (q:\scripts)
29-01-2006 13:31:16 debug parentpath = []
29-01-2006 13:31:22 debug cguimediawindow::getdirectory (q:\scripts\xbmclyrics)
29-01-2006 13:31:22 debug parentpath = [q:\scripts]
29-01-2006 13:31:24 debug loadlibrarya('zlib.pyd')
29-01-2006 13:31:24 warning kernel32.dll fake function disablethreadlibrarycalls called
29-01-2006 13:31:24 debug loadlibrary('zlib.pyd') returning: 0x8eaf80
29-01-2006 13:31:24 debug zlib.pyd!getprocaddress(0x8eaf80, 'initzlib') => 0x11d2210
29-01-2006 13:31:24 info -->python initialized<--
29-01-2006 13:31:24 info
29-01-2006 13:31:24 debug cguimediawindow::getdirectory (q:\scripts\xbmclyrics)
29-01-2006 13:31:24 debug parentpath = [q:\scripts\xbmclyrics]
29-01-2006 13:31:25 debug loadlibrarya('_ssl.pyd')
29-01-2006 13:31:25 warning kernel32.dll fake function disablethreadlibrarycalls called
29-01-2006 13:31:25 debug loadlibrary('_ssl.pyd') returning: 0x88efb0
29-01-2006 13:31:25 debug _ssl.pyd!getprocaddress(0x88efb0, 'init_ssl') => 0x11e1aa0
29-01-2006 13:31:25 info traceback (most recent call last):
29-01-2006 13:31:25 info file "q:\scripts\xbmclyrics\xbmclyrics.py", line 12, in ?
29-01-2006 13:31:25 info
29-01-2006 13:31:25 info import urllib, re, string, xbmc, xbmcgui, os, threading, time
29-01-2006 13:31:25 info file "q:\python\python23.zlib\urllib.py", line 47, in ?
29-01-2006 13:31:25 info ioerror
29-01-2006 13:31:25 info :
29-01-2006 13:31:25 info zipimport: can't read data
29-01-2006 13:31:25 info
29-01-2006 13:31:25 debug cguimediawindow::getdirectory (q:\scripts\xbmclyrics)
29-01-2006 13:31:25 debug parentpath = [q:\scripts\xbmclyrics]
29-01-2006 13:31:27 debug cguimediawindow::getdirectory (q:\scripts\xbmclyrics)
29-01-2006 13:31:27 debug parentpath = [q:\scripts\xbmclyrics]
29-01-2006 13:31:27 debug loadlibrarya('_sre.pyd')
29-01-2006 13:31:27 warning kernel32.dll fake function disablethreadlibrarycalls called
29-01-2006 13:31:27 debug loadlibrary('_sre.pyd') returning: 0xcaf9c0
29-01-2006 13:31:27 debug _sre.pyd!getprocaddress(0xcaf9c0, 'init_sre') => 0x126a120
29-01-2006 13:31:27 info traceback (most recent call last):
29-01-2006 13:31:27 info file "q:\scripts\xbmclyrics\xbmclyrics.py", line 12, in ?
29-01-2006 13:31:27 info
29-01-2006 13:31:27 info import urllib, re, string, xbmc, xbmcgui, os, threading, time
29-01-2006 13:31:27 info file "q:\python\python23.zlib\threading.py", line 11, in ?
29-01-2006 13:31:27 info ioerror
29-01-2006 13:31:27 info :
29-01-2006 13:31:27 info zipimport: can't read data
29-01-2006 13:31:27 info
29-01-2006 13:31:28 debug cguimediawindow::getdirectory (q:\scripts\xbmclyrics)
29-01-2006 13:31:28 debug parentpath = [q:\scripts\xbmclyrics]
29-01-2006 13:31:29 debug cguimediawindow::getdirectory (q:\scripts\xbmclyrics)
29-01-2006 13:31:29 debug parentpath = [q:\scripts\xbmclyrics]
29-01-2006 13:31:29 info traceback (most recent call last):
29-01-2006 13:31:29 info file "q:\scripts\xbmclyrics\xbmclyrics.py", line 198, in ?
29-01-2006 13:31:29 info
29-01-2006 13:31:29 info class update(threading.thread):
29-01-2006 13:31:29 info attributeerror
29-01-2006 13:31:29 info :
29-01-2006 13:31:29 info 'module' object has no attribute 'thread'
29-01-2006 13:31:29 info
29-01-2006 13:31:29 debug cguimediawindow::getdirectory (q:\scripts\xbmclyrics)
29-01-2006 13:31:29 debug parentpath = [q:\scripts\xbmclyrics]
29-01-2006 13:31:30 debug cguimediawindow::getdirectory (q:\scripts\xbmclyrics)
29-01-2006 13:31:30 debug parentpath = [q:\scripts\xbmclyrics]
29-01-2006 13:31:31 info traceback (most recent call last):
29-01-2006 13:31:31 info file "q:\scripts\xbmclyrics\xbmclyrics.py", line 198, in ?
29-01-2006 13:31:31 info
29-01-2006 13:31:31 info class update(threading.thread):
29-01-2006 13:31:31 info attributeerror
29-01-2006 13:31:31 info :
29-01-2006 13:31:31 info 'module' object has no attribute 'thread'
29-01-2006 13:31:31 info
29-01-2006 13:31:31 debug cguimediawindow::getdirectory (q:\scripts\xbmclyrics)
29-01-2006 13:31:31 debug parentpath = [q:\scripts\xbmclyrics]
29-01-2006 13:31:32 debug cguimediawindow::getdirectory (q:\scripts\xbmclyrics)
29-01-2006 13:31:32 debug parentpath = [q:\scripts\xbmclyrics]
29-01-2006 13:31:32 info traceback (most recent call last):
29-01-2006 13:31:32 info file "q:\scripts\xbmclyrics\xbmclyrics.py", line 198, in ?
29-01-2006 13:31:32 info
29-01-2006 13:31:32 info class update(threading.thread):
29-01-2006 13:31:32 info attributeerror
29-01-2006 13:31:32 info :
29-01-2006 13:31:32 info 'module' object has no attribute 'thread'
29-01-2006 13:31:32 info
29-01-2006 13:31:33 debug cguimediawindow::getdirectory (q:\scripts\xbmclyrics)
29-01-2006 13:31:33 debug parentpath = [q:\scripts\xbmclyrics]
29-01-2006 13:31:34 debug cguimediawindow::getdirectory (q:\scripts\xbmclyrics)
29-01-2006 13:31:34 debug parentpath = [q:\scripts\xbmclyrics]
29-01-2006 13:31:34 info traceback (most recent call last):
29-01-2006 13:31:34 info file "q:\scripts\xbmclyrics\xbmclyrics.py", line 198, in ?
29-01-2006 13:31:34 info
29-01-2006 13:31:34 info class update(threading.thread):
29-01-2006 13:31:34 info attributeerror
29-01-2006 13:31:34 info :
29-01-2006 13:31:34 info 'module' object has no attribute 'thread'
29-01-2006 13:31:34 info
29-01-2006 13:31:34 debug cguimediawindow::getdirectory (q:\scripts\xbmclyrics)
29-01-2006 13:31:34 debug parentpath = [q:\scripts\xbmclyrics]
29-01-2006 13:31:36 debug current m_vecpathhistory:
29-01-2006 13:31:36 debug 00.[q:\scripts]
29-01-2006 13:31:36 debug 01.[q:\scripts\xbmclyrics]
Posts: 529
Joined: Sep 2003
Reputation:
0
darkie
Team-Kodi Member
Posts: 529
i don't think this a a bug in xbmc. from what i can see the script doesn't handle errors correct which results in the errors you see in the script. not much you can do about it, except fixing the script.
Posts: 928
Joined: Feb 2004
Reputation:
0
Asteron
"Skilled" Python Coder
Posts: 928
i get this error in scripts launched from the my scripts window. scripts launched from a builtin command seem unaffected. the error is that a module import fails with an io error. all scripts are affected by this but i dont know what is causing it.
Posts: 61
Joined: Jan 2006
Reputation:
0
this happenes to me quite frequently, the script says 'running' when i click on it and then stops after just half a second, i then have to re-click the file several times before the script will start, it is quite ittermintant and only happens once in a few script runs... quite odd, but can happen after the xbmc is first launched or even after it has been running for several days...