1

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.

anonymous user
asked 2012-07-20 00:50:47 -0500
JervisW's avatar
1.3k
JervisW
updated 2012-08-07 01:54:38 -0500
edit flag offensive 0 remove flag close merge delete

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's avatar JervisW (2012-07-20 03:16:46 -0500) edit

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's avatar PPS Newbie (2012-07-20 07:33:34 -0500) edit

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

PPS Newbie's avatar PPS Newbie (2012-07-20 07:34:05 -0500) edit

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's avatar JervisW (2012-07-20 16:34:16 -0500) edit

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

PPS Newbie's avatar PPS Newbie (2012-07-20 19:53:27 -0500) edit
add a comment see more comments

3 Answers

1

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.

PPS Newbie's avatar
23
PPS Newbie
answered 2013-06-02 01:49:28 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

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

oystein's avatar
1
oystein
answered 2012-08-01 08:42:01 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

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!
Vlad's avatar
21
Vlad
answered 2022-10-08 08:08:13 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer