Monday, September 6, 2010

Re: AttributeError at /admin/ when logging into the default Admin site.

>     This sounds suspicious to me. There is actually no "installation" procedure for Python stuff. It's all about priority in the sys.path, or PYTHON_PATH, environment variable. So you might experience glitches because some bits of 1.2 are used together with some other bits of 1.0.
>
> Could you please post the content of your sys.path?
>
> -- Fede

Hi Fede,

My sys path is as follows:
['/home/daniel/projects/monitoring/optiver',
'/usr/local/lib/python2.6/dist-packages/python_spidermonkey-0.0.9-
py2.6-linux-x86_64.egg',
'/usr/local/lib/python2.6/dist-packages/RBTools-0.2-py2.6.egg',
'/usr/local/lib/python2.6/dist-packages/testfixtures-1.7.0-
py2.6.egg',
'/usr/local/lib/python2.6/dist-packages/zope.dottedname-3.4.6-
py2.6.egg',
'/usr/lib/python2.6',
'/usr/lib/python2.6/plat-linux2',
'/usr/lib/python2.6/lib-tk',
'/usr/lib/python2.6/lib-old',
'/usr/lib/python2.6/lib-dynload',
'/usr/lib/python2.6/dist-packages',
'/usr/lib/python2.6/dist-packages/PIL',
'/usr/lib/python2.6/dist-packages/gst-0.10',
'/usr/lib/pymodules/python2.6',
'/usr/lib/python2.6/dist-packages/gtk-2.0',
'/usr/lib/pymodules/python2.6/gtk-2.0',
'/usr/local/lib/python2.6/dist-packages',
'/usr/lib/python2.6/dist-packages']

My /usr/local/lib/python2.6/dist-packages looks like: (i've only
included the django components to keep it short)

lrwxrwxrwx 1 root staff 12 2010-08-29 12:17 django ->
django-1.2.1
drwxr-sr-x 17 root staff 4096 2010-05-19 16:32 django-1.1.2
-rw-r--r-- 1 root staff 1032 2010-05-19 16:32 Django-1.1.2.egg-info
drwxr-sr-x 17 root staff 4096 2010-08-29 12:16 django-1.2.1
-rw-r--r-- 1 root staff 1032 2010-08-29 12:16 Django-1.2.1.egg-info

I'm not hugely familiar with how python manages it's installed
packages, but since you asked the question I'm starting to think that
having django installed multiple times like this (even with the django
sim link) could be a problem?

-Daniel

--
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