OpenQake for Ubuntu 20.04

464 views
Skip to first unread message

Ratnamani Gupta

unread,
Nov 17, 2020, 5:41:30 AM11/17/20
to OpenQuake Users
Dear All
Is there any way to install OpenQuake in Ubuntu 20.04 version?
Thank you.

Ratna Mani Gupta

Michele Simionato

unread,
Nov 17, 2020, 7:44:07 AM11/17/20
to OpenQuake Users
Yes, just install with pip and not with the packages.

    Michele

Ratnamani Gupta

unread,
Nov 17, 2020, 9:14:02 AM11/17/20
to openqua...@googlegroups.com
Hello Michele
I am new in this field. So can you help me with some link or procedure to install it.
Thank you for your help.

Sincerely
Ratnamani Gupta



--
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/MdVsIH9SgoM/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/d8737a44-9b66-4fd8-8358-329143fd45fan%40googlegroups.com.

Michele Simionato

unread,
Nov 17, 2020, 9:34:02 AM11/17/20
to OpenQuake Users
On Tuesday, November 17, 2020 at 3:14:02 PM UTC+1 crysta...@gmail.com wrote:
Hello Michele
I am new in this field. So can you help me with some link or procedure to install it.


Just google for "installing openquake engine with pip".

     Michele 

peter...@gmail.com

unread,
Nov 21, 2020, 8:37:08 AM11/21/20
to OpenQuake Users
I found and used this (first two lines to get pip...):

sudo apt update
sudo apt install python3-pip
sudo pip3 install openquake.engine==3.10.1

Peter

Dátum: utorok 17. novembra 2020, čas: 15:34:02 UTC+1, odosielateľ: Michele Simionato

Michele Simionato

unread,
Nov 21, 2020, 11:34:33 AM11/21/20
to OpenQuake Users
On Saturday, November 21, 2020 at 2:37:08 PM UTC+1 peter...@gmail.com wrote:
I found and used this (first two lines to get pip...):

sudo apt update
sudo apt install python3-pip
sudo pip3 install openquake.engine==3.10.1

This is NOT recommended. The proper way is to create a virtual environment, otherwise you risk conflicts with other libraries installed in your system.
Next week we will release an installation script that does the things properly.

        Michele 

peter...@gmail.com

unread,
Nov 21, 2020, 11:19:05 PM11/21/20
to OpenQuake Users
Thank you Michelle - I googled and here you are :) so proper instructions will be welcome.

Peter

Dátum: sobota 21. novembra 2020, čas: 17:34:33 UTC+1, odosielateľ: Michele Simionato

Michele Simionato

unread,
Nov 23, 2020, 5:58:41 AM11/23/20
to OpenQuake Users
Here is the script I am working on: https://github.com/gem/oq-engine/pull/6288/files
You can be a beta tester if you want ;-)

                         Michele

peter...@gmail.com

unread,
Nov 23, 2020, 12:10:37 PM11/23/20
to OpenQuake Users
Maybe better to take this offline... just to start - what are the prerequisites, just python3 installed via sudo apt-get python3 ?

peter@peter-ThinkPad-T420s:~$ which python3
/usr/bin/python3
peter@peter-ThinkPad-T420s:~$ which pip3
/usr/bin/pip3
peter@peter-ThinkPad-T420s:~$ python3 --version
Python 3.8.5

