Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in: lxml.etree._Element.__dealloc__ #5

Open
andresgleztelo opened this issue Oct 27, 2016 · 1 comment
Open

Exception in: lxml.etree._Element.__dealloc__ #5

andresgleztelo opened this issue Oct 27, 2016 · 1 comment

Comments

@andresgleztelo
Copy link

andresgleztelo commented Oct 27, 2016

I get this error when using the signing module or running the provided tests:
AssertionError: Tried to unregister unknown proxy
File "src/lxml/proxy.pxi", line 43, in lxml.etree._unregisterProxy (src/lxml/lxml.etree.c:11048)

Any idea what's causing this? I'm running it using either python2.7 or 3.5 and lxml 3.6.4, on Mac OS X EL Capitan or Ubuntu 14.04

@mvantellingen
Copy link

I ran into the same issue when implementing wsse in zeep

The solution was to use the xmlsec functions to inject the issuer and certificate instead of manually inserting it via lxml. See

https://github.com/orcasgit/py-wsse/blob/master/wsse/signing.py#L120
vs
https://github.com/mvantellingen/python-zeep/blob/master/src/zeep/wsse/signature.py#L154

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants