First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked Jan 4 '12

Daniel_Hillier gravatar image

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

updated Jan 12 '12

JervisW gravatar image

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?