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
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?
Same error happened to me a few days ago using the licensed version instead of the explore one. Try to comment out line import pssexplore34. That worked in my case.
Have you checked that those are working directories?