Error occur for sys.exit()
When I simply repeat the ''Gravity Deposition" example by adding a exit function, following errors occur. The exit function is simply
import sys
sys.exit()
-------------------
Exception KeyError: KeyError(
Error in atexit.
Traceback (most recent call last):
File "/usr/lib/
func(*targs, **kargs)
File "/usr/lib/
self.
File "/usr/lib/
self.
File "<string>", line 2, in writeout_cache
File "/usr/lib/
return f(*a,**kw)
File "/usr/lib/
self.
File "/usr/lib/
(self.
ProgrammingError: SQLite objects created in a thread can only be used in that same thread.The object was created in thread id 140001294083904 and this is thread id 140000453338880
Error in sys.exitfunc:
-------
ProgrammingError Traceback (most recent call last)
/usr/lib/
22 func, targs, kargs = _exithandlers.pop()
23 try:
---> 24 func(*targs, **kargs)
25 except SystemExit:
26 exc_info = sys.exc_info()
/usr/lib/
2969 # this must be *before* the tempfile cleanup, in case of temporary
2970 # history db
-> 2971 self.history_
2972
2973 # Cleanup all tempfiles left around
/usr/lib/
430 def end_session(self):
431 """Close the database session, filling in the end time and line count."""
--> 432 self.writeout_
433 with self.db:
434 self.db.
/usr/lib/
/usr/lib/
58 return []
59 else:
---> 60 return f(*a,**kw)
61
62
/usr/lib/
605 with self.db_
606 try:
--> 607 self._writeout_
608 except sqlite3.
609 self.new_
/usr/lib/
589 for line in self.db_
590 conn.execute(
--> 591 (self.session_
592
593 def _writeout_
ProgrammingError: SQLite objects created in a thread can only be used in that same thread.The object was created in thread id 140001294083904 and this is thread id 140000453338880
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jie Qin
- Solved:
- Last query:
- Last reply: