[Paraview-developers] Paraview runtime tcl error: Can't find a usable init.tcl
Prashant V
prashant.v at quest-global.com
Tue Jul 7 06:28:18 EDT 2015
Hi,
I am new to Paraview and developing a paraview plugin. From plugin, I am executing a python script using pqPythonManager.
pqPythonManager *pm = pqPVApplicationCore::instance()->pythonManager();
pm->executeScript("button.py");
>From script, I am trying to create gui button. Scripy snippet is below:
import os
import sys
import Tkinter
import tkMessageBox
top = Tkinter.Tk()
def helloCallBack():
tkMessageBox.showinfo( "Hello Python", "Hello World")
B = Tkinter.Button(top, text ="Hello", command = helloCallBack)
B.pack()
top.mainloop()
During run, I am getting below error (at top = Tkinter.Tk())
----------------------------------------------------
Traceback (most recent call last):
File "<string>", line 6, in <module>
File "<install-dir>/bin/Python/lib/python2.7/lib-tk/Tkinter.py", line 1764, 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:
/opt/anaconda1anaconda2anaconda3/lib/tcl8.5 <install-dir>/paraview/lib/lib/tcl8.5 <install-dir>/paraview/lib/tcl8.5 <install-dir>/paraview/lib/library <install-dir>/paraview/library <install-dir>/paraview/tcl8.5.15/library <install-dir>/paraview/tcl8.5.15/library
This probably means that Tcl wasn't installed properly.
-----------------------------------------------
I could find init.tcl in directory <install-dir>/bin/Python/lib/python2.7/lib/tcl8.5, where system is not looking for.
Can somebody please help with this error? Do I need to set tcl path somewhere?
Thanks a lot in advance.
-Prashant
---Disclaimer------------------------------ This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Opinions, conclusions and other information in this transmission that do not relate to the official business of QuEST Global and/or its subsidiaries, shall be understood as neither given nor endorsed by it. Any statements made herein that are tantamount to contractual obligations, promises, claims or commitments shall not be binding on the Company unless followed by written confirmation by an authorized signatory of the Company. -----------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20150707/9b3c5da1/attachment.html>
More information about the Paraview-developers
mailing list