problem with new version of openquake

53 views
Skip to first unread message

hasan mousavi

unread,
Jun 27, 2013, 2:45:26 AM6/27/13
to openqu...@googlegroups.com
Dear Developers,
I had openquake version 0.8.3. previously and i work with it.
I fully installed new version of software from: https://github.com/gem/oq-engine/wiki/Installing-the-OpenQuake-Engine-from-source-code yesterday but it isn't run.


hasan@hasan-Vostro-1400:~$ openquake --help
openquake: command not found


All procedures were fully installed but, the feedback of the last step (Patch Django) is as bellow:

hasan@hasan-Vostro-1400:~$ patch /usr/lib/python2.7/dist-packages/django/contrib/gis/db/backends/postgis/adapter.py ./postgis-adapter-2.patch
patching file /usr/lib/python2.7/dist-packages/django/contrib/gis/db/backends/postgis/adapter.py
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file /usr/lib/python2.7/dist-packages/django/contrib/gis/db/backends/postgis/adapter.py.rej
patch: **** Can't rename file /tmp/prz2Xae3 to /usr/lib/python2.7/dist-packages/django/contrib/gis/db/backends/postgis/adapter.py.rej : Permission denied
hasan@hasan-Vostro-1400:~$ patch `python -c "import django; from os import path; print path.dirname(django.__file__)"`/contrib/gis/db/backends/postgis/adapter.py ./postgis-adapter-2.patch
patching file /usr/lib/python2.7/dist-packages/django/contrib/gis/db/backends/postgis/adapter.py
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file /usr/lib/python2.7/dist-packages/django/contrib/gis/db/backends/postgis/adapter.py.rej
patch: **** Can't rename file /tmp/pr5FodP7 to /usr/lib/python2.7/dist-packages/django/contrib/gis/db/backends/postgis/adapter.py.rej : Permission denied
hasan@hasan-Vostro-1400:~$

I am not sure how to solve this problem. Please advice.

Thank you for your assistance.

Hasan

Lars Butler

unread,
Jun 27, 2013, 2:54:56 AM6/27/13
to openqu...@googlegroups.com
Hi Hasan,

Try running the `patch` commands as sudo. For example: 

$ sudo patch /usr/lib/python2.7/dist-packages/django/contrib/gis/db/backends/postgis/adapter.py ./postgis-adapter-2.patch

That should help.

Cheers,
-Lars


--
You received this message because you are subscribed to the Google Groups "OpenQuake Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openquake-de...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

hasan mousavi

unread,
Jun 27, 2013, 3:16:12 AM6/27/13
to openqu...@googlegroups.com
Hi Lars

Thank you for your guidance
I run the `patch` commands as bellow, but openquake isn't run.


root@hasan-Vostro-1400:~# patch /usr/lib/python2.7/dist-packages/django/contrib/gis/db/backends/postgis/adapter.py ./postgis-adapter-2.patch

patching file /usr/lib/python2.7/dist-packages/django/contrib/gis/db/backends/postgis/adapter.py
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file /usr/lib/python2.7/dist-packages/django/contrib/gis/db/backends/postgis/adapter.py.rej
root@hasan-Vostro-1400:~# openquake --help
openquake: command not found

Please advise if anything else comes to your mind

hasan

Jesús Gómez

unread,
Jun 28, 2013, 10:25:55 AM6/28/13
to openqu...@googlegroups.com
Just to let you note that The bug related to the Django Patch was closed by a core developer says: "... should be fixed in 1.4  should be fixed in 1.4. If you really think you've hit a bug, please open a new ticket (optionally referencing this one) with a full traceback."[1]. If you didn't already did or the issue is not fixed in 1.4+, maybe is a good idea to open the new ticket as suggested.



2013/6/27 hasan mousavi <s_hasan...@yahoo.com>
Reply all
Reply to author
Forward
0 new messages