import pssexcel
Hi all, I try to run the line: "import pssexcel" in python but the erro was: "ImportError: No module named pssexcel" Someone know how to fix it? Tks.
First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
Hi all, I try to run the line: "import pssexcel" in python but the erro was: "ImportError: No module named pssexcel" Someone know how to fix it? Tks.
Which PSS/E version are you using?
The 'pssexcel' module needs the 'win32api' module, and the 'win32api' is not installed with the original python. So you need to install pywin32 in order to import win32api module to python. The pywin32 can be downloaded from internet.
If you run your python code directly within the PSS/E version 33 GUI, you probably have some problem with the win32api module. This is because there is a conflict between PSS/E 33 GUI and win32api module. I don't know how to solve this problem.
However, you can use an alternative method, that is to run python on top of PSS/E, in other words, run python independently without running PSS/E. What you need to do is to tell python where the module psspy and pssexcel located in your computer. You can find this method in this forum. This has been discussed time and time again.
Your question is very similar to the previous question titled 'Exporting PV curve data from PSS/E to excel'. Your can search that question in this forum for some information.
Hey Terry, I can run the pssexcel module fine on my computer but when others in my group use the program, they get the DLL not found error. Everyone in the group is using PSSE 33.9. Any suggestions or comments are appreciated. Thanks.
Hi Terry and anyone,
Issue with importing pssexcel. Below is the error message. Does anyone know how to get this working?
Regards, Michael
Traceback (most recent call last): File "M:\test.py", line 1, 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_init_.py", line 5, in <module> import win32api, sys, os ImportError: DLL load failed: The specified module could not be found. Couldn't open Python file:M:\test.py
Asked: 2013-12-12 21:45:14 -0500
Seen: 2,024 times
Last updated: Jan 30 '14