You are not logged in.

#1 2025-05-09 13:08:16

rdkehn13
Member
Registered: 2025-05-09
Posts: 5

python import xmlschema fail

Hi Everyone,

Importing xmlschema fails with python 3.13. This was working with python 3.12. I looked around some and didn't find a resolution (at least not obvious to me). I will appreciate any/all assistance in resolving this error.

Python 3.13.3 (main, Apr  9 2025, 07:44:25) [GCC 14.2.1 20250207] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import xmlschema
Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    import xmlschema
  File "/usr/lib/python3.13/site-packages/xmlschema/__init__.py", line 16, in <module>
    from .resources import fetch_resource, fetch_namespaces, fetch_schema_locations, \
        fetch_schema, XMLResource
  File "/usr/lib/python3.13/site-packages/xmlschema/resources.py", line 24, in <module>
    from elementpath.etree import ElementTree, PyElementTree, SafeXMLParser, etree_tostring
ImportError: cannot import name 'PyElementTree' from 'elementpath.etree' (/usr/lib/python3.13/site-packages/elementpath/etree.py)
>>> 

Thanks and Regards,
...doug

Offline

#2 2025-05-09 13:12:39

gromit
Administrator
From: Germany
Registered: 2024-02-10
Posts: 1,525
Website

Re: python import xmlschema fail

Seems to be a bug in the package, please file it on our bugtracker:
https://gitlab.archlinux.org/archlinux/ … te=Default

Offline

#3 2025-05-09 14:58:57

rdkehn13
Member
Registered: 2025-05-09
Posts: 5

Re: python import xmlschema fail

I'm waiting on access to gitlab.

Offline

#4 2025-05-09 16:40:25

rdkehn13
Member
Registered: 2025-05-09
Posts: 5

Re: python import xmlschema fail

Offline

Board footer

Powered by FluxBB