Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Error with importing pssexplore34 (related to _set_psse_loc)

Hi,

I am trying to run psspy in psse xplore v34 using the following block of script:

import os
import sys

PSSE_PY27 = r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSPY27'
PSSBIN = r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN'
PSSE_PY34 = r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSPY34'
sys.path.append(PSSBIN)
sys.path.append(PSSE_PY27)
sys.path.append(PSSE_PY34)

import pssexplore34

However, there is the following error message:

Error in opening PSSE PSSE Xplore 34 registry key 'Product Paths'
Traceback:
File '.\psseloc.py', line 140, in _set_psse_loc
WindowsError: [Error 2] The system cannot find the file specified

Can someone help me with this? Is there some other path that I need to provide?

Error with importing pssexplore34 (related to _set_psse_loc)

Hi,

I am trying to run psspy in psse xplore v34 using the following block of script:

import os
import sys

PSSE_PY27 = r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSPY27'
PSSBIN = r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN'
PSSE_PY34 = r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSPY34'
sys.path.append(PSSBIN)
sys.path.append(PSSE_PY27)
sys.path.append(PSSE_PY34)
os_path_PSSE=r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN'
os.environ['PATH'] += ';' + os_path_PSSE
os.environ['PATH'] += ';' + sys_path_PSSE 

import pssexplore34

However, there is the following error message:

Error in opening PSSE PSSE Xplore 34 registry key 'Product Paths'
Traceback:
File '.\psseloc.py', line 140, in _set_psse_loc
WindowsError: [Error 2] The system cannot find the file specified

Can someone help me with this? Is there some other path that I need to provide?

Error with importing pssexplore34 (related to _set_psse_loc)

Hi,

I am trying to run psspy in psse xplore v34 using the following block of script:

import os
import sys

PSSE_PY27 = r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSPY27'
PSSBIN = r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN'
sys.path.append(PSSBIN)
sys.path.append(PSSE_PY27)
os_path_PSSE=r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN'
os.environ['PATH'] += ';' + os_path_PSSE
os.environ['PATH'] += ';' + sys_path_PSSE 

import pssexplore34

However, there is the following error message:

Error in opening PSSE PSSE Xplore 34 registry key 'Product Paths'
Traceback:
File '.\psseloc.py', line 140, in _set_psse_loc
WindowsError: [Error 2] The system cannot find the file specified

Can someone help me with this? Is there some other path that I need to provide?