peter@peter-ThinkPad-T420s:~$ sudo apt-get install python3-venv
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  command-not-found-data diffstat enchant example-content g++-8 geoip-database
  gettext gir1.2-geocodeglib-1.0 gir1.2-mutter-4 gir1.2-mutter-5 ifupdown
  intltool-debian libapt-inst2.0 libapt-pkg-perl libapt-pkg5.0 libapt-pkg5.90
  libarchive-zip-perl libasync-mergepoint-perl libb-hooks-endofscope-perl
  libb-hooks-op-check-perl libbind9-161 libboost-date-time1.67.0
  libboost-filesystem1.67.0 libboost-iostreams1.67.0 libboost-locale1.67.0
  libboost-system1.67.0 libboost-thread1.67.0 libbrlapi0.6
  libcapture-tiny-perl libcgi-fast-perl libcgi-pm-perl libclass-accessor-perl
  libclass-method-modifiers-perl libclass-xsaccessor-perl libclone-perl
  libcpanel-json-xs-perl libcroco3 libdevel-callchecker-perl
  libdevel-globaldestruction-perl libdevel-size-perl
  libdigest-bubblebabble-perl libdns-export1104 libdns1104 libdns1109
  libdynaloader-functions-perl libebook-contacts-1.2-2 libecal-1.2-19
  libegl1-mesa libemail-valid-perl libenchant1c2a libevent-2.1-6 libexiv2-14
  libexporter-tiny-perl libfcgi-perl libffi6 libfile-find-rule-perl
  libfont-ttf-perl libfprint0 libfuture-perl libgeoip1 libgnome-desktop-3-17
  libgnome-desktop-3-18 libgspell-1-1 libgutenprint-common libgutenprint9
  libgweather-3-15 libhogweed4 libicu63 libimport-into-perl
  libio-async-loop-epoll-perl libio-async-perl libio-pty-perl
  libio-string-perl libip4tc0 libip6tc0 libipc-run-perl libiptc0 libirs161
  libisc-export1100 libisc1100 libisc1105 libisccc161 libisccfg163 libisl19
  libisl21 libjson-c3 libjson-maybexs-perl liblinux-epoll-perl
  liblist-compare-perl liblist-moreutils-perl libllvm8 libllvm9 liblouis17
  liblouisutdml8 liblwres161 libmodule-implementation-perl
  libmodule-runtime-perl libmoo-perl libmoox-aliases-perl libmozjs-60-0
  libmutter-4-0 libmutter-5-0 libmysqlclient20 libnamespace-clean-perl
  libnet-dns-perl libnet-dns-sec-perl libnet-domain-tld-perl libnet-ip-perl
  libnettle6 libnfs12 libnumber-compare-perl liboauth0 liborcus-0.14-0
  libpackage-stash-perl libpackage-stash-xs-perl libparams-classify-perl
  libparse-debianchangelog-perl libpath-tiny-perl libperl4-corelibs-perl
  libperlio-gzip-perl libplymouth4 libpoppler85 libpoppler90 libpython3.7
  libpython3.7-minimal libpython3.7-stdlib libqpdf21 libreadonly-perl
  libref-util-perl libref-util-xs-perl libreoffice-avmedia-backend-gstreamer
  librole-tiny-perl libsereal-decoder-perl libsereal-encoder-perl
  libsereal-perl libstdc++-8-dev libstrictures-perl libstruct-dumb-perl
  libsub-exporter-progressive-perl libsub-identify-perl libsub-quote-perl
  libtagc0 libtest-fatal-perl libtest-refcount-perl libtext-glob-perl
  libtext-levenshtein-perl libtype-tiny-perl libtype-tiny-xs-perl
  libunicode-utf8-perl libusbmuxd4 libvariable-magic-perl libvpx5
  libxml-simple-perl libxml-writer-perl libyaml-libyaml-perl lintian
  multiarch-support patchutils pppconfig pppoeconf printer-driver-gutenprint
  python3-asn1crypto python3.7 python3.7-minimal t1utils ubuntu-software
  ubuntu-system-service ubuntu-web-launchers
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  python3.8-venv
The following NEW packages will be installed:
  python3-venv python3.8-venv
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 6’668 B of archives.
After this operation, 38.9 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://ch.archive.ubuntu.com/ubuntu focal-updates/universe amd64 python3.8-venv amd64 3.8.5-1~20.04 [5’440 B]
Get:2 http://ch.archive.ubuntu.com/ubuntu focal/universe amd64 python3-venv amd64 3.8.2-0ubuntu2 [1’228 B]
Fetched 6’668 B in 0s (23.5 kB/s)           
Selecting previously unselected package python3.8-venv.
(Reading database ... 194295 files and directories currently installed.)
Preparing to unpack .../python3.8-venv_3.8.5-1~20.04_amd64.deb ...
Unpacking python3.8-venv (3.8.5-1~20.04) ...
Selecting previously unselected package python3-venv.
Preparing to unpack .../python3-venv_3.8.2-0ubuntu2_amd64.deb ...
Unpacking python3-venv (3.8.2-0ubuntu2) ...
Setting up python3.8-venv (3.8.5-1~20.04) ...
Setting up python3-venv (3.8.2-0ubuntu2) ...
Processing triggers for man-db (2.9.1-1) ...

peter@peter-ThinkPad-T420s:~$ wget https://raw.githubusercontent.com/gem/oq-engine/master/install.py
--2020-11-23 17:57:17--  https://raw.githubusercontent.com/gem/oq-engine/master/install.py
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.112.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.112.133|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-11-23 17:57:18 ERROR 404: Not Found.

