Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi jconto thanks for your fast replay :-) Your solution didn’t do the trick! I have updated PSS/E to ver. 33.4 I moved the two files that you mention. And here is what PSS/E writ in the output bar: Executing Python file:H:\PV to excel\PV to excel1.py

Traceback (most recent call last):

File "H:\PV to excel\PV to excel1.py", line 3, in <module>

import pssexcel

File ".\pssexcel.py", line 36, in <module>

File ".\excelpy.py", line 168, in <module>

File "C:\Python27\lib\site-packages\win32com\client_init_.py", line 11, in <module>

import gencache

File "C:\Python27\lib\site-packages\win32com\client\gencache.py", line 662, in

<module>

__init__()

File "C:\Python27\lib\site-packages\win32com\client\gencache.py", line 58, in init

Rebuild()

File "C:\Python27\lib\site-packages\win32com\client\gencache.py", line 649, in Rebuild

_SaveDicts()

File "C:\Python27\lib\site-packages\win32com\client\gencache.py", line 65, in _SaveDicts

f = open(os.path.join(GetGeneratePath(), "dicts.dat"), "wb")

File "C:\Python27\lib\site-packages\win32com\client\gencache.py", line 141, in

GetGeneratePath

f = open(fname,"w")

IOError: [Errno 13] Permission denied: 'C:\Python27\lib\site-

packages\win32com\gen_py\init.py'

Couldn't open Python file:H:\PV to excel\PV to excel1.py

Even the PSS/E built in tool for exporting PV data to excel is not working!! Any ideas? And does anyone have a working python code or procedure for exporting PV data to excel for PSS/E ver. 33.4?? Regerds Thomas