Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How do I import the psspy module in a Python script?

I've been running PSSE from the Graphical interface for a while now, but a colleague told me I could automate some tasks by using Python to run the show. I'm familiar with Python and I've tried importing the psspy module by issuing,

import psspy

at the start of the script but I am getting this error:

Traceback (most recent call last):
  File "qv.py", line 1, in <module>
    import psspy
ImportError: No module named psspy

What am I missing?

click to hide/show revision 2
retagged

How do I import the psspy module in a Python script?

I've been running PSSE from the Graphical interface for a while now, but a colleague told me I could automate some tasks by using Python to run the show. I'm familiar with Python and I've tried importing the psspy module by issuing,

import psspy

at the start of the script but I am getting this error:

Traceback (most recent call last):
  File "qv.py", line 1, in <module>
    import psspy
ImportError: No module named psspy

What am I missing?