a problem in updating opnequake

47 views
Skip to first unread message

Anooshiravan Ansari

unread,
Oct 3, 2013, 4:16:27 AM10/3/13
to openqu...@googlegroups.com
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ò

unread,
Oct 3, 2013, 6:10:40 AM10/3/13
to openqu...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages