Re: Digest for openquake-dev@googlegroups.com - 2 Messages in 1 Topic

59 views
Skip to first unread message

Anooshiravan Ansari

unread,
Oct 3, 2013, 8:58:23 AM10/3/13
to openqu...@googlegroups.com
Dear Daniele
Thank you very much for your help. I change my .bashrc file and remove setting for JANGO_SETTINGS_MODULE. Now, openquake
is working but giving the following warning:
 
aansari@aansari-ThinkPad-T410:~$ openquake --version
/usr/bin/openquake:5: UserWarning: Module dap was already imported from None, but /usr/lib/python2.7/dist-packages is being added to sys.path
  from pkg_resources import load_entry_point
1.0.0


However, after running the demo example "01_PointSource", I encountered an error as follow (log file):

[2013-10-03 14:49:30,119 hazard #3 - DEBUG MainProcess/6502 supervisor] Entering supervisor for hazard calc 3
[2013-10-03 14:49:30,132 hazard #3 - DEBUG MainProcess/6502 amqplib] Start from server, version: 8.0, properties: {u'information': u'Licensed under the MPL.  See http://www.rabbitmq.com/', u'product': u'RabbitMQ', u'copyright': u'Copyright (C) 2007-2011 VMware, Inc.', u'capabilities': {}, u'platform': u'Erlang/OTP', u'version': u'2.7.1'}, mechanisms: [u'PLAIN', u'AMQPLAIN'], locales: [u'en_US']
[2013-10-03 14:49:30,133 hazard #3 - DEBUG MainProcess/6502 amqplib] Open OK! known_hosts []
[2013-10-03 14:49:30,133 hazard #3 - DEBUG MainProcess/6502 amqplib] using channel_id: 1
[2013-10-03 14:49:30,134 hazard #3 - DEBUG MainProcess/6502 amqplib] Channel open
[2013-10-03 14:49:31,142 hazard #3 - ERROR MainProcess/6502 supervisor] job process 6501 crashed or terminated
[2013-10-03 14:49:31,200 hazard #3 - DEBUG MainProcess/6502 root] Recording stop time for job 3 to job_stats
[2013-10-03 14:49:31,216 hazard #3 - DEBUG MainProcess/6502 root] Cleaning up after job 3
[2013-10-03 14:49:31,220 hazard #3 - DEBUG MainProcess/6502 amqplib] Closed channel #1

and the following from terminal:

/usr/bin/openquake:5: UserWarning: Module dap was already imported from None, but /usr/lib/python2.7/dist-packages is being added to sys.path
  from pkg_resources import load_entry_point
Traceback (most recent call last):
  File "/usr/bin/openquake", line 9, in <module>
    load_entry_point('openquake.engine==1.0.0', 'console_scripts', 'openquake')()
  File "/usr/lib/python2.7/dist-packages/openquake/engine/bin/oqscript.py", line 623, in main
    args.exports)
  File "/usr/lib/python2.7/dist-packages/openquake/engine/bin/oqscript.py", line 289, in run_hazard
    job, log_level, log_file, exports, 'hazard')
  File "/usr/lib/python2.7/dist-packages/openquake/engine/engine.py", line 354, in run_calc
    kvs.mark_job_as_current(job.id)
  File "/usr/lib/python2.7/dist-packages/openquake/engine/kvs/__init__.py", line 128, in mark_job_as_current
    client = get_client()
  File "/usr/lib/python2.7/dist-packages/openquake/engine/kvs/__init__.py", line 59, in get_client
    db = int(config.get('kvs', 'redis_db'))
TypeError: int() argument must be a string or a number, not 'NoneType'
Traceback (most recent call last):
  File "/usr/bin/openquake", line 9, in <module>
    load_entry_point('openquake.engine==1.0.0', 'console_scripts', 'openquake')()
  File "/usr/lib/python2.7/dist-packages/openquake/engine/bin/oqscript.py", line 623, in main
    args.exports)
  File "/usr/lib/python2.7/dist-packages/openquake/engine/bin/oqscript.py", line 289, in run_hazard
    job, log_level, log_file, exports, 'hazard')
  File "/usr/lib/python2.7/dist-packages/openquake/engine/engine.py", line 370, in run_calc
    supervisor.supervise(job_pid, job.id, log_file=log_file)
  File "/usr/lib/python2.7/dist-packages/openquake/engine/supervising/supervisor.py", line 410, in supervise
    supervisor.run()
  File "/usr/lib/python2.7/dist-packages/openquake/engine/supervising/supervisor.py", line 284, in run
    super(SupervisorLogMessageConsumer, self).run()
  File "/usr/lib/python2.7/dist-packages/openquake/engine/signalling.py", line 89, in run
    self._timeout_callback()
  File "/usr/lib/python2.7/dist-packages/openquake/engine/signalling.py", line 120, in _timeout_callback
    self.timeout_callback()
  File "/usr/lib/python2.7/dist-packages/openquake/engine/supervising/supervisor.py", line 368, in timeout_callback
    cleanup_after_job(self.job_id)
  File "/usr/lib/python2.7/dist-packages/openquake/engine/supervising/supervisor.py", line 111, in cleanup_after_job
    kvs.cache_gc(job_id)
  File "/usr/lib/python2.7/dist-packages/openquake/engine/kvs/__init__.py", line 160, in cache_gc
    client = get_client()
  File "/usr/lib/python2.7/dist-packages/openquake/engine/kvs/__init__.py", line 59, in get_client
    db = int(config.get('kvs', 'redis_db'))
TypeError: int() argument must be a string or a number, not 'NoneType'
Calculation 4 failed


I will be so thankful if you can help me in this regard.
Regards,
Anoosh



On Thu, Oct 3, 2013 at 3:02 PM, <openqu...@googlegroups.com> wrote:

Group: http://groups.google.com/group/openquake-dev/topics

    Anooshiravan Ansari <anooshira...@gmail.com> Oct 03 11:16AM +0300  

    I have just reinstall the openquake to update it from version 0.8 to 1.0 in
    Ubuntu.
    I successfully did that. However, I receive the following error when
    running openquake in terminal:
     
    I use Ubuntu 12.04
     
    aansari@aansari-ThinkPad-T410:~$ openquake --version
    /usr/bin/openquake:5: UserWarning: Module dap was already imported from
    None, but /usr/lib/python2.7/dist-packages is being added to sys.path
    from pkg_resources import load_entry_point
    Traceback (most recent call last):
    File "/usr/bin/openquake", line 9, in <module>
    load_entry_point('openquake.engine==1.0.0', 'console_scripts',
    'openquake')()
    File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 337, in
    load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
    File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2279, in
    load_entry_point
    return ep.load()
    File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1989, in
    load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
    File "/usr/lib/python2.7/dist-packages/openquake/engine/bin/oqscript.py",
    line 88, in <module>
    from openquake.engine.db.models import set_django_settings_module
    File "/usr/lib/python2.7/dist-packages/openquake/engine/db/models.py",
    line 47, in <module>
    from django.db import transaction, connections
    File "/usr/lib/python2.7/dist-packages/django/db/__init__.py", line 14,
    in <module>
    if not settings.DATABASES:
    File "/usr/lib/python2.7/dist-packages/django/utils/functional.py", line
    276, in __getattr__
    self._setup()
    File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 42,
    in _setup
    self._wrapped = Settings(settings_module)
    File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 89,
    in __init__
    raise ImportError("Could not import settings '%s' (Is it on sys.path?):
    %s" % (self.SETTINGS_MODULE, e))
    ImportError: Could not import settings 'openquake.settings' (Is it on
    sys.path?): No module named settings
     
    could anyone help me to fix the problem please?
     
    --
    *A. Ansari*
    Assistant Professor
    International Institute of Earthquake Eng. and Seismology (*IIEES*)

     

    "Daniele Viganò" <dan...@openquake.org> Oct 03 03:10AM -0700  

    Dear OpenQuake user,
    you need to check your environment settings (usually set in ~/.profile) and
    remove the DJANGO_SETTINGS_MODULE environment variable.
     
    Can you paste the output of the "env" command?
     
    Thanks
    Daniele
     
    On Thursday, October 3, 2013 10:16:27 AM UTC+2, Anooshiravan(IIEES) wrote:

     

--
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.



--
A. Ansari
Assistant Professor
International Institute of Earthquake Eng. and Seismology (IIEES)

Daniele Viganò

unread,
Oct 7, 2013, 3:22:11 AM10/7/13
to openqu...@googlegroups.com
Dear Anooshiravan,

I just see your other topic about the installation of OpenQuake 1.0. but let me respond also to this. It could be useful for other users.

Lot of changes happened between OpenQuake 0.8.0 and 1.0.0 so, if the standard upgrade procedure (apt-get upgrade) doesn't work, you can try doing:

sudo apt-get remove --purge python-oq-*
sudo apt-get update
sudo apt-get install python-oq-engine

Regards,
Daniele
Reply all
Reply to author
Forward
0 new messages