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

Ask Your Question
0

ImportError: No module named 'psspy'

asked Nov 21 '16

Mkho Dlamini gravatar image

import os import sys sys.path.append(r"""C:\Program Files (x86)\PTI\PSSE32\PSSBIN""") os.environ['PATH'] = (r"""C:\Program Files (x86)\PTI\PSSE32\PSSBIN;""" + os.environ['PATH'])

import psspy import redirect

1 answer

Sort by » oldest newest most voted
0

answered Nov 22 '16

jconto gravatar image

updated Nov 22 '16

what you entered:

import os
import sys
sys.path.append(r"""C:\Program Files (x86)\PTI\PSSE32\PSSBIN""")
os.environ['PATH'] = (r"""C:\Program Files (x86)\PTI\PSSE32\PSSBIN;""" + os.environ['PATH'])
import psspy
import redirect

It looks OK. is the path rigth for your installation? are psspy.pyc and psspyc.pyd located at that path? if not try re-installing PSSe.

link

Comments

Thanks, problem solved. Actually, I had installed Python 3.5 and was not compactable to PSSE32. I had to use the Python 25 which was within the PSSE 32 installation package.

Mkho Dlamini gravatar imageMkho Dlamini (Nov 22 '16)

how you solve this problem?

misuliman gravatar imagemisuliman (Jun 8 '18)

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

Stats

Asked: Nov 21 '16

Seen: 3,458 times

Last updated: Nov 21 '16