First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
I've been wondering if it's possible to set psspy running on Ubuntu. Just because I'm more familiar with bash commands instead of cmd. It'd be easier for me to run the python scripts from there.
2 | No.2 Revision |
I've been wondering if it's possible to set psspy running on Ubuntu. Just because I'm more familiar with bash commands instead of cmd. It'd be easier for me to run the python scripts from there. there.
Steps to reproduce what I've done so far, based on some tutorials I saw online:
PSSE35.3
.PSSBIN
, copy the folder for the corresponding python version and put it in PSSBIN
. In this case, I would be adding PSSPY37
.In the python script, include the following code:
import os, sys
PSSE_PATH = r'/mnt/path/location/in/windows'
sys.path.append(PSSE_PATH)
os.environ['PATH'] += ':' + PSSE_PATH
import psse35, psspy, redirect, dyntools, pssarrays
What I expect is that adding the path would include the pss libraries, but I still get a ModuleNotFoundError
when I run the script.
Traceback (most recent call last):
File "test_file.py", line 10, in <module>
import psse35, psspy, redirect, dyntools, pssarrays
ModuleNotFoundError: No module named 'psse35'
Same thing happens to all the other imports in that line if I don't add the others as imports.