Ask Your Question

ImportError: No module named psspy

asked 2019-01-13 02:38:28 -0500

user1 gravatar image

I have PsseExplore34, and python 2.7.13, and my PSSE path is

C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN

and psspy.pyc is there

C:\Program Files (x86)\PTI\PSSEXplore34\PSSPY34

and C:\Program Files (x86)\PTI\PSSEXplore34\PSSPY27

this is part of my code that import psse

import os,sys

PSSE_PATH = r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN'


os.environ['PATH'] += ';' + PSSE_PATH

import psspy

,but whenever I run it I got this error message ImportError: No module named psspy I put this line import psse34 before impoert psspy, but it still does not work.

what should I do?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2019-01-23 00:43:46 -0500

SqFKYo gravatar image

If you're on a newer version of PSS products, you can do import psse33 or import psse34 instead of the explicit extra path adding.

edit flag offensive delete link more

answered 2019-01-21 10:22:10 -0500

jfconroy gravatar image

Do a quick sanity check. Open PSSE explore, and then type

import psspy

into the Python command line. If you don't get an error message in the Output Bar, then there's some problem linking everything up externally.

edit flag offensive delete link more


Thanks for the help. My problem is solved as following: sys_path_PSSE=r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSPY27' sys.path.append(sys_path_PSSE) os_path_PSSE=r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN' os.environ['PATH'] += ';' + os_path_PSSE

user1 gravatar imageuser1 ( 2019-01-22 02:13:31 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools


Asked: 2019-01-13 02:38:28 -0500

Seen: 200 times

Last updated: Jan 23