Group: http://groups.google.com/group/openquake-dev/topics
- a problem in updating opnequake [2 Updates]
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.