Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To run a python code located in the "example" folder, open PSSe, load the "savnw.sav" case and then run the python script pout_excel.py.

When the error is related to: "Import Error: DLL load failed..." and for the above python code (lines 70 to 72):

import win32com.client      #<- win32com shall be installed by user during PSSe installation
import os                   #<- os is installed with python
import psspy                #<- psspy is installed with PSSe

My guess is that your PSSe/python installation does not have the module "win32com" installed. Re-install psse and make sure that the option to install "win32com" is checked.