Monday, November 29, 2010

Installing on Ubuntu Python 2.6- Install failure

When installing django from an official release tarball onto Ubuntu
10.04 python 2.6, (python setup.py install) it installs to
/usr/local/lib/python2.6/dist-packages/ rather than
/usr/lib/python2.6/dist-packages (as reported by python -c "from
distutils.sysconfig import get_python_lib; print get_python_lib()").

Is this expected behaviour? If so, the install instructions and
tutorial will need to be updated. How should django best be imported
into a running python interpreter in this case? import django
returns:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named django

I solved the problem by doing python setup.py build then manually
copying build/django into /usr/local/lib/python2.6/dist-packages, but
that is not a very user friendly procedure.

Is this an Ubuntu/python 2.6 specific issue? Should the install
instructions be updated or is this a bug in the packaging?

Regards,
Tim Bowden

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment