Hi,<br> I was trying out the sample program to load a python script from C in the Python tutorial at http://docs.python.org/extending/embedding.html (Section: Pure Embedding).<br><br>Usage: call pythonfile funcname [args]<br><br> When running this script, I can run things like the following:<br>call mytest foo<br><br>but not any function which calls a Tk function:<br>call mytest teekay <br><br>Here is my mytest.py module:<br><br>def foo():<br>  print "func"<br><br><br>def teekay():<br>  import Tkinter<br>  r=Tkinter.Tk<br>  r()<br><br>I get the following error in the latter case:<br><br>Traceback (most recent call last):<br>...<br>    import Tkinter<br> ...<br>    import _tkinter # If this fails your Python may not be configured for Tk<br>ImportError: /software/lib/Linux-x86/python-2.6/lib/python2.6/lib-dynload/_tkinter.so: undefined symbol: _Py_TrueStruct<br>Call failed<br><br>Obviously, trying this from within a Python shell works fine.<br><br>Any clues?<br><br>Thanks,<br>R
 aj<br><br><br><br><br><br>Raj<br>http://www.rajorshi.net/blog<br><br><div style="border-top:1px dashed #ccc; border-bottom:1px dashed #ccc; padding:5px;"><a href="http://mail.in.com/mails/new_reg.php?utm_source=invite&utm_medium=outgoing" style="font:13px arial; color:#1E56A1; text-decoration:none;">Dear <b>python-list !</b> Get Yourself a cool, short <b>@in.com</b> Email ID now!</a></div>