3liz / QuickOSM

QGIS plugin to fetch OSM data with the Overpass API
GNU General Public License v2.0
180 stars 54 forks source link

Multiple python errors when launching query with QuickOSM Qgis plugin #469

Closed DCTN54 closed 1 year ago

DCTN54 commented 1 year ago

What is the bug?

QuickOSM cannot achieve any query anymore in QGis and I get the following errors in the logs

2023-06-19T14:58:04 INFO Preset translations have been loaded and unzipped. 2023-06-19T14:58:23 INFO ["All OSM objects with the key 'amenity'='bureau_de_change' in New York are going to be downloaded."] 2023-06-19T14:58:23 INFO Query: amenity_bureau_de_change_New York 2023-06-19T14:58:23 INFO Request completed 2023-06-19T14:58:23 INFO Encoded URL: https://lz4.overpass-api.de/api/interpreter?data=[out:xml] [timeout:25];%0A area(3600175905) -%3E .area_0;%0A(%0A node%22amenity%22%3D%22bureau_de_change%22;%0A way%22amenity%22%3D%22bureau_de_change%22;%0A relation%22amenity%22%3D%22bureau_de_change%22;%0A);%0A(._;%3E;);%0Aout body;&info=QgisQuickOSMPlugin 2023-06-19T14:58:24 INFO Request completed 2023-06-19T14:58:24 INFO Checking OSM file content C:/Users/xxx/AppData/Local/Temp/request-CTJjQk.osm 2023-06-19T14:58:24 INFO The OSM file is: C:/Users/xxx/AppData/Local/Temp/request-CTJjQk.osm 2023-06-19T14:58:24 CRITICAL Une erreur critique est survenue, voici la source: 2023-06-19T14:58:24 CRITICAL
2023-06-19T14:58:24 CRITICAL base_processing_panel.py 2023-06-19T14:58:24 CRITICAL Erreur : Algorithme qgis:checkvalidity non trouvé

2023-06-19T14:58:24 CRITICAL File "C:\Users/xxx/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QuickOSM\ui\base_processing_panel.py", line 59, in run_saved_query self._run_saved_query(data)

          File "C:\Users/xxx/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QuickOSM\ui\quick_query_panel.py", line 398, in _run_saved_query
          num_layers = process_quick_query(

          File "C:\Users/xxx/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QuickOSM\core\process.py", line 318, in process_quick_query
          return process_query(

          File "C:\Users/xxx/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QuickOSM\core\process.py", line 257, in process_query
          return open_file(

          File "C:\Users/xxx/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QuickOSM\core\process.py", line 106, in open_file
          layers = osm_parser.processing_parse()

          File "C:\Users/xxx/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QuickOSM\core\parser\osm_parser.py", line 147, in processing_parse
          validity = processing.run(

          File "C:\Program Files/QGIS 3.22/apps/qgis-ltr/./python/plugins\processing\tools\general.py", line 108, in run
          return Processing.runAlgorithm(algOrName, parameters, onFinish, feedback, context)

          File "C:\Program Files/QGIS 3.22/apps/qgis-ltr/./python/plugins\processing\core\Processing.py", line 171, in runAlgorithm
          raise QgsProcessingException(msg)

Since then I cannot use the Quick OSM anymore... Thanks for your advice

Environment

Gustry commented 1 year ago

Duplicate of the pinned issue #422 In the meantime, you can overpass this issue by yourself