First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
1

PSEEv33 Import Tkinter problem

asked Jul 20 '12

anonymous user

Anonymous

updated Aug 7 '12

JervisW gravatar image

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.

Comments

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

JervisW gravatar imageJervisW (Jul 20 '12)

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.

PPS Newbie gravatar imagePPS Newbie (Jul 20 '12)

However, I do not have the same problem when I install PSSEv32 with python2.5 on my windows 7 machine.

PPS Newbie gravatar imagePPS Newbie (Jul 20 '12)

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.

JervisW gravatar imageJervisW (Jul 20 '12)

I save a .py file which includes the following lines import sys print sys.version print sys.executable print sys.path

PPS Newbie gravatar imagePPS Newbie (Jul 21 '12)

3 answers

Sort by » oldest newest most voted
1

answered Jun 2 '13

PPS Newbie gravatar image

It been some time since I asked this question. And I just want share the update to ppl who may came across the same problem in the future. This is a known problem in prior to PSSEv33.4. PSSEv33.4 fixed this problem. Thanks.

link
0

answered Oct 8 '2

Vlad gravatar image

I have this problem in psse 33.4. Please help

import Tkinter

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Python27\Lib\lib-tk\Tkinter.py", line 38, in <module>
    import FixTk
  File "C:\Python27\Lib\lib-tk\FixTk.py", line 65, in <module>
    import _tkinter
ImportError: DLL load failed: The specified module could not be found.

Python Exception raised!
link
0

answered Aug 1 '12

Most likely you miss the MSVCP71.DLL and msvcr71.dll in you windows\syswow64-folder.

link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

2 followers

Stats

Asked: Jul 20 '12

Seen: 1,200 times

Last updated: Oct 08 '22