OpenQuake installation

67 views
Skip to first unread message

Erika Schiappapietra

unread,
Jan 20, 2021, 9:31:13 AMJan 20
to OpenQuake Users
Good Afternoon,

I installed openquake on a Mac a couple of months ago and I used it for a while without any problem. However, today I got the following error and I am not able to use it anymore. I re-installed both Python and openquake, but I still got the same message. 
Can anyone help me with this issue?
Thank you,
Erika

 ~ % oq

Traceback (most recent call last):

  File "/Users/erika/openquake/bin/oq", line 8, in <module>

    sys.exit(oq())

  File "/Users/erika/openquake/lib/python3.6/site-packages/openquake/commands/__main__.py", line 51, in oq

    importlib.import_module(modname)

  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/importlib/__init__.py", line 126, in import_module

    return _bootstrap._gcd_import(name[level:], package, level)

  File "<frozen importlib._bootstrap>", line 994, in _gcd_import

  File "<frozen importlib._bootstrap>", line 971, in _find_and_load

  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked

  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked

  File "<frozen importlib._bootstrap_external>", line 678, in exec_module

  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed

  File "/Users/erika/openquake/lib/python3.6/site-packages/openquake/commands/db.py", line 24, in <module>

    from openquake.calculators.views import rst_table

  File "/Users/erika/openquake/lib/python3.6/site-packages/openquake/calculators/__init__.py", line 23, in <module>

    import_all('openquake.calculators')

  File "/Users/erika/openquake/lib/python3.6/site-packages/openquake/baselib/general.py", line 509, in import_all

    importlib.import_module(modname)

  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/importlib/__init__.py", line 126, in import_module

    return _bootstrap._gcd_import(name[level:], package, level)

  File "/Users/erika/openquake/lib/python3.6/site-packages/openquake/calculators/getters.py", line 25, in <module>

    from openquake.hazardlib.gsim.base import ContextMaker, FarAwayRupture

  File "/Users/erika/openquake/lib/python3.6/site-packages/openquake/hazardlib/__init__.py", line 24, in <module>

    from openquake.hazardlib import (

  File "/Users/erika/openquake/lib/python3.6/site-packages/openquake/hazardlib/calc/__init__.py", line 23, in <module>

    from openquake.hazardlib.calc.gmf import ground_motion_fields

  File "/Users/erika/openquake/lib/python3.6/site-packages/openquake/hazardlib/calc/gmf.py", line 28, in <module>

    from openquake.hazardlib.gsim.base import ContextMaker

  File "/Users/erika/openquake/lib/python3.6/site-packages/openquake/hazardlib/gsim/__init__.py", line 25, in <module>

    from openquake.hazardlib.gsim.base import registry

  File "/Users/erika/openquake/lib/python3.6/site-packages/openquake/hazardlib/gsim/base.py", line 35, in <module>

    from openquake.hazardlib.contexts import KNOWN_DISTANCES

  File "/Users/erika/openquake/lib/python3.6/site-packages/openquake/hazardlib/contexts.py", line 39, in <module>

    from openquake.hazardlib.calc.filters import MagDepDistance

  File "/Users/erika/openquake/lib/python3.6/site-packages/openquake/hazardlib/calc/filters.py", line 31, in <module>

    from openquake.hazardlib.geo.utils import (

  File "/Users/erika/openquake/lib/python3.6/site-packages/openquake/hazardlib/geo/__init__.py", line 28, in <module>

    from openquake.hazardlib.geo.point import Point

  File "/Users/erika/openquake/lib/python3.6/site-packages/openquake/hazardlib/geo/point.py", line 23, in <module>

    import shapely.geometry

  File "/Users/erika/openquake/lib/python3.6/site-packages/shapely/geometry/__init__.py", line 4, in <module>

    from .base import CAP_STYLE, JOIN_STYLE

  File "/Users/erika/openquake/lib/python3.6/site-packages/shapely/geometry/base.py", line 17, in <module>

    from shapely.coords import CoordinateSequence

  File "/Users/erika/openquake/lib/python3.6/site-packages/shapely/coords.py", line 8, in <module>

    from shapely.geos import lgeos

  File "/Users/erika/openquake/lib/python3.6/site-packages/shapely/geos.py", line 113, in <module>

    free = load_dll('c').free

  File "/Users/erika/openquake/lib/python3.6/site-packages/shapely/geos.py", line 56, in load_dll

    libname, fallbacks or []))

OSError: Could not find lib c or load any of its variants [].

Antonio Ettorre

unread,
Jan 20, 2021, 3:16:01 PMJan 20
to OpenQuake Users
Do you upgrade to BigSur? 
This is an error that occur on the new variant of OS, and at the moment the support for BigSur is not available.
If you want you can try with developer installation follow the instruction on github:

Erika Schiappapietra

unread,
Jan 20, 2021, 3:32:57 PMJan 20
to OpenQuake Users

Thank you for your reply. Yes, I upgraded to BigSur.
I'll give it  a try.

Erika Schiappapietra

unread,
Jan 21, 2021, 3:32:02 AMJan 21
to OpenQuake Users
I followed the new instructions, however, when I tried to install the following

src % pip install -r oq-engine/requirements-py36-macos.txt -r oq-engine/requirements-extra-py36-macos.txt 

I got this message:

ERROR: h5py-2.10.0-cp36-cp36m-macosx_10_6_intel.whl is not a supported wheel on this platform.

Any suggestion on how to overcome this issue?

Thank you!



Antonio Ettorre

unread,
Jan 21, 2021, 2:09:03 PMJan 21
to OpenQuake Users
Which CPU do you have on your Mac?
If you have one Intel CPU, please can you try  to use python3.8 for the installation? 

Erika Schiappapietra

unread,
Jan 27, 2021, 3:47:03 AMJan 27
to openqua...@googlegroups.com
I have an Intel Core i9 and I have tried python3.9, but it still does not work.

--
You received this message because you are subscribed to a topic in the Google Groups "OpenQuake Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openquake-users/xVBdka0wEvo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openquake-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openquake-users/e95c7a11-e1be-4cd8-bc1c-aa364c1fa46dn%40googlegroups.com.
Message has been deleted
Message has been deleted

Michele Simionato

unread,
Jan 27, 2021, 9:24:30 AMJan 27
to OpenQuake Users
On Wednesday, January 27, 2021 at 9:47:03 AM UTC+1 erika.schi...@gmail.com wrote:
I have an Intel Core i9 and I have tried python3.9, but it still does not work


Python 3.9 is not supported as clearly stated in the installation page: https://github.com/gem/oq-engine/blob/master/doc/installing/macos.md

   Michele 

Erika Schiappapietra

unread,
Jan 27, 2021, 10:50:29 AMJan 27
to OpenQuake Users
Thanks, I noted the new installation page this morning and I followed the new guidelines using python 3.8. It seems that now OQ is working (I tried to run the demo and I did not get any error message). However, when I tried to start the OpenQuake WebUI I got the following message: ModuleNotFoundError: No module named 'openquake.taxonomy'. 
Any suggestion to overcome this issue?

Thanks in advance,

Erika

Michele Simionato

unread,
Jan 27, 2021, 10:56:32 AMJan 27
to OpenQuake Users
On Wednesday, January 27, 2021 at 4:50:29 PM UTC+1 erika.schi...@gmail.com wrote:
Thanks, I noted the new installation page this morning and I followed the new guidelines using python 3.8. It seems that now OQ is working (I tried to run the demo and I did not get any error message). However, when I tried to start the OpenQuake WebUI I got the following message: ModuleNotFoundError: No module named 'openquake.taxonomy'. 
Any suggestion to overcome this issue?

Yes, it is a known issue that I will fix tomorrow. But you should be able to use the WebUI anyway, just without the taxonomy app, right?

          Michele 

Erika Schiappapietra

unread,
Jan 27, 2021, 10:58:34 AMJan 27
to openqua...@googlegroups.com
No, I cannot open any webpage. 

--
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/062d1120-db70-48bd-9c5b-f4b368349f05n%40googlegroups.com.

Michele Simionato

unread,
Jan 28, 2021, 12:37:22 AMJan 28
to OpenQuake Users
The script install.py has been fixed. Just download it again and repeat the installation. Notice that the script is new, was written expressly for Big Sur users and it is still in beta. It will be part of the next release of OpenQuake.
Please let us know how it goes,

                      Michele 

Erika Schiappapietra

unread,
Jan 28, 2021, 2:39:03 AMJan 28
to openqua...@googlegroups.com
Thanks Michele.

Erika

--
You received this message because you are subscribed to a topic in the Google Groups "OpenQuake Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openquake-users/xVBdka0wEvo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openquake-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openquake-users/1be3cffb-978e-490e-b8a9-e28b3a297020n%40googlegroups.com.

Erika Schiappapietra

unread,
Jan 28, 2021, 2:47:59 AMJan 28
to OpenQuake Users
I just have tried it and it works. 

Thanks again for fixing it.

Erika

Reply all
Reply to author
Forward
0 new messages