so I downloaded manually and saved as install_oq.py

peter@peter-ThinkPad-T420s:~$ python3 install_oq.py user
Traceback (most recent call last):
  File "install_oq.py", line 290, in <module>
    install(inst)
  File "install_oq.py", line 201, in install
    subprocess.check_call(['%s/bin/pip' % inst.VENV, 'install', 'pip', 'wheel',
  File "/usr/lib/python3.8/subprocess.py", line 359, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python3.8/subprocess.py", line 340, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/home/peter/openquake/bin/pip'

so in the venv pip is missing - should I do something differently?

Thank you
Peter

Dátum: pondelok 23. novembra 2020, čas: 11:58:41 UTC+1, odosielateľ: Michele Simionato

Michele Simionato

unread,
Nov 24, 2020, 5:10:14 AM11/24/20
to OpenQuake Users
Thanks for checking this, indeed there is a problem that I can reproduce.
The solution for me is to remove $HOME/openquake (to start from a clean state) and then

$ /usr/bin/python3 install_oq.py user  # instead of $ python3 install_oq.py user

It is seems that not specifying the full path of the python executable causes confusion.
HTH,

              Michele

peter...@gmail.com

unread,
Dec 2, 2020, 11:05:20 PM12/2/20
to OpenQuake Users
Great Michelle, thank you very much.
I will try to summarize what I think is necessary to install on clean ubuntu:

1. install python:
sudo apt-get python3

2. install pip:
sudo apt install python3-pip

3. get the install script (now this works):

4. run installation:
/usr/bin/python3 install_oq.py user

The install as user was successful, tried run (full path to oq necessary...):
/home/peter/openquake/bin/oq engine --run job.ini

and webui also seems to work:
/home/peter/openquake/bin/oq webui start

Thank you
Peter
Dátum: utorok 24. novembra 2020, čas: 11:10:14 UTC+1, odosielateľ: Michele Simionato

Michele Simionato

unread,
Dec 3, 2020, 1:38:18 AM12/3/20
to OpenQuake Users
On Thursday, December 3, 2020 at 5:05:20 AM UTC+1 peter...@gmail.com wrote:
Great Michelle, thank you very much.
I will try to summarize what I think is necessary to install on clean ubuntu:

1. install python:
sudo apt-get python3

2. install pip:
sudo apt install python3-pip

3. get the install script (now this works):

4. run installation:
/usr/bin/python3 install_oq.py user

The install as user was successful, tried run (full path to oq necessary...):
/home/peter/openquake/bin/oq engine --run job.ini

and webui also seems to work:
/home/peter/openquake/bin/oq webui start

It should not be necessary to install pip (the installer should install it for you) but you need python3-venv.
If you want to avoid to use the full path to oq you can add an alias in your .bashrc,  update your PATH
or simply activate the virtualenv:

$ source /home/peter/openquake/bin/activate

                 Michele

dyn...@gmail.com

unread,
Mar 15, 2021, 10:26:13 PM3/15/21
to OpenQuake Users
Hi Michele, 

Can you elaborate on the solution of removing $HOME/openquake? 
I do have the same error message as above.
Thanks.

Regards,

Hyeuk

Michele Simionato

unread,
Mar 16, 2021, 1:56:09 AM3/16/21
to OpenQuake Users
On Tuesday, March 16, 2021 at 3:26:13 AM UTC+1 dyn...@gmail.com wrote:
Hi Michele, 

Can you elaborate on the solution of removing $HOME/openquake? 
I do have the same error message as above.

You mean this error?

FileNotFoundError: [Errno 2] No such file or directory: '/home/peter/openquake/bin/pip' 

I don't know, I cannot reproduce the issue. Maybe Peter can share some light on how he solved that ;)

        Michele

Peter Pažák

unread,
Mar 16, 2021, 1:01:38 PM3/16/21
to OpenQuake Users
Hi, I had such problem with the previous version of the installer.
It worked without any problem with the updated version.
Hyeuk please try to delete the directory /home/youruser/openquake (change youruser to tour user name)
and then in your home directory execute
and
/usr/bin/python3 install.py user
to see if that runs without any error...

Peter

Dátum: utorok 16. marca 2021, čas: 6:56:09 UTC+1, odosielateľ: Michele Simionato

Hyeuk Ryu

unread,
Mar 16, 2021, 7:22:54 PM3/16/21
to OpenQuake Users
Thanks Peter for your kind reply. Still I got the error like below when I tried to install for development mode while I managed to install for user mode successfully.
Any suggestions?

Regards,

Hyeuk

hyeuk@hyeuk-GA:~$ /usr/bin/python3 install.py devel
Created /home/hyeuk/openquake
Cache entry deserialization failed, entry ignored
Collecting pip
  Downloading https://files.pythonhosted.org/packages/fe/ef/60d7ba03b5c442309ef42e7d69959f73aacccd0d86008362a681c4698e83/pip-21.0.1-py3-none-any.whl (1.5MB)
    100% |████████████████████████████████| 1.5MB 452kB/s
Collecting wheel
  Downloading https://files.pythonhosted.org/packages/65/63/39d04c74222770ed1589c0eaba06c05891801219272420b40311cd60c880/wheel-0.36.2-py2.py3-none-any.whl
Installing collected packages: pip, wheel
  Found existing installation: pip 9.0.1
    Uninstalling pip-9.0.1:
      Successfully uninstalled pip-9.0.1
Successfully installed pip-21.0.1 wheel-0.36.2
Collecting pytz==2018.3
  Using cached https://wheelhouse.openquake.org/v2/linux/py/pytz-2018.3-py2.py3-none-any.whl (509 kB)
Collecting setuptools==39.0.1
  Using cached https://wheelhouse.openquake.org/v2/linux/py/setuptools-39.0.1-py2.py3-none-any.whl (569 kB)
Collecting h5py==2.10.0
  Using cached https://wheelhouse.openquake.org/v2/linux/py36/h5py-2.10.0-cp36-cp36m-manylinux1_x86_64.whl (2.9 MB)
Collecting nose==1.3.7
  Using cached https://wheelhouse.openquake.org/v2/linux/py/nose-1.3.7-py3-none-any.whl (154 kB)
Collecting numpy==1.18.2
  Downloading https://wheelhouse.openquake.org/v2/linux/py36/numpy-1.18.2-cp36-cp36m-manylinux1_x86_64.whl (15.9 MB)
     |████████████████████████████████| 15.9 MB 426 kB/s
Collecting scipy==1.3.1
  Using cached https://wheelhouse.openquake.org/v2/linux/py36/scipy-1.3.1-cp36-cp36m-manylinux1_x86_64.whl (25.2 MB)
Collecting pandas==0.25.3
  Using cached https://wheelhouse.openquake.org/v2/linux/py36/pandas-0.25.3-cp36-cp36m-manylinux1_x86_64.whl (10.4 MB)
Collecting pyzmq==17.0.0
  Using cached https://wheelhouse.openquake.org/v2/linux/py36/pyzmq-17.0.0-cp36-cp36m-manylinux1_x86_64.whl (3.1 MB)
Collecting psutil==5.4.3
  Using cached https://wheelhouse.openquake.org/v2/linux/py36/psutil-5.4.3-cp36-cp36m-manylinux1_x86_64.whl (250 kB)
Collecting Shapely==1.7.1
  Using cached https://wheelhouse.openquake.org/v2/linux/py36/Shapely-1.7.1-cp36-cp36m-manylinux1_x86_64.whl (1.0 MB)
Collecting docutils==0.14
  Downloading https://wheelhouse.openquake.org/v2/linux/py/docutils-0.14-py3-none-any.whl (543 kB)
     |████████████████████████████████| 543 kB 239 kB/s
Collecting decorator==4.3.0
  Using cached https://wheelhouse.openquake.org/v2/linux/py/decorator-4.3.0-py2.py3-none-any.whl (9.2 kB)
Collecting pbr==4.0.0
  Using cached https://wheelhouse.openquake.org/v2/linux/py/pbr-4.0.0-py2.py3-none-any.whl (100 kB)
Collecting six==1.11.0
  Using cached https://wheelhouse.openquake.org/v2/linux/py/six-1.11.0-py2.py3-none-any.whl (10 kB)
Collecting Django==2.2.7
  Downloading https://wheelhouse.openquake.org/v2/linux/py/Django-2.2.7-py3-none-any.whl (7.5 MB)
     |████████████████████████████████| 7.5 MB 437 kB/s
Collecting sqlparse==0.3.0
  Downloading https://wheelhouse.openquake.org/v2/linux/py/sqlparse-0.3.0-py2.py3-none-any.whl (39 kB)
Collecting certifi==2018.1.18
  Using cached https://wheelhouse.openquake.org/v2/linux/py/certifi-2018.1.18-py2.py3-none-any.whl (151 kB)
Collecting urllib3==1.22
  Using cached https://wheelhouse.openquake.org/v2/linux/py/urllib3-1.22-py2.py3-none-any.whl (132 kB)
Collecting chardet==3.0.4
  Downloading https://wheelhouse.openquake.org/v2/linux/py/chardet-3.0.4-py2.py3-none-any.whl (133 kB)
     |████████████████████████████████| 133 kB 340 kB/s
Collecting idna==2.6
  Using cached https://wheelhouse.openquake.org/v2/linux/py/idna-2.6-py2.py3-none-any.whl (56 kB)
Collecting requests==2.20.0
  Using cached https://wheelhouse.openquake.org/v2/linux/py/requests-2.20.0-py2.py3-none-any.whl (60 kB)
Collecting pyshp==1.2.3
  Downloading https://wheelhouse.openquake.org/v2/linux/py/pyshp-1.2.3-py3-none-any.whl (19 kB)
Collecting toml==0.10.0
  Downloading https://wheelhouse.openquake.org/v2/linux/py/toml-0.10.0-py2.py3-none-any.whl (25 kB)
Collecting setproctitle==1.1.10
  Downloading https://wheelhouse.openquake.org/v2/linux/py36/setproctitle-1.1.10-cp36-cp36m-manylinux1_x86_64.whl (26 kB)
Collecting python-prctl==1.6.1
  Using cached https://wheelhouse.openquake.org/v2/linux/py36/python_prctl-1.6.1-cp36-cp36m-manylinux1_x86_64.whl (29 kB)
Collecting vine==1.1.4
  Using cached https://wheelhouse.openquake.org/v2/linux/py/vine-1.1.4-py2.py3-none-any.whl (12 kB)
Collecting amqp==2.2.2
  Using cached https://wheelhouse.openquake.org/v2/linux/py/amqp-2.2.2-py2.py3-none-any.whl (48 kB)
Collecting kombu==4.1.0
  Using cached https://wheelhouse.openquake.org/v2/linux/py/kombu-4.1.0-py2.py3-none-any.whl (181 kB)
Collecting billiard==3.5.0.3
  Using cached https://wheelhouse.openquake.org/v2/linux/py/billiard-3.5.0.3-py3-none-any.whl (89 kB)
Collecting celery==4.1.0
  Using cached https://wheelhouse.openquake.org/v2/linux/py/celery-4.1.0-py2.py3-none-any.whl (400 kB)
Collecting python-dateutil==2.7.2
  Using cached https://wheelhouse.openquake.org/v2/linux/py/python_dateutil-2.7.2-py2.py3-none-any.whl (212 kB)
Collecting pyparsing==2.2.0
  Using cached https://wheelhouse.openquake.org/v2/linux/py/pyparsing-2.2.0-py2.py3-none-any.whl (56 kB)
Collecting cycler==0.10.0
  Downloading https://wheelhouse.openquake.org/v2/linux/py/cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
Collecting matplotlib==2.1.2
  Using cached https://wheelhouse.openquake.org/v2/linux/py36/matplotlib-2.1.2-cp36-cp36m-manylinux1_x86_64.whl (15.0 MB)
Collecting pyproj==1.9.5.1
  Using cached https://wheelhouse.openquake.org/v2/linux/py36/pyproj-1.9.5.1-cp36-cp36m-manylinux1_x86_64.whl (3.7 MB)
Collecting GDAL==3.1.2
  Downloading https://wheelhouse.openquake.org/v2/linux/py36/GDAL-3.1.2-cp36-cp36m-manylinux1_x86_64.whl (101.1 MB)
     |████████████████████████████████| 101.1 MB 75 kB/s
Installing collected packages: vine, six, amqp, urllib3, sqlparse, pytz, python-dateutil, pyparsing, numpy, kombu, idna, cycler, chardet, certifi, billiard, toml, Shapely, setproctitle, scipy, requests, pyzmq, python-prctl, pyshp, pyproj, psutil, pbr, pandas, nose, matplotlib, h5py, GDAL, docutils, Django, decorator, celery
Successfully installed Django-2.2.7 GDAL-3.1.2 Shapely-1.7.1 amqp-2.2.2 billiard-3.5.0.3 celery-4.1.0 certifi-2018.1.18 chardet-3.0.4 cycler-0.10.0 decorator-4.3.0 docutils-0.14 h5py-2.10.0 idna-2.6 kombu-4.1.0 matplotlib-2.1.2 nose-1.3.7 numpy-1.18.2 pandas-0.25.3 pbr-4.0.0 psutil-5.4.3 pyparsing-2.2.0 pyproj-1.9.5.1 pyshp-1.2.3 python-dateutil-2.7.2 python-prctl-1.6.1 pytz-2018.3 pyzmq-17.0.0 requests-2.20.0 scipy-1.3.1 setproctitle-1.1.10 six-1.11.0 sqlparse-0.3.0 toml-0.10.0 urllib3-1.22 vine-1.1.4
ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: /home/hyeuk

Traceback (most recent call last):
  File "install.py", line 328, in <module>
    install(inst, args.version)
  File "install.py", line 225, in install
    subprocess.check_call(['%s/bin/pip' % inst.VENV, 'install', '-e', '.'])
  File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/hyeuk/openquake/bin/pip', 'install', '-e', '.']' returned non-zero exit status 1.

--
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/MdVsIH9SgoM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openquake-use...@googlegroups.com.

Michele Simionato

unread,
Mar 17, 2021, 1:27:12 AM3/17/21
to OpenQuake Users
On Wednesday, March 17, 2021 at 12:22:54 AM UTC+1 dyn...@gmail.com wrote:
ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: /home/hyeuk

From this error it looks like you are in the wrong directory. In devel mode the installation must be done from inside a clone of the engine repository, as documented.


  Michele

dyn...@gmail.com

unread,
Mar 17, 2021, 1:53:12 AM3/17/21
to OpenQuake Users
Hi Michelle,

Please find the attached file. Please let me know what I did wrong.
Thanks.

Regards,

Hyeuk
error.txt

Antonio Ettorre

unread,
Mar 17, 2021, 2:36:05 PM3/17/21
to OpenQuake Users
Hi,
 please can you do a simple ls -ltr /home/hyeuk/openquake/bin/pip* ?
After please delete the folder /home/hyeuk/openquake but before save any calc files if you need.
And after that you have deleted the folder from the main folder of oq-engine repo : 
python3.8 install.py devel

Antonio

dyn...@gmail.com

unread,
Mar 17, 2021, 7:18:45 PM3/17/21
to OpenQuake Users

Hi Antonio,

There is no bin directory under openquake. I followed the instruction as follows:

I first created openquake folder under my home directory.

1. Download the OpenQuake source code

mkdir src && cd src git clone https://github.com/gem/oq-engine.git --depth=1

2. Install OpenQuake in development mode
$ cd oq-engine && python3 install.py devel

So unless install.py creates bin directory, there is no bin directory created.

hyeuk@hyeuk-GA:~/openquake/src/oq-engine$ pwd
/home/hyeuk/openquake/src/oq-engine
hyeuk@hyeuk-GA:~/openquake/src/oq-engine$ which python3
/usr/bin/python3
hyeuk@hyeuk-GA:~/openquake/src/oq-engine$ python3 -V
Python 3.6.9
hyeuk@hyeuk-GA:~/openquake/src/oq-engine$ which pip
hyeuk@hyeuk-GA:~/openquake/src/oq-engine$ which pip3
/usr/bin/pip3

Thanks.

Regards,

Hyeuk

Antonio Ettorre

unread,
Mar 18, 2021, 1:25:02 PM3/18/21
to OpenQuake Users
You don't have to create the folder openquake, the installation scripts do that.
I don't understand why you have python 3.6 since on ubuntu 20.04 there is the 3.8, please use python3.8 to run the installation script

Antonio

Michele Simionato

unread,
Mar 19, 2021, 5:15:16 AM3/19/21
to OpenQuake Users


hyeuk@hyeuk-GA:~/openquake/src/oq-engine$ pwd
/home/hyeuk/openquake/src/oq-engine


Keeping the repository inside the directory openquake is a bad idea, since it is a directory meant to be deleted when you reinstall.
Just move the repository in your home, outside  ~/openquake.

 Michele

dyn...@gmail.com

unread,
Mar 20, 2021, 6:49:55 AM3/20/21
to OpenQuake Users
Hi Michele,

I managed to install it after I move the source code out of the openquake directory as you suggested and removed the directory so that the install.py could create the openquake directory. It seems like the script is not working properly with existing openquake folder before the installation.
Thanks.

Regards,
Reply all
Reply to author
Forward
0 new messages