python & Tkinter - library loading failure in linux



When I do 'import Tkinter', I get the
ImportError: "libtk.so.0: cannot open shared object file: No such file or directory"


I work around the issue by creating a softlink libtk.so.0 in the current directory to /usr/lib/libtk8.3.so and then updating env variable LD_LIBRARY_PATH to the current directory. After this, Tkinter module loads up fine.

Is there a better way to do this (from within the python script) ?

TIA

venky
.



Relevant Pages

  • Re: Python 2.5 install on Gentoo Linux: failed dmb and _tkinter
    ... failed: libtk8.4.so: cannot open shared object file: ... I have libtk: ... I need Tkinter for sure, and I'll like to have dbm. ...
    (comp.lang.python)
  • [SLE] Problems after update
    ... "Update all package versions on your suse linux 10.0 machine" found on the Novell site. ... xauth: error while loading shared libraries: libXext.so.6: cannot open shared object file: No such file or directory ...
    (SuSE)
  • Re: cannot install Maple95 on FC5
    ... Extracting the installation resources from the installer archive... ... dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory ...
    (Fedora)
  • CodeGear : Kylix patch ...
    ... sorry for posting here but the kylix groups are quite as dead as kylix itself :-( ... expr: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory ...
    (borland.public.delphi.non-technical)
  • Question about installation for DBI
    ... You can install them any time after installing the DBI. ... open shared object file: No such file or directory at ... FAILED tests 1, 4-51 ...
    (perl.dbi.users)