_tkinter.TclError: Can't find a usable init.tcl in the following directories

help needed! I get the following error when I try to run my newly installed snap.
(snapcraft, version 2.42.1+18.4)


(process:26716): Gtk-WARNING **: 12:29:57.640: Locale not supported by C library.
	Using the fallback 'C' locale.
Gtk-Message: 12:29:57.673: Failed to load module "gail"
Gtk-Message: 12:29:57.674: Failed to load module "atk-bridge"
Gtk-Message: 12:29:57.703: Failed to load module "canberra-gtk-module"
Traceback (most recent call last):
  File "/snap/facebookbuddy/x7/bin/facebookbuddy", line 16, in <module>
    root = Tk()
  File "/snap/facebookbuddy/x7/usr/lib/python2.7/lib-tk/Tkinter.py", line 1822, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: Can't find a usable init.tcl in the following directories: 
    /usr/share/tcltk/tcl8.6 /snap/facebookbuddy/x7/usr/lib/tcl8.6 /snap/facebookbuddy/x7/lib/tcl8.6 /snap/facebookbuddy/x7/usr/library /snap/facebookbuddy/x7/library /snap/facebookbuddy/x7/tcl8.6.8/library /snap/facebookbuddy/tcl8.6.8/library

This probably means that Tcl wasn't installed properly.

here my parts declaration in snapcraft.yaml:

parts:
  fbuddy:
    source: .
    plugin: python 
    python-version: python2
    requirements: requirements.txt
    stage-packages: [libc6, zlib1g, cron, python-setuptools, python-gobject-2, python-notify, python-pip, python-tk, python-six, python-lxml]

Any help is greatly appreciated!

1 Like

in my parts/fbuddy/install/usr/lib/tcltk/x86_64-linux-gnu/tk8.6 directory I found only a pkgIndex.tcl file with these contents:

if {[catch {package present Tcl 8.6.0}]} return
package ifneeded Tk 8.6.8 [list load [file normalize [file join /usr/lib/x86_64-linux-gnu libtk8.6.so]] Tk]

…??