I am attempting to get django working using pypy. I have everything setup and working great under python2.7 and python3.2 is not installed. I then installed pypy and attempted to run django:
Traceback (most recent call last):
File "app_main.py", line 51, in run_toplevel
File "manage.py", line 8, in <module>
from django.core.management import execute_from_command_line
ImportError: No module named django
I noticed that pypy created its own site-packages folder, so I removed that and made a symlink to the site-packages folder in my python2.7 installation. This made no change. I have also noticed that it is not just a django problem, any pip installed package doesn’t work.
python2.7 path:
['', '/usr/lib/python27.zip',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/lib/python2.7/site-packages',
'/usr/lib/python2.7/site-packages/setuptools-0.6c11.egg-info']
pypy path
['', '/opt/pypy/lib_pypy/__extensions__',
'/opt/pypy/lib_pypy',
'/opt/pypy/lib-python/2.7',
'/opt/pypy/lib-python/2.7/lib-tk',
'/opt/pypy/lib-python/2.7/plat-linux2']
Does anyone have any experience with this? Are symlinks allowed in this situation? If not is there something else that is used instead? I also attempted just copying the django folder into the site-packages folder before deleting it but had no success with that either.
Thanks
You really want to create a standalone environment for your web app. I suggest using buildout or virtualenv. Managing system site-packages will bite you everytime.
Good luck!