python & Tkinter - library loading failure in linux

Discussion in 'Python' started by Venky, Nov 30, 2005.

  1. Venky

    Venky Guest

    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
    Venky, Nov 30, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ilias Lazaridis
    Replies:
    0
    Views:
    571
    Ilias Lazaridis
    Feb 1, 2005
  2. savita
    Replies:
    2
    Views:
    10,702
    jsiler1
    May 13, 2008
  3. savita
    Replies:
    1
    Views:
    1,596
  4. Replies:
    0
    Views:
    470
  5. My Python
    Replies:
    3
    Views:
    1,080
    My Python
    Jun 16, 2010
Loading...

Share This Page