Error con QGIS 3 python OpenQuake

203 views
Skip to first unread message

Eder Vaca

unread,
Jul 3, 2021, 1:12:22 AM7/3/21
to OpenQuake Users
Hola estoy intentando cargar este ejercicio del tutorial y me da error de python.
Alguien sabe que podria ser? Ya reinstale el complemento de OpenQuake y otra versión de QGIS.





QGIS3.png
2021-07-03T00:05:53     WARNING    Traceback (most recent call last):
              File "C:\Users/ederl/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\svir\dialogs\drive_oq_engine_server_dialog.py", line 965, in 
              self.on_output_action_btn_clicked(
              File "C:\Users/ederl/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\svir\dialogs\drive_oq_engine_server_dialog.py", line 1002, in on_output_action_btn_clicked
              self.open_output(
              File "C:\Users/ederl/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\svir\dialogs\drive_oq_engine_server_dialog.py", line 1068, in open_output
              open_output_dlg = OUTPUT_TYPE_LOADERS[output_type](
              File "C:\Users/ederl/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\svir\dialogs\load_gmf_data_as_layer_dialog.py", line 62, in __init__
              self.extract_realizations()
              File "C:\Users/ederl/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\svir\dialogs\load_gmf_data_as_layer_dialog.py", line 164, in extract_realizations
              rlz_id for rlz_id in self.rlzs_npz['array']['rlz_id']]
             TypeError: 'NoneType' object is not subscriptableQGIS2.png

Nima Dolatabadi

unread,
Jul 3, 2021, 11:37:52 AM7/3/21
to OpenQuake Users
Hello,
I didnot understand you message here which is non english, but your problem is not related to this forum.
simply searching by last line of your arror and a tag of QGIS in Google.com will redirect you to qgis github and issues forum.
just search "qgis TypeError: 'NoneType' object is not subscriptable" and I believe you can fix it right away.
Regards

Peter Pažák

unread,
Jul 6, 2021, 12:10:44 AM7/6/21
to OpenQuake Users
Hi, I think this IS related to the OpenQuake QGIS plugin, so someone here could help to resolve,
BUT the user should provide version of OQ and OQ QGIS plugin (he says those are the newest?) and some information about the calculation and what he is trying to do.
It looks like realizations cannot be loaded from the calculation results, but if that is a hazard calculation that should not happen...

Peter

Dátum: sobota 3. júla 2021, čas: 17:37:52 UTC+2, odosielateľ: Nima Dolatabadi

Paolo Tormene

unread,
Jul 6, 2021, 3:10:48 AM7/6/21
to openqua...@googlegroups.com
Dear user,
in most cases, this kind of error occurs when you use incompatible versions of the IRMT QGIS plugin and of the OpenQuake engine. In principle, version A.B.whatever of the former is supposed to be compatible with version A.B.whatever of the latter. I hope this helps.
Best regards,
Paolo

--
You received this message because you are subscribed to the Google Groups "OpenQuake Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openquake-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openquake-users/1d57fb80-8f00-4cb0-a0c1-54b08b3f7626n%40googlegroups.com.


--

PAOLO TORMENE senior software developer +39 0382 5169882
 
GLOBAL EARTHQUAKE MODEL working together to assess risk
 
GEM - globalquakemodel.org T - @GEMwrld F - GEMwrld 
Reply all
Reply to author
Forward
0 new messages