I don't have wish in my Ubuntu 8.04

Asked by danr

I'm a total newbie to linux.
I don't have wish in my Ubuntu 8.04.
What am I supposed to do?
I was also trying to run a .py file and it told me it can't find the command. I'm kind of lost.
Thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu tk8.5 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

What command you type to run the .py file... ?

python filename.py

or

chmod 700 filename.py

./filename.py

Thank you

Revision history for this message
danr (danr) said :
#2

Just the file name: pywings.py

(I'm following the Ubuntu for non-geeks 2nd edition book by Rickford Grant. This is on page 144)

Thanks!

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#3
Revision history for this message
danr (danr) said :
#4

That's the first edition. In my 2nd edition book, I have that on page 148. But on that one that you are showing, it refers to the first question in this thread. I'm supposed to have the wish Tk shell. I wish I had it, but I don't :-)
Even more, I don't even know what is a Tk shell, and if I can use another one.
Thanks!

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#5

To get Wish please try install it...

Please open a Terminal from the menu Applications->Accessories->Terminal and type:

sudo apt-get update
sudo apt-get install wish

give your user password when requested, you don't see nothing when you type it, then press enter.

You will get an answer by the system that tell you something like this
(your Ubuntu answer might be different i use Ubuntu 8.10):

Wish is package wish is a virtual package provided by:

  tk8.3
  tk8.5
  tk8.4

Then to install wish you must type:

sudo apt-get install tk8.X

change the "tk8.X" with one tk package sent you by the system, in previous message, think the highest is better.

hope this helps

Revision history for this message
danr (danr) said :
#6

Thanks marcobra, I'll work on this over the weekend.

Revision history for this message
danr (danr) said :
#7

Sorry marcobra, I didn't get to this until now. Will test soon and let you know. Thanks.

Revision history for this message
danr (danr) said :
#8

Interesting...

There is a 'wish' is /usr/bin, but it's a link to an executable: 'etc/alernatives/wish', which itself is a link to an exeutable: '/usr/bin/wish85' which I imagine is what I just installed with apt-get install tk8.5.
But still when I 'locate wish' it returns empty handed.
Ideas?

Thanks.

Revision history for this message
danr (danr) said :
#9

Don't want to bother you, but...

Revision history for this message
Thomas Kluyver (takluyver) said :
#10

If you've done that recently, try doing "sudo updatedb" to update the list "locate" is using. (In fact, I've just tracked locate, and it goes through a similar system which ends up linking to /usr/bin/mlocate. But that's not important.)

A Tk shell is an interactive command prompt for writing in the Tk programming language.

As to the python file, where is it located? To run it like that, it'll need to be in your path (to see what this is, run "echo $PATH"). If you're trying to run it from a prompt at the folder it's in, you'll need "./pywings.py", and it'll need to be set to be executable ("chmod +x pywings.py"), and it will need the first line to be something like "#!/usr/bin/python"...

Can you help with this problem?

Provide an answer of your own, or ask danr for more information if necessary.

To post a message you must log in.