Python Script Error - Please Help
#1
Hello "Phyton" professionals, Please Help!

I have a "PhytonScript" that sends an event to "EventGhost".

PHP Code:
import os
import sys
import win32api
from win32com
.client import Dispatch

eg 
Dispatch("EventGhost")
eg.TriggerEvent(u"FireEvent"

On the first call, everything is ok! Blush

On the second call comes the error: Sad

PHP Code:
16:53:47 T:10640  NOTICE: -->Python Interpreter Initialized<--
16:53:47 T:10640   ERROREXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - 
NOTEIGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            
Error Type: <type 'exceptions.AttributeError'>
                                            
Error Contents'NoneType' object has no attribute 'platform'
                                            
Traceback (most recent call last):
                                              
File "C:\KLOTZ Client\Main\portable_data\addons\script.fireevent\fireevent.py"line 4in <module>
                                                
from win32com.client import Dispatch
                                              File 
"C:\KLOTZ Client\Main\system\python\lib\site-packages\win32com\__init__.py"line 6in <module>
                                                
import pythoncom
                                              File 
"C:\KLOTZ Client\Main\system\python\lib\site-packages\pythoncom.py"line 3in <module>
                                                
pywintypes.__import_pywin32_system_module__("pythoncom"globals())
                                              
File "C:\KLOTZ Client\Main\system\python\lib\site-packages\win32\lib\pywintypes.py"line 20in __import_pywin32_system_module__
                                                
if not sys.platform.startswith("win32"):
                                            
AttributeError'NoneType' object has no attribute 'platform'
                                            
-->End of Python script error report<-- 

Can someone help me?
Sensman
Reply

Logout Mark Read Team Forum Stats Members Help
Python Script Error - Please Help0