3liz / QuickOSM

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

Error in the logs, in the QuickOSM panel #249

Closed pleasehelppaula closed 3 years ago

pleasehelppaula commented 3 years ago

What is the bug?

I type the necessary information in to QuickOSM, when I click "Run Query" I get a red warning saying "Error in the logs, .."

This is what the log says

_2020-09-16T20:09:29 INFO QueryFactory: the key is "boundary" and the value is "administrative" 2020-09-16T20:09:29 INFO Query: boundary_administrative_Prague 2020-09-16T20:09:29 INFO Request completed 2020-09-16T20:09:29 CRITICAL A critical error occurred, this is the traceback: 2020-09-16T20:09:29 CRITICAL
2020-09-16T20:09:29 CRITICAL base_processing_panel.py 2020-09-16T20:09:29 CRITICAL 'ascii' codec can't decode byte 0xc2 in position 39: ordinal not in range(128) 2020-09-16T20:09:29 CRITICAL File "/Users/Paula/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/ui/base_processing_panel.py", line 36, in run self._run()

          File "/Users/Paula/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/ui/quick_query_panel.py", line 167, in _run
          output_geometry_types=properties['outputs'])

          File "/Users/Paula/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/core/process.py", line 256, in process_quick_query
          layer_name=layer_name)

          File "/Users/Paula/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/core/process.py", line 187, in process_query
          final_query = query.prepare_query()

          File "/Users/Paula/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/core/query_preparation.py", line 274, in prepare_query
          self._replace_geocode_area()

          File "/Users/Paula/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/core/query_preparation.py", line 245, in _replace_geocode_area
          m.groups()[1], self._places), self._query_prepared)

          File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/re.py", line 191, in sub
          return _compile(pattern, flags).sub(repl, string, count)

          File "/Users/Paula/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/core/query_preparation.py", line 245, in 
          m.groups()[1], self._places), self._query_prepared)

          File "/Users/Paula/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/core/query_preparation.py", line 224, in replace
          osm_id = self._nominatim.get_first_polygon_from_query(search)

          File "/Users/Paula/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/core/api/nominatim.py", line 109, in get_first_polygon_from_query
          data = self.query(query)

          File "/Users/Paula/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/core/api/nominatim.py", line 95, in query
          data = json.load(json_file)

          File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/__init__.py", line 296, in load
          return loads(fp.read(),

          File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/encodings/ascii.py", line 26, in decode
          return codecs.ascii_decode(input, self.errors)[0]_

(sorry if the description is not complete, I am not an experienced qgis user and don't know better)

Gustry commented 3 years ago

(sorry if the description is not complete, I am not an experienced qgis user and don't know better)

You did well. Thanks for the bug report.

This issue has already been identified and will be fixed soon https://github.com/3liz/QuickOSM/issues/240

QGIS version: 3.8.3-Zanzibar

By the way, you should update, QGIS 3.8.3 is old and not maintained anymore.

maryoflores commented 1 year ago

me aparece asi,no se que hacer ayudame con alguna solucionar,puede indicame que debo hacer recien eempiezo a uitlizar qgis image

maryoflores commented 1 year ago

image ayudaaaaaaaaaaaaaaaaaaa que debo hacer

Gustry commented 1 year ago

https://github.com/3liz/QuickOSM/issues/422

lana2115 commented 3 months ago

Hi! I also have a problem with this:

2024-04-12T14:56:25 CRITICAL A critical error occurred, this is the traceback: 2024-04-12T14:56:25 CRITICAL
2024-04-12T14:56:25 CRITICAL base_processing_panel.py 2024-04-12T14:56:25 CRITICAL Error: Algorithm qgis:checkvalidity not found

2024-04-12T14:56:25 CRITICAL File "C:\Users/PC/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QuickOSM\ui\base_processing_panel.py", line 47, in run

Gustry commented 3 months ago

@lana2115 Just read the comment just before.

lana2115 commented 3 months ago

@lana2115 Just read the comment just before.

how can I fix it?

Gustry commented 3 months ago

@lana2115 Just read the comment just before, you can fix it