473,563 Members | 2,732 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Linux/Python Issues

I went to Python.org, DL'd Python 2.5 source code per the usual
inadequate instructions and ran the make files successfully (sort of).
Python 2.5 works fine. But "from Tkinter import *" gets a "What's
Tkinter?" message. IDLE's no where to be found.

What's not in the instructions is what directory should I be in when I
download? Where should I put the ".bz2" file? What dir for running the
make files? At present I'm working on a Windows machine, endangering
what's left of my sanity.

I'm using Linspire, so Debian directories are probably the ones that
will get me up and running. Barring specific knowledge, even some good
guesses would be appreciated.
Feb 17 '08 #1
11 1755
On 17 Feb, 20:38, MartinRineh...@ gmail.com wrote:
I went to Python.org, DL'd Python 2.5 source code per the usual
inadequate instructions and ran the make files successfully (sort of).
Python 2.5 works fine. But "from Tkinter import *" gets a "What's
Tkinter?" message. IDLE's no where to be found.
It could be that you don't have the Tcl/Tk libraries installed, or
perhaps the header files for Tcl/Tk aren't installed. If so, Python
wouldn't detect them when being configured itself, and then you
probably wouldn't have the Tkinter extension installed.
What's not in the instructions is what directory should I be in when I
download? Where should I put the ".bz2" file? What dir for running the
make files? At present I'm working on a Windows machine, endangering
what's left of my sanity.

I'm using Linspire, so Debian directories are probably the ones that
will get me up and running. Barring specific knowledge, even some good
guesses would be appreciated.
Here's one page which probably tells you stuff you already know:

http://wiki.python.org/moin/BeginnersGuide/Download

On Ubuntu, which is Debian-based, the python-tk package should make
Tkinter available, so you could look for that in your repositories. As
for building from source, you can put the .bz2 file anywhere, and
unpack it anywhere that isn't going to make a mess for you to clean up
later. For example, you could download the Python .bz2 file into a
"downloads" directory residing in your home directory, then you could
do this:

mkdir software
cd software
tar jxf ~/downloads/Python-2.5.1.tar.bz2
cd Python-2.5.1
../configure
make

You can then do a "make install" with the right privileges.

Paul
Feb 17 '08 #2
Ma************@ gmail.com schrieb:
I went to Python.org, DL'd Python 2.5 source code per the usual
inadequate instructions and ran the make files successfully (sort of).
Python 2.5 works fine. But "from Tkinter import *" gets a "What's
Tkinter?" message. IDLE's no where to be found.

What's not in the instructions is what directory should I be in when I
download? Where should I put the ".bz2" file? What dir for running the
make files? At present I'm working on a Windows machine, endangering
what's left of my sanity.

I'm using Linspire, so Debian directories are probably the ones that
will get me up and running. Barring specific knowledge, even some good
guesses would be appreciated.
Nothing special, just reading the "configure --help" will help you. You
need Tcl/Tk + possible devel-packages so the header-files are found. I'm
not an expert on the required versions, but that should be told you
somewhere.

But I doubt that there isn't a python2.5 already available for your
distro - especially if it's debian based. Ubuntu for example has 2.5 as
default.

Diez
Feb 17 '08 #3


Paul Boddie wrote:
Here's one page which probably tells you stuff you already know:

