473,473 Members | 4,204 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Help uninstalling/installing Python 2.4

Guys/Gals

I've messed up my Python 2.4 install. I'm really new to Python (and
Linux for that matter) and really wanted to try Python out.

I have mandrake 10.1. The first thing I did was uninstalled via rpm
Python 2.3 and Tkinter 8.3 (I now realize that was a mistake, since I
could have both version installed with no problems). I then downloaded
Python2.4 ran ./configure make and make install... voila I had Python
installed...

Tk calls did not work, the output from Python when running a program
stated that I probably did not have TK installed. I got and installed
TK 8.4 and the problem persisted (I know I should have written down the
exact error, but I didn't... but the story gets worse!)

Here is the really stupid part... I figured if I uninstalled and
re-installed everything would be ok.... the bad part is I could not find
an uninstaller for TK or Python, so I just searched and delted the files
and directorys from /usr/local.... when I re-installed I still have
problems.. everything installs ok, but now I get the following errors
with Python...

bash: /usr/bin/python: No such file or directory

The interesting thing is the python executable is in /usr/local/bin

when I go to /usr/local/bin and type ./python I get

Python 2.4 (#6, Jan 7 2005, 18:44:57)
[GCC 3.4.1 (Mandrakelinux 10.1 3.4.1-4mdk)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
File "/etc/pythonrc.py", line 2, in ?
import readline
ImportError: No module named readline

I think some paths are screwed up.. can someone take pity on me and give
me a hand.

Thanks
Darrin

PS -- if you want to mail me directly remove the --spamreallysucks-- in
my email address.
Jul 18 '05 #1
1 1607
On Sat, 2005-01-08 at 08:08, Baggs wrote:
Tk calls did not work, the output from Python when running a program
stated that I probably did not have TK installed. I got and installed
TK 8.4 and the problem persisted (I know I should have written down the
exact error, but I didn't... but the story gets worse!)
You probably didn't have the -devel packages for Tcl and Tk installed,
so Python would've decided you didn't have Tk and not built tkinter
support. Chances are if you install the devel packages and recompile
Python, it'll work fine.
when I re-installed I still have
problems.. everything installs ok, but now I get the following errors
with Python...

bash: /usr/bin/python: No such file or directory
Is that when you run a script, or when you type 'python' in your shell?
If the former, make sure you write your scripts with a #! like this:

#!/usr/bin/env python

not

#!/usr/bin/python

That way, the right python will get run so long as it's on your path -
it doesn't have to be in /usr/bin.

If the error is when typing 'python' on the command line, ensure you
have no aliases for the name 'python' hanging around ('alias python' to
find out). Also check what is actually being run with 'which python' and
see if it's a wrapper script that calls /usr/bin/python.
when I go to /usr/local/bin and type ./python I get

Python 2.4 (#6, Jan 7 2005, 18:44:57)
[GCC 3.4.1 (Mandrakelinux 10.1 3.4.1-4mdk)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
File "/etc/pythonrc.py", line 2, in ?
import readline
ImportError: No module named readline

I think some paths are screwed up.. can someone take pity on me and give
me a hand.


I'd say that'll be the same as with Tkinter - you probably didn't have
the GNU readline development headers installed, so Python disabled
readline support when it was compiled. That's just a guess, but seems
pretty likely.

--
Craig Ringer

Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Daniel | last post by:
Ok folks, I have Windows XP. I installed .Net and developed some VB.Net components that I want to use in ASP.Net applications. At this point I realized I didn't have IIS installed on my XP...
3
by: dcinfinite | last post by:
dear all.. i have a problem..when i start a new project, theres an error message saying "visual studio.net cannot create or open application Website " Http://localhost/Webapplication1" not...
3
by: BobAtUnisys | last post by:
After uninstalling Visual Studio 2005 Beta2, installing Visual Studio 2005 RC1, uninstalling RC1 and reinstalling Beta2 I am getting the following error: When I try and create a class I get a...
5
by: Rob | last post by:
I installed VS.net 2003... I can see the help topics, but when I click them, the content page says that it cannot connect to the server. I want the help to be retrieved from the local machine. ...
3
by: stuart_white_ | last post by:
I've just upgraded from Python 2.3.3 to Python 2.4.2, and, although the new version of Python seems to be running correctly, I can't seem access the help from the interpreter. On Python 2.3.3...
7
by: Mike | last post by:
Of course, I have a delivery today... All of a sudden ASP.Net is no longer operating properly: - Serving of non-ASP.Net pages works fine - Trying to use ASP.Net (acessing page from browser, or...
4
by: David C | last post by:
This coincides with installing third party software from Infragistics (infragistics.com), and running their utility for the tool tab. Intellise no longer works. I have done uninstalling and...
2
by: trihanhcie | last post by:
I m currently working on a Unix server with a fedora 3 as an os My current version of mysql is 3.23.58. I'd like to upgrade the version to 5.0.18. After downloading from MYSQL.COM the package on...
0
by: Jack Wu | last post by:
Hi I've spent a good majority of my day trying to figure out how to have PIL 1.1.5 working on my OSX 10.3.9_PPC machine. I'm still stuck and I have not gotten anywhere. Could somebody please...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.