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

Ask Your Question
0

psspy.case() giving error "Not open for physical access."

asked Apr 27 '17

anders6307 gravatar image

When I'm trying to initialize my case with the following code the "psspy.case" command results in a message back to the console stating "Not open for physical access. C:\PTI\case.sav (RWFIL/CASE)"

I can't find anything anywhere about what this means. Can anyone shed some light on this? Thanks

ierr = psspy.psseinit(12000)
print(ierr)
psspy.case(r'C:\PTI\case.sav')

2 answers

Sort by » oldest newest most voted
0

answered Apr 28 '17

anders6307 gravatar image

Ok I solved this by including the PSSBIN folder in the PATH environment variable manually. Not sure why my code wasn't doing it but got it figured out!

link
0

answered Apr 28 '17

jconto gravatar image

do you get same error with case 'savnw.sav'? Running within the GUI or from a DOS (console) window? psse version?

link

Comments

So when I run the psspy.case command from within PSS/E I don't get any errors and it initializes just fine. But when I run it from just python, I get that error. Of note, when the psseinit command is run, I get a message in the console saying "FILEINFO.DLL" not found

anders6307 gravatar imageanders6307 (Apr 28 '17)

(cont'd) I verified there is a fileinfo.dll file in the PSSBIN folder, which I do have added in the PATH earlier in my code that isn't shown. I'm also importing the redirect module and calling the redirect.psse2py() module as well

anders6307 gravatar imageanders6307 (Apr 28 '17)

Should also note that I have PSSE version 33.10.0

anders6307 gravatar imageanders6307 (Apr 28 '17)

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

2 followers

Stats

Asked: Apr 27 '17

Seen: 1,499 times

Last updated: Apr 28 '17