etam
Posts: 23
Joined: Wed Jun 21, 2017 7:19 pm

Programming applications

Tue Jun 19, 2018 9:21 pm

For some reason I can't open the programming applications from the menu on my pi even though I have done previously. I can access python in the terminal by typing in 'python3' but I want to open the idle.

I get a long list of error ending with "This probably means that tk wasn't installed properly".

Any ideas what's going on?

User avatar
topguy
Posts: 6527
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Programming applications

Wed Jun 20, 2018 10:54 am

A post with those errors would probably be very en-lighting to us.

It can be everything from bad powersupply ( not very likely) or a bad SD card ( more likely ) to some read-errors in the filesystem or some failed upgrade.

Getting the Pi connected to the internet so you can do "sudo apt-get update" and "sudo apt-get upgrade" is probably a good idea.
Taking a backup of files/projects you are working on or other important files is also a good great idea.

etam
Posts: 23
Joined: Wed Jun 21, 2017 7:19 pm

Re: Programming applications

Wed Jun 20, 2018 4:23 pm

Code: Select all

Traceback (most recent call last):
  File "/usr/bin/idle3", line 5, in <module>
    main()
  File "/usr/lib/python3.4/idlelib/PyShell.py", line 1540, in main
    root = Tk(className="Idle")
  File "/usr/lib/python3.4/tkinter/__init__.py", line 1854, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: Can't find a usable tk.tcl in the following directories: 
    /usr/share/tcltk/tcl8.6/tk8.6 /usr/share/tcltk/tk8.6 /usr/lib/tk8.6 /usr/local/lib/tcltk/tk8.6 /usr/local/share/tcltk/tk8.6 /usr/lib/tcltk/arm-linux-gnueabihf/tk8.6 /usr/lib/tcltk/tk8.6 /usr/lib/tcltk/tcl8.6/tk8.6 /lib/tk8.6 /usr/library

/usr/share/tcltk/tk8.6/tk.tcl: invalid command name "ttk::copyBindings"
invalid command name "ttk::copyBindings"
    while executing
"ttk::copyBindings TButton TCheckbutton"
    (file "/usr/share/tcltk/tk8.6/ttk/button.tcl" line 37)
    invoked from within
"source [file join $::ttk::library button.tcl]"
    (file "/usr/share/tcltk/tk8.6/ttk/ttk.tcl" line 100)
    invoked from within
"source /usr/share/tcltk/tk8.6/ttk/ttk.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel \#0 [list source $::ttk::library/ttk.tcl]"
    (file "/usr/share/tcltk/tk8.6/tk.tcl" line 692)
    invoked from within
"source /usr/share/tcltk/tk8.6/tk.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list source $file]"


This probably means that tk wasn't installed properly.

Return to “Troubleshooting”