Your message dated Mon, 29 Nov 2010 14:12:48 +0100
with message-id <[email protected]>
and subject line Re: Bug#528413: python-lxml: AssertionError: Tried to 
unregister unknown proxy
has caused the Debian Bug report #528413,
regarding python-lxml: AssertionError: Tried to unregister unknown proxy
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
528413: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=528413
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-lxml
Version: 2.1.5-1
Severity: normal

$ python lookup.py
Exception exceptions.AssertionError: u'Tried to unregister unknown proxy' in 
<Element value at 82fa7ac> ignored
['v1']


The problem does not occur if I somehow keep the another XML document alive
while evaluating the XPath expression.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.29-1-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-lxml depends on:
ii  libc6                  2.9-12            GNU C Library: Shared libraries
ii  libxml2                2.7.3.dfsg-1      GNOME XML library
ii libxslt1.1 1.1.24-2 XSLT processing library - runtime ii python 2.5.4-2 An interactive high-level object-o
ii  python-central         0.6.11            register and build utility for Pyt
ii  zlib1g                 1:1.2.3.3.dfsg-13 compression library - runtime

python-lxml recommends no packages.

Versions of packages python-lxml suggests:
pn  python-lxml-dbg               <none>     (no description available)

-- no debconf information

--
Jakub Wilk
from __future__ import with_statement

from lxml import etree

def lookup(dummy, xml_file, id):
    with file(xml_file) as xml_file:
        xml = etree.parse(xml_file)
    return xml.xpath('id(%r)' % id)

ns = etree.FunctionNamespace(None)
ns['lookup'] = lookup

root = etree.XML('<dummy/>')
doc = etree.ElementTree(root)

print root.xpath("lookup('table.xml', 'k1')/value/text()")

Attachment: table.xml
Description: XML document


--- End Message ---
--- Begin Message ---
Version: 2.2.6-1

Exception exceptions.AssertionError: u'Tried to unregister unknown proxy' in 
<Element value at 82fa7ac> ignored
['v1']

According to upstream this was fixed in 2.2.5.

--
Jakub Wilk


--- End Message ---

Reply via email to