Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

psspy couldnt be resolved

hi, I am trying to run a python code in visual studio. I am getting an error 'import psspy could not be resolved'. Although my code is running. Then why I am seeing this issue? used the following: import os import sys pssedir = r"C:\Program Files\PTI\PSSE35\35.5\PSSBIN" sys.path.append(pssedir) os.environ['PATH'] = os.environ['PATH'] + ';' + psse_dir

pydir = r"C:\Program Files\PTI\PSSE35\35.5\PSSPY37" sys.path.append(pydir) os.environ['PATH'] = os.environ['PATH'] + ';' + py_dir

import psse35 import psspy

click to hide/show revision 2
No.2 Revision

psspy couldnt be resolved

hi, I am trying to run a python code in visual studio. I am getting an error 'import psspy could not be resolved'. Although my code is running. Then why I am seeing this issue? used the following: following:

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

psse_dir

pydir py_dir = r"C:\Program Files\PTI\PSSE35\35.5\PSSPY37" sys.path.append(pydir) sys.path.append(py_dir) os.environ['PATH'] = os.environ['PATH'] + ';' + py_dir

py_dir

import psse35 import psspy

psspy