Ticket #1262 (closed bug: fixed)
Exception in Orange.utils.addons cleanup
|Reported by:||ales||Owned by:||matija|
An exception occurs when python interpreter is shutting down and is cleaning up the loaded modules (problem reported in http://orange.biolab.si/forum/viewtopic.php?f=4&t=1739).
python -v -c"import Orange"
on Debian (squeeze) indicates this happens while cleaning up Orange.utils.addons (but does not happen on Mac OSX 10.6)
A quick glance at the module suggest that the problem is the global addons variable. This is a shelve object which has a __del__ method and that is probably where the error happens.
Even if this is not the cause the global variable should be removed and the shelve opened only when required (use with closing(f): construct).