You are not logged in.

#1 2008-04-16 08:00:37

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

IDLE (Python)

The IDLE refuses to start, probably due to some environment deficiency. On one installation of Arch the problem somehow solved itself, leaving me none the wiser smile . On another it has to be addressed. Any suggestions?

Offline

#2 2008-04-16 08:07:07

Endperform
Member
From: Atlanta GA, USA
Registered: 2007-09-04
Posts: 94
Website

Re: IDLE (Python)

Any error messages if you try starting from the terminal?

Offline

#3 2008-04-16 08:22:09

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: IDLE (Python)

  File "/usr/bin/idle", line 3, in <module>
    from idlelib.PyShell import main
  File "/usr/lib/python2.5/idlelib/PyShell.py", line 14, in <module>
    import macosxSupport
  File "/usr/lib/python2.5/idlelib/macosxSupport.py", line 6, in <module>
    import Tkinter
  File "/usr/lib/python2.5/lib-tk/Tkinter.py", line 38, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ImportError: libtk8.5.so: cannot open shared object file: No such file or directory

Offline

#4 2008-04-16 10:39:59

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,487
Website

Re: IDLE (Python)

You need to update/install tk.

Offline

#5 2008-04-16 12:55:28

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: IDLE (Python)

After installing tk:

No protocol specified
Traceback (most recent call last):
  File "/usr/bin/idle", line 5, in <module>
    main()
  File "/usr/lib/python2.5/idlelib/PyShell.py", line 1390, in main
    root = Tk(className="Idle")
  File "/usr/lib/python2.5/lib-tk/Tkinter.py", line 1636, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: couldn't connect to display ":0.0"

Offline

#6 2008-04-16 13:36:35

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,718
Website

Re: IDLE (Python)

Are you running these programs as root? (I hope not).

R

Offline

#7 2008-04-17 04:02:54

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: IDLE (Python)

I am smile . Shame on me.

Offline

#8 2008-04-17 11:07:36

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,718
Website

Re: IDLE (Python)

OK, then.
Running the program as a regular user should take care of the problem.

R

Offline

Board footer

Powered by FluxBB