Ask Your Question

liumhp2's profile - activity

2019-08-09 02:05:16 -0500 received badge  Famous Question (source)
2019-07-09 19:26:39 -0500 received badge  Notable Question (source)
2019-07-07 12:33:39 -0500 received badge  Popular Question (source)
2019-07-04 16:41:26 -0500 asked a question import psse34 error

In the psse34 documents, they said for psse 33.8+ we could just use import psse 34 instead of

sys.path.append(PSSPY_location)
sys.path.append(PSSE_location)
os.environ['PATH'] += ';' + PSSPY_location
os.environ['PATH'] += ';' + PSSE_location

but when i tried to do this, the pycharm told me " ImportError: No module named psse34"

Is there any requirement or pre-setting i need to do to use this import psse34 ?

2019-06-29 10:14:38 -0500 received badge  Notable Question (source)
2019-06-29 10:14:38 -0500 received badge  Popular Question (source)
2019-06-29 10:14:38 -0500 received badge  Famous Question (source)
2019-06-28 09:48:00 -0500 received badge  Notable Question (source)
2019-06-28 09:48:00 -0500 received badge  Popular Question (source)
2019-06-23 04:29:50 -0500 asked a question Will PSSE 34 support Python3?

I saw there is a psspy34 in the PSSE34 folder.

2019-06-22 02:44:00 -0500 asked a question Cannot import dyntools

Recently I start to use Python instead of MATLAB. However, there is a lot of problems. I try to run python scripts, but it seems that there is something wrong with import dyntools. Code:

from __future__ import division

import os, sys, math, csv, time
PSSPY_location = r'C:\Program Files (x86)\PTI\PSSE34\PSSPY27'
PSSE_location = r'C:\Program Files (x86)\PTI\PSSE34\PSSBIN'
sys.path.append(PSSPY_location)
os.environ['PATH'] += ';' + PSSPY_location
os.environ['PATH'] += ';' + PSSE_location

import socket
import struct
import numpy, copy

import initialize_mute as mt    # mute all psse outputs
# import psse34
import dyntools
import psspy
import redirect

Report:
    import dyntools
  File ".\dyntools.py", line 51, in <module>
ImportError: No module named pssevrsn

Process finished with exit code 1