ImportError: No module named core in django 1.5.5

375 views
Skip to first unread message

Alex Scoble

unread,
Mar 18, 2014, 5:32:01 PM3/18/14
to django...@googlegroups.com
Hi All,

Running CentOS 6.4 with python 2.6.6 and django 1.5.5

Doing this at prompt works: python -c 'import django; print django.VERSION'
Returns: (1, 5, 5, 'final', 0)

However, running django-admin.py or 
import django
from django.core.management import execute_from_command_line
when in Python result in errors such as
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/django/bin/django-admin.py", line 2, in <module>
    from django.core import management
ImportError: No module named core

or 

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named core.management

Django 1.5.4 was running fine on this box. I'm not using virtual environments and it doesn't look like those are required for what I'm doing (running webvirtmgr https://github.com/retspen/webvirtmgr ). I've uninstalled and reinstalled django using pip and still have same issues.

Any ideas on what to check?

Thanks,

Alex

Alex Scoble

unread,
Mar 19, 2014, 5:24:58 PM3/19/14
to django...@googlegroups.com
Never mind on this one. Ended up creating a virtual environment and running django in that and it's working now.

Thanks,

Alex
Reply all
Reply to author
Forward
0 new messages