Comments (8)
I have releases 0.5.0 yesterday.
from defusedxml.
@justuswilhelm try with https://github.com/tiran/defusedxml/pull/4.patch .
from defusedxml.
also reported this to upstream Python, since the Python docs explicitly endorse the use of defusedxml: https://bugs.python.org/issue29050
from defusedxml.
#4 should fix this, I think.
from defusedxml.
This seems to break my installation of python3-openid==3.0.10
. If there is anything I can do to help (stack traces, debugging, testing, etc.) Please let me know.
This is what I'm seeing right now:
Traceback (most recent call last):
...
File "/Users/justusperlwitz/mailops/env/lib/python3.6/site-packages/openid/consumer/consumer.py", line 196, in <module>
from openid.consumer.discover import discover, OpenIDServiceEndpoint, \
File "/Users/justusperlwitz/mailops/env/lib/python3.6/site-packages/openid/consumer/discover.py", line 22, in <module>
from openid.yadis.etxrd import nsTag, XRDSError, XRD_NS_2_0
File "/Users/justusperlwitz/mailops/env/lib/python3.6/site-packages/openid/yadis/etxrd.py", line 31, in <module>
SafeElementTree = importSafeElementTree()
File "/Users/justusperlwitz/mailops/env/lib/python3.6/site-packages/openid/oidutil.py", line 83, in importSafeElementTree
return importElementTree(module_names)
File "/Users/justusperlwitz/mailops/env/lib/python3.6/site-packages/openid/oidutil.py", line 106, in importElementTree
ElementTree = __import__(mod_name, None, None, ['unused'])
File "/Users/justusperlwitz/mailops/env/lib/python3.6/site-packages/defusedxml/cElementTree.py", line 16, in <module>
from .ElementTree import DefusedXMLParser, _IterParseIterator
File "/Users/justusperlwitz/mailops/env/lib/python3.6/site-packages/defusedxml/ElementTree.py", line 62, in <module>
_XMLParser, _iterparse, _IterParseIterator, ParseError = _get_py3_cls()
File "/Users/justusperlwitz/mailops/env/lib/python3.6/site-packages/defusedxml/ElementTree.py", line 56, in _get_py3_cls
_IterParseIterator = pure_pymod._IterParseIterator
AttributeError: module 'xml.etree.ElementTree' has no attribute '_IterParseIterator'
from defusedxml.
Thanks so much for the patch, I was able to fix the issue until everything is merged to upstream.
from defusedxml.
https://travis-ci.org/nsupdate-info/nsupdate.info/jobs/193934880 having same issue, can't test nsupdate.info on py36.
from defusedxml.
Thanks a lot. I have sent 0.5.0 out for Fedora 24, 25 and Rawhide, and EPEL 7. I sent 0.4.1 to EPEL 6, as EL 6 is still on Python 2.6.
from defusedxml.
Related Issues (20)
- [Question] Correct way to parse HTML with defusedxml? HOT 1
- remove_blank_text and other options of XMLParser missing HOT 3
- Missing XMLParser options WITHOUT deprecated solution HOT 1
- type stubs for mypy HOT 2
- defusedxml does not work with `rich` library to print exceptions
- Can the upcoming 0.8.0 be released before March 2024 HOT 8
- LXML Support and XML Validator HOT 1
- [Feature request] Automatically detect imports of vulnerable xml parsers in projects HOT 1
- equivalent of lxml.objectify cleanup_namespaces in defusedxml HOT 1
- defusedxml 0.7.1 & Python 3.9 -- TypeError: __init__() takes 1 positional argument but 4 were given HOT 1
- Please add compatibility with xmlschema HOT 3
- ElementTree.fromstring() does not accept parser as an argument HOT 2
- defusedxml has no method of registering namespaces. HOT 3
- Missing Element class xml.etree.ElementTree.Element HOT 1
- Want to know the estimated time of the next version update HOT 1
- defusedxml reads bytes, not str HOT 3
- Cannot use `xpath` and any other functionality from `lxml` HOT 2
- Missing indent function HOT 1
- Calling defuse_stdlib() raises a DeprecationWarning error with python -W
- [Question] When can we expect to support Python 3.10? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from defusedxml.