LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   python2.6 readline module not present (https://www.linuxquestions.org/questions/linux-software-2/python2-6-readline-module-not-present-942054/)

igor012 04-27-2012 05:07 AM

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

Ian John Locke II 04-27-2012 09:00 PM

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

igor012 05-02-2012 11:17 AM

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 ?

John VV 05-02-2012 09:17 PM

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

igor012 05-03-2012 03:44 AM

Hi,
I am using OpenSUSE 12.1

thx

John VV 05-03-2012 04:18 AM

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

igor012 05-03-2012 05:04 AM

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


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