Django 1.10 with Python 3.5 on Mac with Fink

27 views
Skip to first unread message

Alan

unread,
Jan 30, 2017, 5:50:47 PM1/30/17
to django...@googlegroups.com
So I installed django 1.10 and then when I try to do this;

python3.5 -m django --version  

Traceback (most recent call last):
  File "/sw/lib/python3.5/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/sw/lib/python3.5/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/sw/lib/python3.5/site-packages/django/__main__.py", line 9, in <module>
    management.execute_from_command_line()
  File "/sw/lib/python3.5/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
    utility.execute()
  File "/sw/lib/python3.5/site-packages/django/core/management/__init__.py", line 316, in execute
    settings.INSTALLED_APPS
  File "/sw/lib/python3.5/site-packages/django/conf/__init__.py", line 53, in __getattr__
    self._setup(name)
  File "/sw/lib/python3.5/site-packages/django/conf/__init__.py", line 41, in _setup
    self._wrapped = Settings(settings_module)
  File "/sw/lib/python3.5/site-packages/django/conf/__init__.py", line 97, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/sw/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 944, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 956, in _find_and_load_unlocked
ImportError: No module named 'ccpngrid'

I don't even have PYTHONPATH set, I don't have any idea why is trying to import a module like 'ccpngrid' (which the closest thing related to python is that it is a django app within my Eclipse workspace, and no, I am not within these folders).

So, I can at least try to start to sort this issue?

Thanks,

Alan

--
Alan Wilter SOUSA da SILVA, DSc
Senior Bioinformatician, UniProt
European Bioinformatics Institute (EMBL-EBI)
European Molecular Biology Laboratory
Wellcome Trust Genome Campus
Hinxton
Cambridge CB10 1SD
United Kingdom

Alan

unread,
Jan 31, 2017, 6:37:00 AM1/31/17
to django...@googlegroups.com
Found the problem, a old wrongly set DJANGO_SETTINGS_MODULE pointing to the offending module.
Reply all
Reply to author
Forward
0 new messages