Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

PSSPY on WSL with Ubuntu?

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.

PSSPY on WSL with Ubuntu?

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:

  • Download and install PSSE35.3.
  • Set up Python 3.7 (I was told that for some reason it doesn't work with more recent python versions).
  • In the installation path, under PSSBIN, copy the folder for the corresponding python version and put it in PSSBIN. In this case, I would be adding PSSPY37.
  • Set up a virtual environment configured with Python 3.7.
  • 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.