Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

psspy module not found in PSS/E 34

I am trying to use PSS / e Xplore 34 to perform small signal analysis, I open the .raw and .dyr files but when doing the analysis, I get this error:

Executing Python file:C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN\pssneva.py
Traceback (most recent call last):
File "C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN\pssneva.py", line 69, in <module>
os.environ['PATH'] += ';' + env_path_PSSE
NameError: name 'env_path_PSSE' is not defined
There may have been an issue running Python file:C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN\pssneva.py

I already did some research and it seems it's a bug in the pssneva.py code. Can't seem to define 'envpathPSSE'.

Help me please, I am attaching a part of the pssneva.py code where it marks the error.

from __future__ import print_function, division, with_statement
from shutil import copyfile
import os, sys, argparse, shutil, distutils.dir_util, errno, string

sys_path_PSSE=r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSPY27'  #or where else you find the psspy.pyc
sys.path.append(sys_path_PSSE)
os_path_PSSE=r' C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN'  # or where else you find the psse.exe
os.environ['PATH'] += ';' + env_path_PSSE    #---->this is file 69
import psspy

psspy module not found in PSS/E 34

I am trying to use PSS / e Xplore 34 to perform small signal analysis, I open the .raw and .dyr files but when doing the analysis, I get this error:

Executing Python file:C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN\pssneva.py
Traceback (most recent call last):
File "C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN\pssneva.py", line 69, in <module>
os.environ['PATH'] += ';' + env_path_PSSE
NameError: name 'env_path_PSSE' is not defined
There may have been an issue running Python file:C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN\pssneva.py

I already did some research and it seems it's a bug in the pssneva.py code. Can't seem to define 'envpathPSSE'.

Help me please, I am attaching a part of the pssneva.py code where it marks the error.

from __future__ import print_function, division, with_statement
from shutil import copyfile
import os, sys, argparse, shutil, distutils.dir_util, errno, string

sys_path_PSSE=r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSPY27'  #or where else you find the psspy.pyc
sys.path.append(sys_path_PSSE)
os_path_PSSE=r' C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN'  # or where else you find the psse.exe
os.environ['PATH'] += ';' + env_path_PSSE    #---->this is file lile 69
import psspy