473,856 Members | 1,630 Online
Bytes | Software Development & Data Engineering Community
+ 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 1631
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
3674
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 machine, so I installed it. I then created a ASP.Net web project pointing to "localhost". I was able to run the application and get to the test.aspx page in the browser. However, it would not let me debug the application. It kept throwing an...
3
1429
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 started on this Web Server" can i have a solution to this?thanks..
3
1269
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 message box with the following error "Could not load type 'Microsoft.VisualStudio.CommonIDE.TemplateWizard.Wizard' from assembly 'Microsoft.VisualStudio.CommonIDE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'." Can anyone...
5
1167
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. Any ideas ?
3
2458
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 --------------- Python 2.3.3 (#51, Dec 18 2003, 20:22:39) on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import time
7
1031
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 new/load VS 2003 web project) results in - "normal-sounding" pre-load of .Net and my DLL. (Yes, I mean the sound of the disk - I know that's scary...) - followed by a System Error beep (with no dialog presented)
4
5053
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 re-installing Visual Studio.NET 2003. Has not helped. I cannot get intellisense to work. Any help will be greatly appreciated. *** Sent via Developersdex http://www.developersdex.com ***
2
2908
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 the site, I made : rpm -i MySQL-server-5.0.18-0.i386.rpm then i have errors that relate to many conflicts. I cannot figure out why -and- cannot upgrade. Please Help !
0
2232
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 help me... I've scoured all the documentation, google, and mailing lists to no avail. I believe the problem may lay in a jpeglib problem with OSX 10.3.9, or a python paths problem.
0
9916
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9762
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11057
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10696
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9531
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7094
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5761
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4575
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 we have to send another system
3
3201
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.