Error in atexit._run_exitfuncs: ?!
#1
im having a strange error that pops up in the python script output. this happens every time i close down one of my scripts, but im not sure that this is because of my script. my scripts dont use any threads at all, but still i get a keyerror when i close down the script. im actually using the cachedhttp py script that is used by other scripts, but im not sure that it is threading free.

im currently running t3ch's 666 build, but ive seen it for the last 3 builds.

anyone have any idea what it is? btw, i tried to search for info about it, but i couldnt find any.

Quote:23:31:02 m: 31248384 info: new display state: 0x11
23:31:02 m: 31227904 info:
23:31:02 m: 31227904 debug: activating window id: 13000
23:31:05 m: 35065856 info: serving action: 10
23:31:05 m: 35065856 info:
23:31:05 m: 35065856 debug: activating window id: 10020
23:31:05 m: 37191680 info: loading skin file: myscripts.xml
23:31:05 m: 37048320 debug: cguimediawindow::getdirectory (q:\scripts\tv.com)
23:31:05 m: 37048320 debug: parentpath = [q:\scripts\tv.com]
23:31:05 m: 37048320 info: completed serving action: 10
23:31:05 m: 34803712 info:
23:31:05 m: 33234944 info: scriptresult: succes
23:31:05 m: 33234944 info: python script stopped
23:31:05 m: 33759232 info: python, unloading python24.dll cause no scripts are running anymore
23:31:05 m: 33759232 info: error in atexit._run_exitfuncs:
23:31:05 m: 33759232 info:
23:31:05 m: 33759232 info: traceback (most recent call last):
23:31:05 m: 33759232 info: file "q:\system\python\python24.zlib\atexit.py", line 24, in _run_exitfuncs
23:31:05 m: 33759232 info: stating file q:\system\python\python24.zlib\atexit.py
23:31:05 m: 33759232 info: stating file q:\scripts\tv.com\lib\clientcookie.zip\atexit.py
23:31:05 m: 33759232 info: stating file q:\scripts\tv.com\atexit.py
23:31:05 m: 33759232 info: stating file q:\system\python\python24.zlib\atexit.py
23:31:05 m: 33759232 info: stating file q:\system\python\dlls\atexit.py
23:31:05 m: 33759232 info: stating file q:\system\python\lib\atexit.py
23:31:06 m: 33759232 info: stating file q:\system\python\spyce\atexit.py
23:31:06 m: 33759232 info: stating file q:\scripts\tv.com\lib\atexit.py
23:31:06 m: 33759232 info: file "q:\system\python\python24.zlib\threading.py", line 636, in delete
23:31:06 m: 33759232 info: stating file q:\system\python\python24.zlib\threading.py
23:31:06 m: 33759232 info: stating file q:\scripts\tv.com\lib\clientcookie.zip\threading.py
23:31:06 m: 33759232 info: stating file q:\scripts\tv.com\threading.py
23:31:06 m: 33759232 info: stating file q:\system\python\python24.zlib\threading.py
23:31:06 m: 33759232 info: stating file q:\system\python\dlls\threading.py
23:31:06 m: 33759232 info: stating file q:\system\python\lib\threading.py
23:31:06 m: 33759232 info: stating file q:\system\python\spyce\threading.py
23:31:06 m: 33759232 info: stating file q:\scripts\tv.com\lib\threading.py
23:31:06 m: 33759232 info: keyerror: 12
23:31:06 m: 33759232 info: error in sys.exitfunc:
23:31:06 m: 33759232 info: traceback (most recent call last):
23:31:06 m: 33759232 info: file "q:\system\python\python24.zlib\atexit.py", line 24, in _run_exitfuncs
23:31:06 m: 33759232 info: file "q:\system\python\python24.zlib\threading.py", line 636, in delete
23:31:06 m: 33759232 info: keyerror
23:31:06 m: 33759232 info: :
23:31:06 m: 33759232 info: 12
23:31:06 m: 33759232 info:

i created a small script that does nothing fancy, and i still get the same problem:
Quote:import xbmc, xbmcgui
import sys, urllib2, urllib, os, string


class mytvcomclass(xbmcgui.window):

def (self):
self.setcoordinateresolution(6) # scales objects automatically

# background image

self.imgbackground = xbmcgui.controlimage(0, 0, self.getwidth(), self.getheight(), "background.png")
self.addcontrol(self.imgbackground)

def onaction(self, action):
if (action == 10):
self.close()

def oncontrol(self, control):
pass

mydisplay = mytvcomclass()
mydisplay.domodal()
del mydisplay
Check out my XBMC scripts at http://xbmc.ramfelt.se
Reply

Logout Mark Read Team Forum Stats Members Help
Error in atexit._run_exitfuncs: ?!0