Can't use bzrlib inside a django app
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
High
|
Unassigned |
Bug Description
Importing anything inside bzrlib ends up implicitly calling osutils.
2156. class BzrDirFormat4(
File "/usr/lib/
2169. _lock_class = lockable_
File "/usr/lib/
106. obj = _replace()
File "/usr/lib/
89. obj = factory(self, scope, name)
File "/usr/lib/
192. module = __import_
File "/usr/lib/
64. class LockableFiles(
File "/usr/lib/
223. @only_raises(
File "/usr/lib/
106. obj = _replace()
File "/usr/lib/
89. obj = factory(self, scope, name)
File "/usr/lib/
192. module = __import_
File "/usr/lib/
20. from bzrlib import (
File "/usr/lib/
1446. signal.
Exception Type: ValueError at /bzr-alldocs_/
Exception Value: signal only works in main thread
This is rather bad.
Changed in bzr: | |
importance: | Undecided → High |
status: | New → Confirmed |
On Mon, 2010-03-15 at 06:27 +0000, Ian Clatworthy wrote: register_ sigwinch( ) which breaks Django. Here's the end of the python2. 6/dist- packages/ bzrlib/ osutils. py" in <module> signal( signal. SIGWINCH, _terminal_ size_changed)
> Public bug reported:
>
> Importing anything inside bzrlib ends up implicitly calling
> osutils.
> exception:
> ...File "/usr/lib/
> 1446. signal.
>
> Exception Type: ValueError at /bzr-alldocs_/
> Exception Value: signal only works in main thread
>
> This is rather bad.
They should be able to 'work around' this trivially by importing
bzrlib.osutils in their main thread. Its a bit of a python bug that you
can't use signal from any thread, really.
That said, I think this has changed in trunk anyway, so that you have to
create a CLI UI for it to hook now.
-Rob