Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Message: "ImportError: No module named redirect"

Hi friends,

I have a new computer, please, when trying to run PSS/E from Python's IDLE, I get this message:

ImportError: No module named redirect

This is my full header:

"import os,sys sys.path.insert(0,'C:\Program Files\PTI\PSSE33\PSSBIN') os.environ['PATH'] = 'C:\Program Files\PTI\PSSE33\PSSBIN'+';'+os.environ['PATH'] import redirect redirect.psse2py() import psspy psspy.psseinit(150000) _i=psspy.getdefaultint() _f=psspy.getdefaultreal() _s=psspy.getdefaultchar() import excelpy"

Please, does anyone know how to fix it ? Do I have to "install" the redirect module ? if so, please how ?

Thanks,

Andre

click to hide/show revision 2
Syntax highlighting

Message: "ImportError: No module named redirect"

Hi friends,

I have a new computer, please, when trying to run PSS/E from Python's IDLE, I get this message:

ImportError: No module named redirect

This is my full header:

"import

import os,sys
sys.path.insert(0,'C:\Program Files\PTI\PSSE33\PSSBIN')
sys.path.insert(0,'C:\\Program Files\\PTI\\PSSE33\\PSSBIN')
os.environ['PATH'] = 'C:\Program Files\PTI\PSSE33\PSSBIN'+';'+os.environ['PATH']
'C:\\Program Files\\PTI\\PSSE33\\PSSBIN'+';'+os.environ['PATH']
import redirect
redirect.psse2py()
import psspy
psspy.psseinit(150000)
_i=psspy.getdefaultint()
_f=psspy.getdefaultreal()
_s=psspy.getdefaultchar()
import excelpy"

excelpy

Please, does anyone know how to fix it ? Do I have to "install" the redirect module ? if so, please how ?

Thanks,

Andre