LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-27-2012, 05:07 AM   #1
igor012
Member
 
Registered: Feb 2010
Posts: 87

Rep: Reputation: 2
python2.6 readline module not present


Hello,

I have installed python2.6.8 on my system. Python2.7 was already present.

I downloaded the tar and then ./configure && make && make altinstall
The installation went well but some modules were not found.
And now I get
Code:
  File "/etc/pythonstart", line 7, in <module>
    import readline
ImportError: No module named readline
Any ideas ?

Thank you
 
Old 04-27-2012, 09:00 PM   #2
Ian John Locke II
Member
 
Registered: Mar 2008
Location: /dev/null
Distribution: Slackware, Android, Slackware64
Posts: 130

Rep: Reputation: 17
Code:
/usr/lib/python2.6/lib-dynload
should have readline.so

If you're on a 64-bit machine it would be
Code:
/usr/lib64
 
Old 05-02-2012, 11:17 AM   #3
igor012
Member
 
Registered: Feb 2010
Posts: 87

Original Poster
Rep: Reputation: 2
Hello,
In /usr/lib64/python/lib-dynload/ there is readline.so and some others.

But those files seem to be related to python2.7.

Can I use them with python 2.6 ?
 
Old 05-02-2012, 09:17 PM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 13,048

Rep: Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740
Quote:
I downloaded the tar and then ./configure && make && make altinstall
if you did that you most likely royally messed up your system
-- it is fixable ---
But without knowing just what your OS is it is imposable to help
 
Old 05-03-2012, 03:44 AM   #5
igor012
Member
 
Registered: Feb 2010
Posts: 87

Original Poster
Rep: Reputation: 2
Hi,
I am using OpenSUSE 12.1

thx
 
Old 05-03-2012, 04:18 AM   #6
John VV
Guru
 
Registered: Aug 2005
Posts: 13,048

Rep: Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740
is "add and install software" still working in yast
??
overwriting the required version of python might have killed it

if it is still working
try to REINSTALL the correct python in yast

if not you can DL it from the suse from one of the mirrors
-- 32 bit ---
http://download.opensuse.org/distrib...oss/suse/i586/

--- 64 bit --
http://download.opensuse.org/distrib...s/suse/x86_64/

then manually install it "python-2.7.2-7.1.3.x86_64.rpm " --64 bit rpm

Code:
 su -
cd to/the/location/you/saved/it
rpm -i --force --nodeps  python-2.7.2-7.1.3.x86_64.rpm
the two commands are NOT for everyday use "--force --nodeps " only use them when NEEDED


that will restore it

then see the suse OBS for other builds
to do things " the SUSE way"

http://software.opensuse.org/search
the OBS ( OpenSUSE Build Service)
http://www.open-build-service.org/

and see the wiki
http://en.opensuse.org/Main_Page


you can also use yast to search for user made repos
and install them then those files will be in the gui
http://en.opensuse.org/Package_repositories

the official
the semi official
and the contributed

Last edited by John VV; 05-03-2012 at 04:20 AM.
 
Old 05-03-2012, 05:04 AM   #7
igor012
Member
 
Registered: Feb 2010
Posts: 87

Original Poster
Rep: Reputation: 2
Hi,
Thanks for your help.
I solved it using the commands you've provided with the following rpms
Quote:
libpython2_6-1_0-2.6.2-6.3.x86_64.rpm
python-2.6.5-2.11.x86_64.rpm
python-base-2.6.5-2.14.x86_64.rpm
Thank you for your time
 
  


Reply

Tags
python2.6, readline


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Trying to install 'Gmail Backup' but it requires python2.5 - I have python2.8... Robert.Thompson Slackware 6 05-10-2011 08:23 AM
usbmon module not present but built-in as a module - Ubuntu 10.04 ieatbunnies Linux - Newbie 1 06-15-2010 03:51 PM
Python Error is SLES (No module name readline) fear_matrix Linux - Software 4 12-07-2009 03:17 AM
Python2.5-devel is unable to find installed Python2.5 Setya Suse/Novell 1 06-08-2007 01:35 AM
python2.3 - import math module not working dumpthecore Programming 2 12-10-2003 10:30 PM


All times are GMT -5. The time now is 07:47 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration