demos

39 views
Skip to first unread message

Mohamed El-Gabry

unread,
Feb 4, 2012, 11:10:49 AM2/4/12
to openqu...@googlegroups.com
Dear OQers
I Just installed openquake on ubuntu 11,04 machine and when I try to
run of the demos

$ openquake --config_file demos/simple_fault_demo_hazard/config.gem
--output_type=xml

I receive this error

Traceback (most recent call last):
File "/usr/bin/openquake", line 122, in <module>
from openquake import job
File "/usr/lib/pymodules/python2.7/openquake/job/__init__.py", line
27, in <module>
from django.db import transaction, close_connection
File "/usr/lib/pymodules/python2.7/django/db/__init__.py", line 14,
in <module>
if not settings.DATABASES:
File "/usr/lib/pymodules/python2.7/django/utils/functional.py", line
276, in __getattr__
self._setup()
File "/usr/lib/pymodules/python2.7/django/conf/__init__.py", line
38, in _setup
raise ImportError("Settings cannot be imported, because
environment variable %s is undefined." % ENVIRONMENT_VARIABLE)
ImportError: Settings cannot be imported, because environment variable
DJANGO_SETTINGS_MODULE is undefined.
-----------------------------------------

Muharem Hrnjadovic

unread,
Feb 4, 2012, 4:50:54 PM2/4/12
to openqu...@googlegroups.com, Mohamed El-Gabry
Assalamu aleykum Mohamed,

please define the following shell environment variables and try again:

export MPLCONFIGDIR=/tmp
export JAVA_HOME=/usr/lib/jvm/java-6-openjdk/jre
export DJANGO_SETTINGS_MODULE="openquake.settings"

Best regards/Mit freundlichen Gr��en

--
Muharem Hrnjadovic <m...@foldr3.com>
Public key id : B2BBFCFC
Key fingerprint : A5A3 CC67 2B87 D641 103F 5602 219F 6B60 B2BB FCFC

Mohamed El-Gabry

unread,
Feb 5, 2012, 10:00:04 AM2/5/12
to openqu...@googlegroups.com
We Alykom eslam
Thanks Muharm it's working now.
Best Regards
Salam
Mohamed

> Best regards/Mit freundlichen Grüßen


>
> --
> Muharem Hrnjadovic <m...@foldr3.com>
> Public key id   : B2BBFCFC
> Key fingerprint : A5A3 CC67 2B87 D641 103F  5602 219F 6B60 B2BB FCFC

--
*******************************
Mohamed Nabil El-Gabry
National Research Institute of Astronomy and
Geophysics, NRIAG, Elmarsad St., Helwan, Cairo, Egypt
Postal no.: 11421
Tel(office) : +202-25549708 (Ext: 290)
Fax : +202-25548020
Tel(mobile): +2 0105850033
*******************************

Mohamed El-Gabry

unread,
Feb 27, 2012, 12:30:52 PM2/27/12
to openqu...@googlegroups.com
Dear Muharem
Aslam Alykom.
Sorry for bothering you again
But I would like to know whether OQ do perform smoothed seismicity
assessment (Fankel 1995).
I need to know if openquake allow zone free calculation or smoothing
seismicity or not.
Also I would like to ask about irc channel whether is it still running or not
Thanks for all
Mohamed,

On Sat, Feb 4, 2012 at 10:50 PM, Muharem Hrnjadovic <m...@foldr3.com> wrote:

> Best regards/Mit freundlichen Grüßen


>
> --
> Muharem Hrnjadovic <m...@foldr3.com>
> Public key id   : B2BBFCFC
> Key fingerprint : A5A3 CC67 2B87 D641 103F  5602 219F 6B60 B2BB FCFC

--

Lars Butler

unread,
Feb 27, 2012, 2:14:28 PM2/27/12
to openqu...@googlegroups.com
Hi Mohamed,

The IRC channel is still running. You can find us on irc.freenode.net. The channel name is #openquake.

I will have to defer to one of our hazard scientists to answer your question about smooth seismicity.

Cheers,
-Lars

Muharem Hrnjadovic

unread,
Feb 27, 2012, 2:15:21 PM2/27/12
to openqu...@googlegroups.com, Mohamed El-Gabry, Damiano Monelli
On 02/27/2012 06:30 PM, Mohamed El-Gabry wrote:
> Dear Muharem
> Aslam Alykom.
wa aleykum selaam :-)

> Sorry for bothering you again

No problem.

> But I would like to know whether OQ do perform smoothed seismicity
> assessment (Fankel 1995).
> I need to know if openquake allow zone free calculation or smoothing
> seismicity or not.

That I cannot answer, but will ask our hazard scientist Dr. Damiano
Monelli to comment on this.

> Also I would like to ask about irc channel whether is it still running or not

Yes, the irc channel is live and operational.

signature.asc

Marco Pagani

unread,
Feb 28, 2012, 5:04:33 PM2/28/12
to openqu...@googlegroups.com, Muharem Hrnjadovic, Mohamed El-Gabry, Damiano Monelli
Dear Mohamed,

the modellers' toolkit (that's where you should expect to find something
similar to the Frankel's method for the calculation of smoothed
seismicity) currently doesn't contain this methodology. We're planning
to add this feature within the next few months.

On the contrary, Openquake already support seismic sources representing
distributed seismicity by means of a grid (i.e. the result of the
smoothing procedure)
as explained in the OQ book (perhaps not clearly) at page 32.

Kind regards,
Marco

> On 02/27/2012 06:30 PM, Mohamed El-Gabry wrote:
>> Dear Muharem
>> Aslam Alykom.
> wa aleykum selaam :-)
>
>> Sorry for bothering you again
> No problem.
>
>> But I would like to know whether OQ do perform smoothed seismicity
>> assessment (Fankel 1995).
>> I need to know if openquake allow zone free calculation or smoothing
>> seismicity or not.
> That I cannot answer, but will ask our hazard scientist Dr. Damiano
> Monelli to comment on this.
>
>> Also I would like to ask about irc channel whether is it still running or not
> Yes, the irc channel is live and operational.
>

> Best regards/Mit freundlichen Gr��en
>

Mohamed El-Gabry

unread,
Feb 29, 2012, 5:25:31 AM2/29/12
to openqu...@googlegroups.com
thanks Marco for your answer and looking forward for the new features
Best Regards
Mohamed

>> Best regards/Mit freundlichen Grüßen

Mohamed El-Gabry

unread,
Apr 24, 2012, 11:32:29 AM4/24/12
to openqu...@googlegroups.com
I have new instalation for openquake on ubuntu 11.10 the installation
went well but when running an example I get


elgabry@:/usr/openquake$ openquake --config_file
demos/simple_fault_demo_hazard/config.gem --output_type=xml

Ignoring GMF_RANDOM_SEED in classical, it's meaningful only in
scenario, event_based


Traceback (most recent call last):

File "/usr/bin/openquake", line 163, in <module>
args.config_file, user_name=getpass.getuser())
File "/usr/lib/pymodules/python2.7/openquake/engine.py", line 830,
in import_job_profile
job_profile = _prepare_job(params, sections, user_name)
File "/usr/lib/pymodules/python2.7/django/db/transaction.py", line
217, in inner
res = func(*args, **kwargs)
File "/usr/lib/pymodules/python2.7/openquake/engine.py", line 591,
in _prepare_job
job_profile = _get_job_profile(input_set, calc_mode, job_type, owner)
File "/usr/lib/pymodules/python2.7/django/db/transaction.py", line
217, in inner
res = func(*args, **kwargs)
File "/usr/lib/pymodules/python2.7/openquake/engine.py", line 567,
in _get_job_profile
job_profile.save()
File "/usr/lib/pymodules/python2.7/django/db/models/base.py", line
460, in save
self.save_base(using=using, force_insert=force_insert,
force_update=force_update)
File "/usr/lib/pymodules/python2.7/django/db/models/base.py", line
553, in save_base
result = manager._insert(values, return_id=update_pk, using=using)
File "/usr/lib/pymodules/python2.7/django/db/models/manager.py",
line 195, in _insert
return insert_query(self.model, values, **kwargs)
File "/usr/lib/pymodules/python2.7/django/db/models/query.py", line
1436, in insert_query
return query.get_compiler(using=using).execute_sql(return_id)
File "/usr/lib/pymodules/python2.7/django/db/models/sql/compiler.py",
line 791, in execute_sql
cursor = super(SQLInsertCompiler, self).execute_sql(None)
File "/usr/lib/pymodules/python2.7/django/db/models/sql/compiler.py",
line 735, in execute_sql
cursor.execute(sql, params)
File "/usr/lib/pymodules/python2.7/django/db/backends/postgresql_psycopg2/base.py",
line 44, in execute
return self.cursor.execute(query, args)
django.db.utils.DatabaseError: invalid byte sequence for encoding "UTF8": 0x00

Muharem Hrnjadovic

unread,
Apr 24, 2012, 1:16:05 PM4/24/12
to openqu...@googlegroups.com, Mohamed El-Gabry
Assalamu aleykum Mohamed,

please see "Django 1.3 and standard_conforming_string" on

http://wildfish.com/blog/2011/11/9/installing-postgis-ubuntu/

[..]

Wassalam,

signature.asc

Muharem Hrnjadovic

unread,
Apr 24, 2012, 1:17:51 PM4/24/12
to openqu...@googlegroups.com, Mohamed El-Gabry
Also,

please see "Post-installation chores" on
https://github.com/gem/oq-engine/wiki/Ubuntu-11.10

On 04/24/2012 05:32 PM, Mohamed El-Gabry wrote:


Wassalam,

signature.asc

Mohamed El-Gabry

unread,
Apr 25, 2012, 3:00:49 PM4/25/12
to openqu...@googlegroups.com
We alykom eslam
Thanks Muharem again. Gazak Allah Khieran
Salam
Mohamed
Reply all
Reply to author
Forward
0 new messages