mariomarques@mariomarques-desktop:~$ sudo apt-get remove python-oq
[sudo] password for mariomarques:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
vim-gui-common libruby1.8 libreadline5
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
python-oq
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 2,519 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 241645 files and directories currently installed.)
Removing python-oq ...
Processing triggers for python-support ...
mariomarques@mariomarques-desktop:~$ sudo apt-get install python-oq
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
vim-gui-common libruby1.8 libreadline5
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
python-oq
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/488 kB of archives.
After this operation, 2,519 kB of additional disk space will be used.
Selecting previously deselected package python-oq.
(Reading database ... 241304 files and directories currently installed.)
Unpacking python-oq (from .../python-oq_0.6.1-7_all.deb) ...
Setting up python-oq (0.6.1-7) ...
* Restarting PostgreSQL 9.1 database server [ OK ]
dpkg: error processing python-oq (--configure):
subprocess installed post-installation script returned error exit status 3
No apport report written because MaxReports is reached already
Errors were encountered while processing:
python-oq
E: Sub-process /usr/bin/dpkg returned an error code (1)
mariomarques@mariomarques-desktop:~$ openquake --version
Traceback (most recent call last):
File "/usr/bin/openquake", line 73, in <module>
from openquake.utils import config
ImportError: No module named openquake.utils
Hmm, it looks like the openquake package did not get installed properly/fully. I would advise trying this:
$ sudo apt-get remove python-oq$ sudo apt-get install python-oq
Try that, then try $ openquake --version, like before. If it's still not working, copy and paste the output of the installation commands and any new errors which appear.
Thanks,-Lars
On Sun, Apr 29, 2012 at 5:15 PM, Mario <marma...@gmail.com> wrote:
Hi Lars,
Sorry for not having replied yet but I was out of office.
Attached you can find the output print using the two shell commands you ask me to.
I am a recent Ubuntu user and hope this error wasn't because of my misunderstanding.
Cheers,
Mário
On 04/27/2012 09:30 AM, Lars Butler wrote:Hi Mario,
I can't immediately think of the root cause. Can you run the following two shell commands and paste the output of each for me? (If there's a lot of output, it would be best to use pastebin.com.)
$ env$ python -c "import openquake; print openquake.__file__"
Please send the output to me and I'll have a better idea of what is wrong.
Cheers,-Lars
On Thu, Apr 26, 2012 at 9:02 PM, Mario <marma...@gmail.com> wrote:
Dear Lars Butler,
I tried to install OpenQuake in my machine (Ubuntu 11.10), and I've
followed each of the following steps:
1- Install the OpenQuake package
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:openquake/ppa
sudo apt-get update
sudo apt-get install python-oq
2- I've edited with gedit the /.bashrc file adding the following lines
to the end of the file
echo "export MPLCONFIGDIR=/tmp
echo "export JAVA_HOME=/usr/lib/jvm/java-6-openjdk/jre">> $HOME/.bashrc
echo 'export DJANGO_SETTINGS_MODULE="openquake.settings"'>> $HOME/.bashrc
3- I've tried to verify the version with
openquake --version
4- The following message appeared when I did the previous step
ImportError: No module named openquake.utils
I have no idea of what's gone wrong and what I can do to make it works.
Thank you for your help.
Best regards,
Mário Marques