LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-05-2011, 02:12 PM   #1
x201s
Member
 
Registered: Dec 2010
Posts: 67

Rep: Reputation: 0
Python: setuptools-0.6c11-py2.6.egg-info install error


It all began when I wanted to install python 2.6 in my RHEL system.

I could not get python 2.6 working with source install.
So I used "Extra Packages for Enterprise Linux".
With a hint from a member (knudfl, hats off), I added a repository to RHEL like this:
Code:
rpm -Uvh
http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Then yum update.

Then I did
yum install python26 python26-ldap
This took care of python 2.6 and python-ldap.

But when I ran a bootstrap.py (which was in an application I am supposed to run) like this:

Code:
python26 bootstrap.py
Now, says "permission denied".

File permission at /usr/lib/python2.6/site-packages/.. is rwxr-xr-x and the owner is root.

I am doing this as a non-root user, and echo $PATH gives:
Code:
/home/user1/bin:/usr/bin/python26:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/user1/bin
I reproduce the error message:
Code:
[user1@localhost testDir]$ python26 bootstrap.py
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.19.tar.gz
Extracting in /tmp/tmp8zxcDH
Now working in /tmp/tmp8zxcDH/distribute-0.6.19
Building a Distribute egg in /tmp/tmppyNcRW
/tmp/tmppyNcRW/distribute-0.6.19-py2.6.egg
Getting distribution for 'distribute==0.6.14'.
Before install bootstrap.
Scanning installed packages
No setuptools distribution found
After install bootstrap.
Creating /usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info
error:
/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info:
Permission denied
An error occurred when trying to install distribute 0.6.14. Look above
this message for any errors that were output by easy_install.
While:
Bootstrapping.
Getting distribution for 'distribute==0.6.14'.
Error: Couldn't install: distribute 0.6.14
Please give me a hint or two.

Thanks.

PS: I have these openldap related packages installed (from the beginning, when I installed the OS):
Code:
openldap-2.3.43-12.el5_5.3.3.i386
openldap-devel-2.3.43-12.el5_5.3.3.i386
python-ldap-2.2.0-2.1.i386
 
Old 07-05-2011, 10:36 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Owner is root as it told you. You're not root so you can't install system-wide. That's OK, because you can install Python packages in your $HOME directory and they'll be available for you to use. Lot's of reasons that's a good idea, but since you're executing a file just because you're told to, no sense borking up the entire system. Take a look at the EasyInstall documentation to help you set it up. Then take a look at the Python documentation to help you set up the Python environment to use this new location.
 
Old 07-05-2011, 11:36 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
It all began when I wanted to install python 2.6 in my RHEL system.
that WILL 100% cause very big problems if you are not VERY careful. I do mean VERY CAREFUL

RHEL is very dependent , as in the OS REQUIRES the version that is in RHN . if you change it you WILL kill the rhel install .


now
you can install a second version side by side .In it's OWN folder -- yes by hand .You CAN NOT use a rpm
python 2.4
and a second install in python26

then point the program that needs the newer version to the NEW folder.
 
Old 07-06-2011, 01:18 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
There is no package "python26-setuptools" available.

So simply run 'python26 bootstrap.py' as root, and the new "setuptools"
is installed into your python26 : /usr/lib/python2.6/****
 
Old 07-06-2011, 05:54 AM   #5
x201s
Member
 
Registered: Dec 2010
Posts: 67

Original Poster
Rep: Reputation: 0
from python 2.4 to 2.6

weibullguy, JohnVV, knudfl
Thanks for the comments.

knudfl: your reply came a little late
I deleted all what I did and re-installed OS (not too bad, because I am using VirtualBox) in order install python (2.6) from source.

Here is the latest situation.

I installed python 2.6 in /home/user1/tools (source install, not EPEL). And others like PIL, and "easy install".
But now, I am back to square one: when I run
Code:
/home/user1/tools/bin/python ez_setup.py
I am greeted with the errors that I had mentioned in my other post.
http://www.linuxquestions.org/questi...40#post4400040
(install location has slightly changed, but the message is the same.)

What I am thinking:
(1) I read somewhere that python-ldap-2.4.1 needs openldap library of 2.4 persuation. Mine is 2.3. That may be the problem.
I want to update that to 2.4. Don't know how. When I do yum, update openldap, I get a flurry of errors:
Code:
openldap-devel-2.3.43-12.el5_5.3.i386 from installed has depsolving problems
  --> Missing Dependency: openldap = 2.3.43-12.el5_5.3 is needed by package openldap-devel-2.3.43-12.el5_5.3.i386 (installed)
Error: Missing Dependency: openldap = 2.3.43-12.el5_5.3 is needed by package openldap-devel-2.3.43-12.el5_5.3.i386 (installed)
(1.5) If I install openldap from scratch, I guess I may have to install berkeleydb as well.. I don't want to take this path if possible.

(2) create one more VirtualBox and do what knudfl suggested in this thread and see if it works for me.
 
Old 07-06-2011, 06:05 AM   #6
x201s
Member
 
Registered: Dec 2010
Posts: 67

Original Poster
Rep: Reputation: 0
I knew it ... I just downloaded openldap 2.4.23 and tried to compile.. it failed in ./configure stage.
checking if Berkeley DB version supported by BDB/HDB backends... no
configure: error: BerkeleyDB version incompatible with BDB/HDB backends
There I go!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
A question about install egg file on ubuntu10.10 yimaizhe Linux - Newbie 7 10-25-2019 12:16 PM
Python egg cache yuri16 Linux - Newbie 0 05-27-2009 01:31 AM
[Python] How do I unzip .egg files? OlRoy Linux - Newbie 4 02-06-2007 09:52 AM
LXer: Hatch Python Eggs with Setuptools LXer Syndicated Linux News 0 10-28-2006 01:54 AM
INFO ONLY: SuSE 10.0: Install DVD Easter Egg mrshadow76 SUSE / openSUSE 3 10-31-2005 02:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration