Opened 3 years ago
Closed 3 years ago
#684 closed defect (fixed)
OSGeo4W v2: python3-owslib-0.20.0 doesn't support Python 3.9
Reported by: | andreaerdna | Owned by: | |
---|---|---|---|
Priority: | major | Component: | Package |
Version: | Keywords: | ||
Cc: |
Description
The owslib 0.20.0 Python package uses the getiterator()
attribute of the xml.etree.ElementTree.Element
object which was removed in Python 3.9 and substituted with iter()
.
https://docs.python.org/3.8/library/xml.etree.elementtree.html#xml.etree.ElementTree.Element.getiterator
This breaks the functionality of the MetaSearch core plugin: see https://github.com/qgis/QGIS/issues/44225
The issue with the MetaSearch core plugin only happens installing qgis
or qgis-ltr
packages using the OSGeo4W v2 Network Installer.
It doesn't happen using the Standalone Installer (both v2 and v1) and the OSGeo4W v1 Network Installer. See https://github.com/qgis/QGIS/issues/44225#issuecomment-882073892 for more details.
The owslib 0.21.0 is the first owslib version using iter()
instead of getiterator()
in order to properly work with Python 3.9.
https://github.com/geopython/OWSLib/pull/720
The latest version of owslib is 0.24.1.
python3-owslib 0.24.1-1 added.