3liz / QuickOSM

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

Critical Error Occurs apparently only on one key / value combination: landuse=grass #461

Open JdPass opened 1 year ago

JdPass commented 1 year ago

Critical Error Occurs apparently only on one key / value combination: landuse=grass

I have been using quickOSM successfully all day with many other key/val combinations but as soon as I try landuse=grass then I get a critical error. Log below:

2023-04-05T16:58:14     CRITICAL    A critical error occurred, this is the traceback:
2023-04-05T16:58:14     CRITICAL    
2023-04-05T16:58:14     CRITICAL    base_processing_panel.py
2023-04-05T16:58:14     CRITICAL    unknown
2023-04-05T16:58:14     CRITICAL     File "/Users/jdpass/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/ui/base_processing_panel.py", line 47, in run
              self._run()

              File "/Users/jdpass/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/ui/quick_query_panel.py", line 421, in _run
              num_layers = process_quick_query(

              File "/Users/jdpass/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/core/process.py", line 318, in process_quick_query
              return process_query(

              File "/Users/jdpass/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/core/process.py", line 257, in process_query
              return open_file(

              File "/Users/jdpass/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/core/process.py", line 106, in open_file
              layers = osm_parser.processing_parse()

              File "/Users/jdpass/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/QuickOSM/core/parser/osm_parser.py", line 161, in processing_parse
              layers[layer]['vectorLayer'] = processing.run(

              File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/tools/general.py", line 108, in run
              return Processing.runAlgorithm(algOrName, parameters, onFinish, feedback, context)

              File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/core/Processing.py", line 179, in runAlgorithm
              ret, results = execute(alg, parameters, context, feedback, catch_exceptions=False)

              File "/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins/processing/gui/AlgorithmExecutor.py", line 72, in execute
              results, ok = alg.run(parameters, context, feedback, {}, False)

Environment

Gustry commented 1 year ago

I guess it's a duplicate of #422 and you should be able to fix it your self by following instructions. Let me know if it doesn't work and we can reopen.

JdPass commented 1 year ago

Hi Étienne,

Thanks for getting back to me so quickly, I’ve looked and its not a duplicate, nor did the solution posted there fix anything for me.

JdPass

On 5 Apr 2023, at 17:11, Étienne Trimaille @.***> wrote:

I guess it's a duplicate of #422 https://github.com/3liz/QuickOSM/issues/422 and you should be able to fix it your self by following instructions. Let me know if it doesn't work and we can reopen.

— Reply to this email directly, view it on GitHub https://github.com/3liz/QuickOSM/issues/461#issuecomment-1497023515, or unsubscribe https://github.com/notifications/unsubscribe-auth/A67KL4LBEXDOGHKFJG5MHX3W7ULKHANCNFSM6AAAAAAWTVNJZA. You are receiving this because you authored the thread.

Gustry commented 1 year ago

Ok, so the Processing plugin is installed and checked ? Did you restart QGIS in the meantime ?

The processing plugin disabled is a very common issue unfortunetaly, and your logs does not help more :(

JdPass commented 1 year ago

Processing plug-in is installed and checked, I've restarted QGIS as well.

I was able to work around it by taking different extents and working around the area where there must be some landuse=grass polygon that is causing error.