Skip to content

Instantly share code, notes, and snippets.

@stevenvergenz
Created August 22, 2013 17:30
Show Gist options
  • Save stevenvergenz/6310293 to your computer and use it in GitHub Desktop.
Save stevenvergenz/6310293 to your computer and use it in GitHub Desktop.
LRS error
(env)[root@vm-lrs ADL_LRS_1.0]# python
Python 2.6.6 (r266:84292, Jul 10 2013, 22:48:45)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/opt/env/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg', '/opt/env/lib/python2.6/site-packages/pip-1.3.1-py2.6.egg', '/opt/env/lib64/python26.zip', '/opt/env/lib64/python2.6', '/opt/env/lib64/python2.6/plat-linux2', '/opt/env/lib64/python2.6/lib-tk', '/opt/env/lib64/python2.6/lib-old', '/opt/env/lib64/python2.6/lib-dynload', '/usr/lib64/python2.6', '/usr/lib/python2.6', '/opt/env/lib/python2.6/site-packages']
>>> quit()
(env)[root@vm-lrs ADL_LRS_1.0]# fab setup_lrs
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/fabric/main.py", line 739, in main
*args, **kwargs
File "/usr/lib/python2.6/site-packages/fabric/tasks.py", line 353, in execute
results['<local-only>'] = task.run(*args, **new_kwargs)
File "/usr/lib/python2.6/site-packages/fabric/tasks.py", line 123, in run
return self.wrapped(*args, **kwargs)
File "/opt/ADL_LRS_1.0/fabfile.py", line 34, in setup_lrs
adldir = settings.MEDIA_ROOT
File "/usr/lib/python2.6/site-packages/django/utils/functional.py", line 184, in inner
self._setup()
File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 42, in _setup
self._wrapped = Settings(settings_module)
File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 95, in __init__
raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
ImportError: Could not import settings 'adl_lrs.settings' (Is it on sys.path?): No module named unipath
@anshuaggarwal
Copy link

Steven, did you ever resolve this? I am stuck at this error now...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment