Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > python & Tkinter - library loading failure in linux

Reply
Thread Tools

python & Tkinter - library loading failure in linux

 
 
Venky
Guest
Posts: n/a
 
      11-30-2005
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Python Tkinter Linux Repair Question/ Python TCP Socket Example My Python Python 3 06-16-2010 08:57 PM
Failure in loading T2 native library db2jcct2 savita Java 2 05-13-2008 06:28 PM
Exception thrown & Failure in loading T2 native library db2jcct2 while connecting to db2/400 through java savita Java 1 12-30-2006 03:37 PM
Python loading library containing embedded python... Brennus Python 8 01-30-2006 12:21 PM
[JAVA] [EVALUATION] - The Java Failure (Sorry: The Java(tm) Failure) Ilias Lazaridis Java 0 02-01-2005 10:32 AM



Advertisments