ImportError: DLL Load failed:...
Sadly I am not sure how to load screen shots for this so I hope my explanation is clear.
I have a fresh install of the student vs. of PSSe with Python. I am attempting to teach myself how to use them. There are some very good video tutorials out there, but none of them address this type of issue.
I am running win7 (yeah i know MS Windows is not the best for programming, but hey its what companies use, so its what I am learning on) and PSSE 34 with I believe python 2.7.
I have verified the path of psse: C:\program files (x86)\pti\pssexplore34\
I found psspy.pvc and psspy.pyd in the psspy27 sub-directory of above. All I am attempting to perform right now is to get python to call psspy and run a simple 100 node example file.
following this video: https://www.youtube.com/watch?v=nHrAA...
My script looks as follows:
`import os
import sys
PSSE_PATH = r"C:\Program Files (x86)\PTI\PSSExplore34\PSSPY27"
sys.path.append(PSSE_PATH)
os.environ['PATH'] += ';' + PSSE_PATH
import psspy
psspy.psseinit(100)`
when I run the above script I get the following output from python shell:
====================== RESTART: C:/Python27/program1.py ======================
Traceback (most recent call last):
File "C:/Python27/program1.py", line 8, in <module>
import psspy
File ".\psspy.py", line 56, in <module>
ImportError: DLL load failed: The specified module could not be found.
Sorry to be a bother, but next? What DLL is missing, were do I get said DLL, and how do I resolve this error so I can start to practice?
Thank you in advance.
Is that the correct path? I would expect it to be `C:\Program Files (x86)\PTI\PSSExplore34\PSSBIN`. And there should be a some libraries in it (`.pyd` or `.dll` files)