ModuleNotFoundError: No module named 'openquake.commonlib.nrml'

216 views
Skip to first unread message

Şafak Söylemez

unread,
Nov 18, 2019, 2:37:39 PM11/18/19
to OpenQuake Users
Hello,

When I want to run disaggregation_converter.py

I got this error.

C:\Users\Safak\Desktop>disaggregation_converter.py
Traceback (most recent call last):
File "C:\Users\Safak\Desktop\disaggregation_converter.py", line 52, in <module>
from openquake.commonlib.nrml import read
ModuleNotFoundError: No module named 'openquake.commonlib.nrml'

Please advise.

Regards,
Safak

Michele Simionato

unread,
Nov 18, 2019, 10:49:44 PM11/18/19
to OpenQuake Users
There is no script  disaggregation_converter.py in the official engine distribution.
I guess it is a random script that somebody gave you and that used to work 5 years ago.
The question is: what do you want to do? The script could be unneeded now.

       Michele

Şafak Söylemez

unread,
Nov 18, 2019, 11:25:50 PM11/18/19
to OpenQuake Users
Hello Michele,

I would like to generate 3D dissaggregation graphs. I saw that Openquake only give me the output files of dissagregation.

Do you know how can I generate 3D graphs showing distance, magnitude and epsilon.

Regards
Safak

Daniele Viganò

unread,
Nov 19, 2019, 3:08:13 AM11/19/19
to openqua...@googlegroups.com

To be able to see the OpenQuake environment and its libraries you must run your script from the 'OpenQuake console', using the corresponding icon installed within the OpenQuake Engine.

Cheers,
Daniele

--
DANIELE VIGANÒ | System Administrator | Skype dennyv85 | +39 0382 5169882
GLOBAL EARTHQUAKE MODEL | working together to assess risk
Reply all
Reply to author
Forward
0 new messages