Ask Your Question
0

PSSE 34 with excel

asked May 2 '17

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.

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 (May 2 '17)

3 answers

Sort by » oldest newest most voted
0

answered Jun 6 '17

kcruz gravatar image

Hi

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

import PSSE34 import pssexcel

etc. etc.

link
0

answered May 3 '17

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.

link
0

answered May 3 '17

jconto gravatar image

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

link

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

1 follower

Stats

Asked: May 2 '17

Seen: 1,130 times

Last updated: Jun 06 '17