[lxml-dev] AssertionError double registering proxy
Holger Joukl
Holger.Joukl at LBBW.de
Fri Feb 9 15:49:05 CET 2007
Hi,
lately I've been running into such problems:
2007/01/23 13:22:02:all2all_MainThread:ERROR: cache[msg] =
list(msg.getiterator())
2007/01/23 13:22:02:all2all_MainThread:ERROR: File "etree.pyx", line
1562, in etree.ElementDepthFirstIte
rator.__next__
2007/01/23 13:22:02:all2all_MainThread:ERROR: File "etree.pyx", line
1207, in etree._elementFactory
2007/01/23 13:22:02:all2all_MainThread:ERROR: File "proxy.pxi", line 28,
in etree.registerProxy
2007/01/23 13:22:02:all2all_MainThread:ERROR:<ThreadedQueue
name='TQ_normal'>: AssertionError: double regi
stering proxy!
I strongly suspect this is a threading-related problem as it occurs in a
multithreaded
test program.
I'm also able to fix this if any thread copy.deepcopy()'s all incoming
Elements
before doing anything with them (the threads basically dispatch from Queues
where other
threads have put Elements into).
Hence my question:
- Am I doing something nasty here which is pretty much forbidden (I know I
will have to copy
my Elements anyway, as my threads will want to modify them)
- and/or should lxml guard the element proxy registration
?
All the best,
Holger
Der Inhalt dieser E-Mail ist vertraulich. Falls Sie nicht der angegebene
Empfänger sind oder falls diese E-Mail irrtümlich an Sie adressiert wurde,
verständigen Sie bitte den Absender sofort und löschen Sie die E-Mail
sodann. Das unerlaubte Kopieren sowie die unbefugte Übermittlung sind nicht
gestattet. Die Sicherheit von Übermittlungen per E-Mail kann nicht
garantiert werden. Falls Sie eine Bestätigung wünschen, fordern Sie bitte
den Inhalt der E-Mail als Hardcopy an.
The contents of this e-mail are confidential. If you are not the named
addressee or if this transmission has been addressed to you in error,
please notify the sender immediately and then delete this e-mail. Any
unauthorized copying and transmission is forbidden. E-Mail transmission
cannot be guaranteed to be secure. If verification is required, please
request a hard copy version.
Landesbank Baden-Württemberg
Anstalt des öffentlichen Rechts
Hauptsitze: Stuttgart, Karlsruhe, Mannheim
More information about the lxml-dev
mailing list