Working on a django project I cloned into and I'm trying to run an initial syncdb in my virtualenv. When I do, it throws
ImportError: No module named importlib
What's really perplexing to me is this: I specifically ran
pip install importlib
Requirement already up-to-date: importlib in /Users/virtualenv/lib/python2.6/site-packages
ok, so it's probably not on my python path, so I've made sure it's been added:
$ >>> import sys
$ >>> sys.path.insert(0, "/Users/virtualenv/lib/python2.6/site-packages")
$ >>> sys.path.insert(0, "/Users/virtualenv/lib/python2.6/site-packages/importlib")
now, if I import importlib it's there
$ >>> print importlib
<module 'importlib' from '/Users/virtualenv/lib/python2.6/site-packages/importlib/__init__.pyc'>
but if I run $ python manage.py syncdb it continues to give me the ImportError. Any thoughts on further tests I can run or what might be causing this? thanks
Django version is 1.5.3, Python version within the virtualenv is 2.6.8
>>> print sys.version
2.6.8 (unknown, Apr 19 2012, 01:24:00)