Ask Your Question
0

PSSE 34 with excel

asked 2017-05-02 09:52:25 -0600

tngo2104 gravatar image

Dear PSSY comunity,

I am sorry to throw this post on excel for using python in PSSE again.

I tried to search in this forum and goole but could not fix the problem.

Any ideas would be helpful. I installed PSSE 34 from Siemen website and used Python 2.7 as by following link: (http://www.whit.com.au/blog/python-li...)

I can run the PSSE now by Python by the commands:

import os
import sys
sys_path_PSSE=r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSPY27'  #or where else you find the psspy.pyc
sys.path.append(sys_path_PSSE)
os_path_PSSE=r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN'  # or where else you find the psse.exe
os.environ['PATH'] += ';' + os_path_PSSE
import redirect
redirect.psse2py()
import psspy
psspy.psseinit(100)     # initialize psse with 100 bus system**

However, when I used import pssexcel, the error is below eventhough pssexcel was in the PSSPY27 folder.

Traceback (most recent call last):
File "C:\Users\Ngo Tuan\Desktop\tuan.py", line 14, in <module>
    import pssexcel
File ".\pssexcel.py", line 40, in <module>
ImportError: No module named excelpy

I tried to find excelpy but could not find the file. If anyone knows how to fix this, I would appreciate that.

edit retag flag offensive close merge delete

Comments

Hello I also had same error message. If you write me a message I can send you the missing excelpy.pyc file which fixed my problem. psspyd48@gmail.com

bdavid gravatar imagebdavid ( 2017-05-02 17:58:19 -0600 )edit

3 answers

Sort by ยป oldest newest most voted
0

answered 2017-06-06 13:00:38 -0600

kcruz gravatar image

Hi

In PPSE 34 you can call the libreries directly, only write in your script

import PSSE34 import pssexcel

etc. etc.

edit flag offensive delete link more
0

answered 2017-05-02 19:56:15 -0600

tngo2104 gravatar image

Hi David, Thanks for your nice help. Would you mind to send the file to my email: ngo.tuan.1985@gmail.com Again, I appreciate your kindness.

edit flag offensive delete link more
0

answered 2017-05-02 19:39:25 -0600

jconto gravatar image

Check the post "psspy module not found in PSS/E 34"

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: 2017-05-02 09:52:25 -0600

Seen: 1,126 times

Last updated: Jun 06 '17