See if there is a .pth file somehow made pypy specific in /home/wsgi/pypy-1.5/site-packages or /home/wsgi/pypy-1.5 that mentions the PIL package but nothing else.
On Tue, Aug 2, 2011 at 1:19 PM, Dmitry Pisklov <dpisk...@gmail.com> wrote: > Well... > > $ /home/wsgi/pypy-1.5/bin/pypy > Python 2.7.1 (b590cf6de419, Apr 30 2011, 02:00:34) > [PyPy 1.5.0-alpha0 with GCC 4.4.3] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > And now for something completely different: ``yes, but what't the sense of 0 > < > "duran duran"'' >>>>> import sys,pprint >>>>> pprint.pprint(sys.path) > ['', > '/home/wsgi/pypy-1.5/lib_pypy', > '/home/wsgi/pypy-1.5/lib-python/modified-2.7', > '/home/wsgi/pypy-1.5/lib-python/2.7', > '/home/wsgi/pypy-1.5/lib-python/modified-2.7/lib-tk', > '/home/wsgi/pypy-1.5/lib-python/2.7/lib-tk', > '/home/wsgi/pypy-1.5/lib-python/2.7/plat-linux2', > '/home/wsgi/pypy-1.5/site-packages', > '/home/wsgi/pypy-1.5/site-packages/PIL'] >>>>> > > So you're right, it sees only dirs inside its installation dir. But funny > thing is that directory /home/wsgi/pypy-1.5/site-packages is actually > symlink: > > /home/wsgi/pypy-1.5/site-packages -> /usr/share/pyshared/ > > and it points to the python's site-packages. And that PIL (last entry) > exists in the target directory. So I wonder why on earth it sees only PIL > subdir, from helluva lot of others? Even if I set path manually: > > $ export PYTHONPATH=/usr/share/pyshared > $ /home/wsgi/pypy-1.5/bin/pypy > Python 2.7.1 (b590cf6de419, Apr 30 2011, 02:00:34) > [PyPy 1.5.0-alpha0 with GCC 4.4.3] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > And now for something completely different: ``to save a tree, eat a beaver'' >>>>> import pprint, sys >>>>> pprint.pprint(sys.path) > ['', > '/usr/share/pyshared', > '/home/wsgi/pypy-1.5/lib_pypy', > '/home/wsgi/pypy-1.5/lib-python/modified-2.7', > '/home/wsgi/pypy-1.5/lib-python/2.7', > '/home/wsgi/pypy-1.5/lib-python/modified-2.7/lib-tk', > '/home/wsgi/pypy-1.5/lib-python/2.7/lib-tk', > '/home/wsgi/pypy-1.5/lib-python/2.7/plat-linux2', > '/home/wsgi/pypy-1.5/site-packages', > '/home/wsgi/pypy-1.5/site-packages/PIL'] >>>>> > > The same error after that: > > $ /home/wsgi/pypy-1.5/bin/pypy manage.py shell > > Traceback (most recent call last): > File "app_main.py", line 53, in run_toplevel > File "manage.py", line 2, in <module> > from django.core.management import execute_manager > ImportError: No module named django.core > > So I think I'll give up at this point - I now realized that my interest in > pypy come probably too early... > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/JkpNIjkA3qYJ. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.