python USER_BASE error

I am using python 2.6 and trying to install django tagging package and i get this error below.I am installing few python 2.4 packages on a 64 bit machine which already has python2.6.

How to resolve this error

 [root@tom django-tagging-0.3.1]# python setup.py install
 Traceback (most recent call last):
 File "setup.py", line 5, in <module>
 from distutils.command.install import INSTALL_SCHEMES
 File "/usr/lib64/python2.6/distutils/command/install.py", line 21, in <module>
 from site import USER_BASE
 ImportError: cannot import name USER_BASE

EDIT 1

[root@tom django-tagging-0.3.1]# python2.6 setup.py install
Traceback (most recent call last):
File "setup.py", line 5, in <module>
from distutils.command.install import INSTALL_SCHEMES
File "/usr/lib64/python2.6/distutils/command/install.py", line 21, in <module>
from site import USER_BASE
ImportError: cannot import name USER_BASE

EDIT2

>>> from distutils.sysconfig import get_python_lib
>>> print(get_python_lib())
/usr/lib/python2.6/site-packages

EDIT3

>>> import site ; print site
<module 'site' from '/opt/mysite/site/__init__.pyc'>

Answers


You've called one of your Django apps "site". This is shadowing the site module in the stdlib. Rename it.


Need Your Help

How to cause a WCF service channel to enter a faulty state?

.net wcf

I tried timeouts and throwing exceptions in the service implementation, but it didn't caused the channel to enter a faulty state as it happens in my production code.

Compiling FreeBSD utility from source with debugging symbols

debugging gdb freebsd

I would like to compile the following FreeBSD utility from source: https://svnweb.freebsd.org/base/stable/9/sbin/routed/

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.