PSEEv33 Import Tkinter problem
Hey guys,
I am new to PSEE and I am also new to this website. I appreciate it if someone can give me some insights of a strange issue I came across with PSEEv33
I had a "macro" python code which is developed by someone else for PSEEv32 and it works fine. Recently I switched to a new windows 7 machine and have PSEEv33 installed. However, running this python marco gives me import errors. I found that running this marco in PSSEv33 raised a problem when I import the Tkinter module (where it said:
""" import _tkinter ImportError: DLL load failed: The specified procedure could not be found. """
The strange thing is that there is no problem if I run a python file which imports this Tkinter module in the python shell separately.
Because the python marco I had contained works fine with PSEEv32, I do not want to convert it into an alternative python file which runs under the system python shell.
Anyone has an idea what has gone wrong? Thank you so much.
Do you only have PSSEv33 installed? And did you install Python2.7 separately or just the one that came with PSSE? The error looks like Python is getting confused and cannot locate (where on your computer) the library that does pop up boxes (tkinter) is
Hi JervisW, I only have PSSEv33 installed. And I have tried to install Python2.7 which comes with PSSEv33 as well as The version I downloaded from the official python website separately. Both generates me the same problem.
However, I do not have the same problem when I install PSSEv32 with python2.5 on my windows 7 machine.
Hi PPS, can you send the results of this command? `import sys;print sys.path` Run from *inside* PSSE. it shows the directories where Python looks for libraries.
I save a .py file which includes the following lines import sys print sys.version print sys.executable print sys.path