openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #11893
[Bug 947231] Re: ImportError: Failed to import _strptime because the import lockis held by another thread.
To solve the problem, you need do a dummy call of strptime before start
a thread.
#dummy call
datetime.strptime('2012-01-01', '%Y-%m-%d')
#start thread
task_thread = threading.Thread(target=self._run_job, name=job['name'], args=(task_cr, job, now))
This is a python bug, strptime dont work fine with threading, all that
explain on python bug report.
The only one impact is : No more crash. the dummy call not stored in
any variable, this only initialise the datetime.strptime.
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/947231
Title:
ImportError: Failed to import _strptime because the import lockis held
by another thread.
Status in OpenERP Server:
Confirmed
Bug description:
2012-03-05 16:05:20,044 7205 DEBUG ? openerp.cron: Database 'tl61_test_uos' wake-up! Firing multi-threaded cron job processing
2012-03-05 16:05:20,049 7205 DEBUG ? openerp.addons.base.ir.ir_cron: Cron execution thread for job `Run Event Reminder` spawned
2012-03-05 16:05:20,050 7205 WARNING ? openerp.addons.base.ir.ir_cron: Exception in cron:
Traceback (most recent call last):
File "/srv/openerp/instances/61XA/src/server/openerp/addons/base/ir/ir_cron.py", line 254, in _run_jobs_multithread
next_call = calendar.timegm(time.strptime(next_call, DEFAULT_SERVER_DATETIME_FORMAT))
ImportError: Failed to import _strptime because the import lockis held by another thread.
2012-03-05 16:05:20,051 7205 DEBUG ? openerp.cron: Going to sleep for 60s
is this a warning or a real error?
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/947231/+subscriptions
References