Ask Your Question
0

import psse34 error

asked 2019-07-04 16:41:26 -0500

liumhp2 gravatar image

In the psse34 documents, they said for psse 33.8+ we could just use import psse 34 instead of

sys.path.append(PSSPY_location)
sys.path.append(PSSE_location)
os.environ['PATH'] += ';' + PSSPY_location
os.environ['PATH'] += ';' + PSSE_location

but when i tried to do this, the pycharm told me " ImportError: No module named psse34"

Is there any requirement or pre-setting i need to do to use this import psse34 ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-07-05 02:59:27 -0500

drsgao gravatar image

I am gussing that you do not have admin right?

If you do not have admin right then you cannot modify the environmental variable "Path" whatsoever (neither the user ones nor the system ones). If this is the case, you would still need to do the dynamic addition like in the past.

If you do have admin right, just add the "psse34" directory path to the "Path" and then it should be alright.

Another thing is that I notice that you have different codes for importing. One is "psse 34" and the other is "psse34". If this is not a typo, then you need to make sure that your import module name is identical to the one on your computer.

edit flag offensive delete link more

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

1 follower

Stats

Asked: 2019-07-04 16:41:26 -0500

Seen: 80 times

Last updated: Jul 05