http://wiki.python.org/moin/BeginnersGuide/Download
Thank you! It says I need Python (which I've got) and the Python-devel
package, which sounds like it might include Tkinter and IDLE. Now if
only I knew where to get the Python-devel package ...
Feb 18 '08 #4
On 18 Feb, 16:39, MartinRineh...@ gmail.com wrote:
Paul Boddie wrote:
Here's one page which probably tells you stuff you already know:
http://wiki.python.org/moin/BeginnersGuide/Download

Thank you! It says I need Python (which I've got) and the Python-devel
package, which sounds like it might include Tkinter and IDLE. Now if
only I knew where to get the Python-devel package ...
It would probably be the python-dev package if Linspire really is
based on Debian. However, that only gives you the Python headers, as
far as I remember. You would also need to get the packages for Tcl/Tk
including those providing the headers. And IDLE and Tkinter are
separate packages, too. But generally, just asking for the idle or
idle-python2.5 packages will give you the stack of packages you need
without any further thought required.

That said, if the problem is that Linspire doesn't provide Python 2.5
as a package, then you're back to installing the Tcl/Tk packages and
then building from source, configuring, building and installing Python
as mentioned earlier. You could instead attempt to port the generic
Debian package to Linspire, but this isn't for the timid. ;-)

If finding Tcl/Tk packages is also a problem, you could build Tcl/Tk
from scratch, too - something I've had to do in the distant past on
operating systems like Solaris. Then, it's a matter of telling
Python's configure program where you installed the Tcl/Tk headers and
libraries.

Paul

P.S. I'm not sure if I can advise you on the specifics around
Linspire. Ubuntu and Debian are quite transparent, and you can quite
easily find packages for them on packages.ubuntu .com and
packages.debian .org respectively. The whole CNR stuff and the
proprietary software slant of Linspire obscures the solution, in my
opinion.
Feb 18 '08 #5


Paul Boddie wrote:
The whole CNR stuff and the
proprietary software slant of Linspire obscures the solution, in my
opinion.
Thanks for all your help, Paul.

CNR, which is now free, is absolutely marvelous when it's got what you
need. If Python2.5 were in the warehouse, I'd have clicked, gone to
make a cup of coffee and the appropriate icon would be on my desktop
when I came back. If I were Python.org I'd not consider anything ready
for release until it was in the warehouse.
Feb 18 '08 #6
<Ma************ @gmail.comwrote :
>CNR, which is now free, is absolutely marvelous when it's got what you
need. If Python2.5 were in the warehouse, I'd have clicked, gone to
make a cup of coffee and the appropriate icon would be on my desktop
when I came back. If I were Python.org I'd not consider anything ready
for release until it was in the warehouse.
Er, so how is it supposed to get into the warehouse if it's not
first released from python.org ?

--
\S -- si***@chiark.gr eenend.org.uk -- http://www.chaos.org.uk/~sion/
"Frankly I have no feelings towards penguins one way or the other"
-- Arthur C. Clarke
her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump
Feb 19 '08 #7
Ma************@ gmail.com a écrit :
>
Paul Boddie wrote:
>The whole CNR stuff and the
proprietary software slant of Linspire obscures the solution, in my
opinion.

Thanks for all your help, Paul.

CNR, which is now free, is absolutely marvelous when it's got what you
need. If Python2.5 were in the warehouse, I'd have clicked, gone to
make a cup of coffee and the appropriate icon would be on my desktop
when I came back. If I were Python.org I'd not consider anything ready
for release until it was in the warehouse.
It's not the project's team duty to build specific packages for each and
every possible platform / distro / package manager. Debian, Unbuntu,
Mandriva, RedHat, Gentoo etc all build their own specific packages for
the projects they want to be part of their distro. Bad luck you choose a
distro that doesn't do a proper job here. May I suggest you give Ubuntu
a try ? You might find it very welcoming to outsiders !-)
Feb 20 '08 #8
re being serious

I am serious. I am seriously trying to develop a nice language for
beginners. I was at Dartmouth in 1965 when BASIC was new. It let me
use the computer without learning Fortran. It was very successful. I
think it's past time for another one. I think we could have a lot more
capability with more simplicity than you find in Visual Basic.

re DLing source

As a "solution" to the problem of wanting a program on my computer, it
sucks. On Windows I'll DL an install package, "accept" a license
agreement, click Next a few times (no, I can't make a cup of coffee
because the minute I step away the "Wizard" will ask a question), ...
With CNR the commitment is that I CAN walk away. I do not know who
should be responsible for putting things in the warehouse. I do wish
that the *n*x community would create some sensible standards so the
'our distro doesn't put things where others do' would stop being an
issue. Looking in "/usr/bin" and its brethren makes "c:\Program Files"
seem organized.

re changing distros because apt-get could do the job

I'll take your words for the superiority of Ubuntu. But I'll not
change from one problem (can't find the python-devel that python.org
says I need) to another (installing a new OS). I bought my Linspire
computer with the OS installed. I've no interest in mastering the art
of installing Linux. I'm a big fan of KDE, KATE and Konqueror and
having a dozen desktops for a dozen projects. I do not miss crashes
and viruses. I do not miss shelling out hundreds of bucks for an
office suite.

So for now I'll just pretend that Windows is desktop 13. A KVM helps.
I'll remember that you don't type "uptime" in the DOS window. Oh,
yeah. I'll remember that my NAV subscription expired. Gotta renew.
Feb 21 '08 #9
Ma************@ gmail.com a écrit :
re being serious

I am serious. I am seriously trying to develop a nice language for
beginners.
That's not what I was talking about.
re DLing source

As a "solution" to the problem of wanting a program on my computer, it
sucks. On Windows I'll DL an install package, "accept" a license
agreement, click Next a few times (no, I can't make a cup of coffee
because the minute I step away the "Wizard" will ask a question), ...
With CNR the commitment is that I CAN walk away. I do not know who
should be responsible for putting things in the warehouse.
Those who maintain the warehouse.
I do wish
that the *n*x community would create some sensible standards so the
'our distro doesn't put things where others do'
There are such standards - but not anyone is following them. What you
have to understand is that unix is not *one* OS, but a (quite large)
family of OSs.
would stop being an
issue. Looking in "/usr/bin" and its brethren makes "c:\Program Files"
seem organized.
Your opinion.
re changing distros because apt-get could do the job

I'll take your words for the superiority of Ubuntu. But I'll not
change from one problem (can't find the python-devel that python.org
says I need) to another (installing a new OS). I bought my Linspire
computer with the OS installed. I've no interest in mastering the art
of installing Linux.
Installing Ubuntu is quite straightforward . IMHO even simpler than
installing any "recent" (ie >= NT4) version of Windows.
I'm a big fan of KDE, KATE and Konqueror and
having a dozen desktops for a dozen projects. I do not miss crashes
and viruses. I do not miss shelling out hundreds of bucks for an
office suite.
Fine. But anyway, you have to face the fact that your OS doesn't provide
a proper package for recent Python versions, and that this is by no mean
the responsability of the Python team. So you're left with the following
options:

- complain to the company selling Linspire until they provide this package
- try to install Python from sources
- install another OS
Feb 21 '08 #10

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

Similar topics

2
2636
by: fowlertrainer | last post by:
Hello ! I have a problem. I create my projects in Windows, and I write a database synchronizing utility for copy a gdb changes to another gdb. Some of these products is need to run in linux. I'm very tired, because I download (apt-get install python2.3-kinterbasedb) the module, what working good in Windows, but in linux I get this...
0
1200
by: fowlertrainer | last post by:
Hello ! Very interesting thing: When I copy this script to another dir, it is working, but in this directory is not working. Only different is to this dir is used by an symlink. The python is not working good with symlinked dirs ??? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
3
2943
by: Tim Gahnstrom | last post by:
rdiff-backup is aperently written in Python and when I run it in a special way I get some funy Python errors. Does anyone know if linux python have some issues with working with fat32 or usb drives? To tracebacks are provided below for more information. This is the version information I get when I start Python ojn my Fedora Core 2 computer....
8
2474
by: Martin Maney | last post by:
Apologies if this isn't news here - I've been too busy this last week or so for even skimming the traffic here, in part because I've been messing around with Ubuntu's preview release on a spare machine... and, of course, spending time on their very busy mailing list. :-) I didn't find any mention of Ubuntu in a quick scan of recent messages,...
12
8198
by: Mike Dee | last post by:
A very very basic UTF-8 question that's driving me nuts: If I have this in the beginning of my Python script in Linux: #!/usr/bin/env python # -*- coding: UTF-8 -*- should I - or should I not - be able to use non-ASCII characters in strings and in Tk GUI button labels and GUI window titles and in raw_input data without Python returning...
3
1736
by: A.M | last post by:
Hi, I am planning to develop python applications on windows and run them on Linux. Are ActivePython scripts compatible with Linux? Is there any guideline that explains the compatibility issues between python in different platforms?
1
1999
by: dwelch91 | last post by:
c.l.p- I am undertaking writing an installer for a software package using Python. It is exclusively for Linux. Because this is an installer and has to run on numerous Linux distros, it is presenting some unique challenges. First off, I have begun this project by writing a text mode only interface. I would like to provide a GUI as an...
8
7710
by: Prateek | last post by:
Hello, I'm trying to package my python program into a linux executable using cx_freeze. The goal is that the user should require python on their system. I've managed to make the binaries on Fedora Core 6 and they run fine. However, when I move to Ubuntu (tested on Ubuntu Server 7.04 and xUbuntu Desktop 7.04), the program fails to run...
5
2457
by: John Ladasky | last post by:
Hi folks, Running Python 2.5 on both a Windows XP laptop, and an Ubuntu Linux 7.04 desktop. I've gotten tired of maintaining multiple copies of my personal modules that I use over and over. I have copies of these files in the same directory as the main program I happen to be working on at the time. I've also downloaded FANN, and want...
4
2336
by: stuntgoat | last post by:
Hi, I want to start using Python 2.6 and 3000. I have several questions. What, in your experiences, is a functionally elegant solution to installing 2.6 and 3 from source without breaking package dependencies on your favorite Linux/Unix flavor? Is compiling Python 2.6 and 3.0 on a *nix development machine and having it work seamlessly as...
0
7664
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...
0
7885
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. ...
0
8106
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...
1
7638
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6250
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...
0
5213
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...
0
3642
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...
1
2082
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
0
923
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...

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.