[lxml-dev] AssertionError: double registering proxy!

Holger Joukl Holger.Joukl at LBBW.de
Tue Jan 23 14:04:35 CET 2007


Hi,
I'm using such code

        cache = {}
        cache[msg] = list(msg.getiterator())

to speed up subsequent tree access in my application, keeping proxied
Elements alive.
I've now run into AssertionError: double registering proxy! errors:

2007/01/23 13:25:43:all2all_MainThread:ERROR:    outmsg = self.mapper(msg)
2007/01/23 13:25:43:all2all_MainThread:ERROR:   File
"/data/pydev/hjoukl/PyTAF/pytaf/__PytafTestInstallation__/2006-Q3-BETA/lib/python2.4/site-packages/pytaf/mapper/FieldSelector.py",
 line 60, in __call__
2007/01/23 13:25:43:all2all_MainThread:ERROR:    cache[msg] =
list(msg.getiterator())
2007/01/23 13:25:43:all2all_MainThread:ERROR:   File "etree.pyx", line
1562, in etree.ElementDepthFirstIterator.__next__
2007/01/23 13:25:43:all2all_MainThread:ERROR:   File "etree.pyx", line
1207, in etree._elementFactory
2007/01/23 13:25:43:all2all_MainThread:ERROR:   File "proxy.pxi", line 28,
in etree.registerProxy
2007/01/23 13:25:43:all2all_MainThread:ERROR:<ThreadedQueue
name='TQ_normal'>: AssertionError: double registering proxy!

I've not really an idea how that happens.
This is a threaded program; might that be a problem?

I'm using Python 2.4.3, lxml 1.1.2, libxml2 2.6.27, libxslt 1.1.18.

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.




More information about the lxml-dev mailing list