Hi all,

I'm pretty new to Python so the answer to my problem may be obvious,
but I can't get to this folks.

After installing python2.5 from sources, I switched the symlink in /
usr/bin/python to point to /usr/local/bin/python. When I run a python
shell, everything is OK (it tells I'm on python2.5.1).

I migrated a Django project from a machine running python2.5 to a new
one with python2.4 and now I get an error because I'm using code from
python2.5 syntax not implemented in 2.4. The user-friendly error page
shows a weird message for me:

Request Method:         GET
Request URL:    http://ftpadmin.azalorea.com/gallery/
Exception Type:         AttributeError
Exception Value:        'unicode' object has no attribute 'partition'
Exception Location:     /aplicaciones/nabuco/ftpadmin/gallery/views.py in
index, line 20
Python Executable:      /usr/local/bin/python
Python Version:         2.4.3
Python Path:    ['/aplicaciones/nabuco/', '/usr/lib/python2.4/site-
packages/setuptools-0.6c5-py2.4.egg', '/usr/lib/python2.4/site-
packages/MySQL_python-1.2.2-py2.4-linux-i686.egg', '/usr/lib/
python24.zip', '/usr/lib/python2.4', '/usr/lib/python2.4/plat-linux2',
'/usr/lib/python2.4/lib-tk', '/usr/lib/python2.4/lib-dynload', '/usr/
lib/python2.4/site-packages', '/usr/lib/python2.4/site-packages/PIL',
'/usr/lib/python2.4/site-packages/gtk-2.0']

So it tells that Python Executable is located at /usr/local/bin/python
(which is python2.5) but Python Version is 2.4.3 and so are the paths
in the Python Path...

I am using Apache2 with mod_python, so I first though mod_python
should need to becompiled and reinstalled and so I did. But no.

I also svn checked out another copy of Django trunk and set it at /usr/
local/lib/python2.5/site-packages/ and even moved the 'django' symlink
at the old Django copy at /usr/lib/python2.4/site-packages/ to point
to the new copy. But no.

What am I missing?
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to