[QE-users] xml parser for data-file-schema.xml in qe

Sonu Kumar 1009ukumar at gmail.com
Tue Nov 12 14:46:50 CET 2019


Dear Pietro D. Delugas,

Thank you for your reply. It is quite helpful (I wrote a small parser for
getting atomic positions etc, but the mentioned implementation is very
extensive and should be used).

Regarding the error (maybe, it is a stupid mistake): I was testing the
examples in  "qeschema-master/tests" using "test_qeschema.py", where I got
the following error:
----------------------------------------------------------------------------------------------------------------------------------------------------
Traceback (most recent call last):
  File "test_qeschema.py", line 79, in <module>
    import qeschema
  File
"~/.local/lib/python3.6/site-packages/qeschema-0.5.0-py3.6.egg/qeschema/__init__.py",
line 13, in <module>
    from .documents import QeDocument, PwDocument, PhononDocument,
NebDocument, TdDocument, SpectrumDocument
  File
"~/.local/lib/python3.6/site-packages/qeschema-0.5.0-py3.6.egg/qeschema/documents.py",
line 13, in <module>
    import xmlschema
  File
"~/.local/lib/python3.6/site-packages/xmlschema-0.9.30-py3.6.egg/xmlschema/__init__.py",
line 18, in <module>
    from .validators.exceptions import (
  File
"~/.local/lib/python3.6/site-packages/xmlschema-0.9.30-py3.6.egg/xmlschema/validators/__init__.py",
line 15, in <module>
    from .constraints import XsdSelector, XsdFieldSelector, XsdConstraint,
XsdKeyref, XsdKey, XsdUnique
  File
"~/.local/lib/python3.6/site-packages/xmlschema-0.9.30-py3.6.egg/xmlschema/validators/constraints.py",
line 40, in <module>
    XsdConstraintXPathParser.end()
AttributeError: type object 'XsdConstraintXPathParser' has no attribute
'end'
----------------------------------------------------------------------------------------------------------------------------------------------------

bests,
S. Kumar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quantum-espresso.org/pipermail/users/attachments/20191112/15c68e6c/attachment.html>


More information about the users mailing list