Ask Your Question
0

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

asked 2017-04-27 15:19:59 -0500

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')
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2017-04-28 12:26:14 -0500

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!

edit flag offensive delete link more
0

answered 2017-04-27 20:59:18 -0500

jconto gravatar image

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

edit flag offensive delete link more

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 ( 2017-04-28 08:20:03 -0500 )edit

(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 ( 2017-04-28 08:21:35 -0500 )edit

Should also note that I have PSSE version 33.10.0

anders6307 gravatar imageanders6307 ( 2017-04-28 11:52:58 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

2 followers

Stats

Asked: 2017-04-27 15:19:59 -0500

Seen: 1,390 times

Last updated: Apr 28 '17