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

Rails 4 on Heroku: web dyno serving old assets, while other serve new

heroku ruby-on-rails-4 assets

This issue has just recently come up in our last several pushes to Heroku since upgrading to Rails 4. My application has two web dynos. What I've been able to find through troubleshooting is that I'm

No such file or Directory error for including header file C

c unix ubuntu header-files

I am trying to include a header file which contains a structure, but when I try to compile the file including the header file, I get No such file or Directory error. Both .c and header file are in ...

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.