Message239458
I'm seeing a random traceback when starting a new thread on Mac OS X 10.10.2 with python 3.4.3 final.
Exception in thread Thread-1:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/threading.py", line 920, in _bootstrap_inner
self.run()
File "/Users/barry/wc/svn/pysvn-phoenix/WorkBench/Source/wb_background_thread.py", line 40, in run
self.app.log.info( 'BackgroundThread locale %r' % (locale.getlocale(),) )
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/locale.py", line 575, in getlocale
return _parse_localename(localename)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/locale.py", line 484, in _parse_localename
raise ValueError('unknown locale: %s' % localename)
ValueError: unknown locale: UTF-8
Adding a time.sleep( 5 ) prevents the traceback.
Using _locale.setlocale( locale.LC_ALL, None ) to see the state with locale.py interfering it looks like the locale is being initialised in the thread after run() is called. (Make no sense to me, but I can reproduce).
I have failed to create a small script to show this bug. |
|
Date |
User |
Action |
Args |
2015-03-28 10:47:55 | barry-scott | set | recipients:
+ barry-scott |
2015-03-28 10:47:55 | barry-scott | set | messageid: <1427539675.57.0.610869974475.issue23797@psf.upfronthosting.co.za> |
2015-03-28 10:47:55 | barry-scott | link | issue23797 messages |
2015-03-28 10:47:54 | barry-scott | create | |
|