Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Guys i have really lost my patience and now i want help from you guys . I recently installed python in SLES and now i get the below error when running it. I have googled a lot for possible solution but no luck found. Please guys help me on this
Code:
The GCC team.
Distribution: SUSE Linux Enterprise 11
linux-ooix:~/Desktop # python3
Python 3.1.1 (r311:74480, Dec 4 2009, 23:28:49)
[GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
File "/etc/pythonstart", line 7, in <module>
import readline
ImportError: No module named readline
2) Try to install first readline development headers (in Ubuntu called readline-dev; no idea how this is called, neither installed, in Suse) and then compiling Python 3.1 from source. [http://python.org]
This usually helps.
1) Temporarily add this line to your $HOME/.bashrc or $HOME/.profile:
reset your shell and try to invoke python3.1
OR
2) Try to install first readline development headers (in Ubuntu called readline-dev; no idea how this is called, neither installed, in Suse) and then compiling Python 3.1 from source. [http://python.org]
This usually helps.
Hope this helps.
Thanks for your help but the above solution did not resolved my issue. It seems that the readline module was missing in SLES 11 which is important for Python 3 to run stable. Anyways i have resolved this issue and i would like to share the solution with you guys :-
Solution
1 - I downloaded readline 5.2 from icewalkers website
2 - Installed readline 5.2 by compiling it from the source code
3 - Re-compiled Python 3 from the source code
4 - I executed python 3 and everything is working smoothly without any error.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.