Ask Your Question

tngo2104's profile - activity

2017-05-10 10:20:36 -0500 received badge  Famous Question (source)
2017-05-05 15:32:42 -0500 received badge  Notable Question (source)
2017-05-03 10:57:10 -0500 received badge  Popular Question (source)
2017-05-02 19:56:15 -0500 answered a question PSSE 34 with excel

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.

2017-05-02 09:52:25 -0500 asked a question PSSE 34 with excel

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.