OpenQuake installation via Ubuntu repo

59 views
Skip to first unread message

Reagan Chandramohan

unread,
Mar 9, 2018, 6:22:26 AM3/9/18
to OpenQuake Users
Hi

I've been using OpenQuake installed via the Ubuntu repository ppa:openquake/ppa on Linux Mint for many months now.

Over the last week or so, a package update seems to have broken the OpenQuake installation. Removing all packages installed via the repo and reinstalling the python-oq-engine package produces the following:

% sudo apt-get install python-oq-engine
[sudo] password for reagan:
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following additional packages will be installed:
  liboq-python3.5-minimal liboq-python3.5-stdlib oq-python3.5 oq-python3.5-minimal python3-oq-engine
  python3-oq-libs
Suggested packages:
  oq-python3.5-venv oq-python3.5-doc python3-oq-libs-extra
The following NEW packages will be installed:
  liboq-python3.5-minimal liboq-python3.5-stdlib oq-python3.5 oq-python3.5-minimal python-oq-engine
  python3-oq-engine python3-oq-libs
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 100 MB of archives.
After this operation, 770 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://ppa.launchpad.net/openquake/ppa/ubuntu xenial/main amd64 liboq-python3.5-minimal amd64 3.5.3-1ubuntu0~gem02~xenial01 [576 kB]
Get:2 http://ppa.launchpad.net/openquake/ppa/ubuntu xenial/main amd64 oq-python3.5-minimal amd64 3.5.3-1ubuntu0~gem02~xenial01 [1,656 kB]
Get:3 http://ppa.launchpad.net/openquake/ppa/ubuntu xenial/main amd64 liboq-python3.5-stdlib amd64 3.5.3-1ubuntu0~gem02~xenial01 [2,265 kB]
Get:4 http://ppa.launchpad.net/openquake/ppa/ubuntu xenial/main amd64 oq-python3.5 amd64 3.5.3-1ubuntu0~gem02~xenial01 [1,219 kB]
Get:5 http://ppa.launchpad.net/openquake/ppa/ubuntu xenial/main amd64 python3-oq-libs amd64 1.6.0 [67.6 MB]      
Get:6 http://ppa.launchpad.net/openquake/ppa/ubuntu xenial/main amd64 python3-oq-engine all 2.9.0-1~xenial02 [26.9 MB]
Get:7 http://ppa.launchpad.net/openquake/ppa/ubuntu xenial/main amd64 python-oq-engine all 2.9.0-1~xenial02 [48.1 kB]
Fetched 100 MB in 10min 40s (157 kB/s)                                                                           
Preconfiguring packages ...
Selecting previously unselected package liboq-python3.5-minimal:amd64.
(Reading database ... 1488584 files and directories currently installed.)
Preparing to unpack .../liboq-python3.5-minimal_3.5.3-1ubuntu0~gem02~xenial01_amd64.deb ...
Unpacking liboq-python3.5-minimal:amd64 (3.5.3-1ubuntu0~gem02~xenial01) ...
Selecting previously unselected package oq-python3.5-minimal.
Preparing to unpack .../oq-python3.5-minimal_3.5.3-1ubuntu0~gem02~xenial01_amd64.deb ...
Unpacking oq-python3.5-minimal (3.5.3-1ubuntu0~gem02~xenial01) ...
Selecting previously unselected package liboq-python3.5-stdlib:amd64.
Preparing to unpack .../liboq-python3.5-stdlib_3.5.3-1ubuntu0~gem02~xenial01_amd64.deb ...
Unpacking liboq-python3.5-stdlib:amd64 (3.5.3-1ubuntu0~gem02~xenial01) ...
Selecting previously unselected package oq-python3.5.
Preparing to unpack .../oq-python3.5_3.5.3-1ubuntu0~gem02~xenial01_amd64.deb ...
Unpacking oq-python3.5 (3.5.3-1ubuntu0~gem02~xenial01) ...
Selecting previously unselected package python3-oq-libs.
Preparing to unpack .../python3-oq-libs_1.6.0_amd64.deb ...
Unpacking python3-oq-libs (1.6.0) ...
Selecting previously unselected package python3-oq-engine.
Preparing to unpack .../python3-oq-engine_2.9.0-1~xenial02_all.deb ...
Unpacking python3-oq-engine (2.9.0-1~xenial02) ...
Selecting previously unselected package python-oq-engine.
Preparing to unpack .../python-oq-engine_2.9.0-1~xenial02_all.deb ...
Unpacking python-oq-engine (2.9.0-1~xenial02) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for desktop-file-utils (0.22+linuxmint1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Setting up liboq-python3.5-minimal:amd64 (3.5.3-1ubuntu0~gem02~xenial01) ...
Setting up oq-python3.5-minimal (3.5.3-1ubuntu0~gem02~xenial01) ...
update-binfmts: warning: unable to open /usr/share/binfmts/oq-python3.5: No such file or directory
update-binfmts: warning: couldn't find information about 'oq-python3.5' to import
update-binfmts: exiting due to previous errors
dpkg: error processing package oq-python3.5-minimal (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up liboq-python3.5-stdlib:amd64 (3.5.3-1ubuntu0~gem02~xenial01) ...
dpkg: dependency problems prevent configuration of oq-python3.5:
 oq-python3.5 depends on oq-python3.5-minimal (= 3.5.3-1ubuntu0~gem02~xenial01); however:
  Package oq-python3.5-minimal is not configured yet.

dpkg: error processing package oq-python3.5 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-oq-libs:
 python3-oq-libs depends on oq-python3.5; however:
  Package oq-python3.5 is not configured yet.

dpkg: error processing package python3-oq-libs (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-oq-engine:
 python3-oq-engine depends on python3-oq-libs (>= 1.6.0~); however:
  Package python3-oq-libs is not configured yet.

dpkg: error processing package python3-oq-engine (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-oq-engine:
 python-oq-engine depends on python3-oq-engine; however:
  Package python3-oq-engine is not configured yet.

dpkg: error processing package python-oq-engine (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 oq-python3.5-minimal
 oq-python3.5
 python3-oq-libs
 python3-oq-engine
 python-oq-engine
E: Sub-process /usr/bin/dpkg returned an error code (1)


So I'm currently unable to re-install OpenQuake via the repository.

Alternatively, if I try to use OpenQuake via Python by checking out the source from Github and importing it as a module, it seems to get hung at the return command in line 52 of the file oq-engine/openquake/commonlib/logs.py that reads res = sock.send((action,) + args)

Could you please help troubleshoot the issue with the package installation, as well as the the trouble with the code hanging in the zeromq.py file?

Thanks a lot!

Reagan

Daniele Viganò

unread,
Mar 9, 2018, 8:02:44 AM3/9/18
to openqua...@googlegroups.com

Dear Regan,


On 03/09/2018 12:22 PM, Reagan Chandramohan wrote:
[cut]


So I'm currently unable to re-install OpenQuake via the repository.
while we investigate your issue you can use an older version of the Engine (let's say 2.8) disabling the main PPA and using this one instead: https://launchpad.net/~openquake/+archive/ubuntu/release-2.8:apt remove --purge python-oq.*
add-apt-repository --remove ppa:openquake/ppa
add-apt-repository ppa:openquake/release-2.8
apt install python-oq-engine

Alternatively, if I try to use OpenQuake via Python by checking out the source from Github and importing it as a module, it seems to get hung at the return command in line 52 of the file oq-engine/openquake/commonlib/logs.py that reads res = sock.send((action,) + args)

How did you tried to load the Engine 'as a module'? That part of the code should be used only when the Engine is executed as a standalone software and anyway it requires the DbServer to be up and running.

Daniele

--
DANIELE VIGANÒ | System Administrator | Skype dennyv85 | +39 0382 5169882
GLOBAL EARTHQUAKE MODEL | working together to assess risk

Matteo Nastasi

unread,
Mar 9, 2018, 10:07:25 AM3/9/18
to openqua...@googlegroups.com
Hi Reagan,  thank you for the report.

We probably found the problem, if the fix is effective and without
regressions, we will update our official repositories at the beginning
of next week.

Regards, Matteo.

On 09/03/2018 14:02, Daniele Viganò wrote:
>
> Dear Reagan,
>
>
> On 03/09/2018 12:22 PM, Reagan Chandramohan wrote:
>> [cut]
>>
>> So I'm currently unable to re-install OpenQuake via the repository.
> while we investigate your issue you can use an older version of the
> Engine (let's say 2.8) disabling the main PPA and using this one
> instead:
> https://launchpad.net/~openquake/+archive/ubuntu/release-2.8:apt
> remove --purge python-oq.*
> add-apt-repository --remove ppa:openquake/ppa
> add-apt-repository ppa:openquake/release-2.8
> apt install python-oq-engine
>>
>> Alternatively, if I try to use OpenQuake via Python by checking out
>> the source from Github and importing it as a module, it seems to get
>> hung at the return command in line 52 of the file
>> oq-engine/openquake/commonlib/logs.py that reads res =
>> sock.send((action,) + args)
>
> How did you tried to load the Engine 'as a module'? That part of the
> code should be used only when the Engine is executed as a standalone
> software and anyway it requires the DbServer to be up and running.
>
> Daniele
>
> --
> *DANIELE VIGANÒ* | System Administrator | *Skype* dennyv85 | +39 0382
> 5169882
> *GLOBAL EARTHQUAKE MODEL* | working together to assess risk
> *GEM - *globalquakemodel.org <http://www.globalquakemodel.org/> | *T -
> *@GEMwrld <http://twitter.com/GEMwrld> | *F - *GEMwrld
> <http://www.facebook.com/GEMwrld>
> --
> 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
> <mailto:openquake-use...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

--
MATTEO NASTASI | Senior Software Engineer | +39-0382-5169865

Matteo Nastasi

unread,
Mar 12, 2018, 4:39:58 AM3/12/18
to openqua...@googlegroups.com
Hi again Reagan,

we updated our repository with a fixed version of oq-python3.5 related
packages.

Could you try again to install OpenQuake engine from our main repository
(ppa:openquake/ppa) ?

Regards, Matteo.
--
Message has been deleted

reag...@gmail.com

unread,
Mar 13, 2018, 11:21:24 PM3/13/18
to OpenQuake Users
@Matteo - Thanks a bunch. This seems to have fixed my issue.

@Daniele - I was running the calculation using the following command: openquake.engine.engine.run_calc(job_id, oqparam, 'info', None, 'xml'). In hindsight, this was probably just indirectly invoking the engine; so sorry if my previous comment was misleading.
Reply all
Reply to author
Forward
0 new messages