Page 1 of 1

Error message on startup

Posted: Mon May 14, 2018 8:38 am
by Mastiff
For all WIP versions so far (until the newest, which I'm running) I have had this error coming in:

Code: Select all

10:34:19   Traceback (most recent call last) (WIP-2018.05.06-11.06.16):
10:34:19     File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionItem.py", line 204, in SetArguments
10:34:19       self.compiled = self.executable.Compile(*args)
10:34:19   TypeError: __init__() takes at most 2 arguments (5 given)
Is this an error in my configuration? It is the first thing that comes in when I start up.

Re: Error message on startup

Posted: Mon May 14, 2018 4:41 pm
by topix
Some function call has changed it parameters. For example from TheFunc(para1, para2, para3, para4, para5) to TheFunc(para1, para2). EG has stored the old parameters 1-5 and will give them to the new function which only accepts two. That's the reason for the exception.

Enable -debug and watch the lines before the exception. Hopefully this will give a clue from where the wrong function call comes (which plugin).

Re: Error message on startup

Posted: Thu May 17, 2018 2:41 pm
by Mastiff
Here's the output before and right after:
16:39:38 DEBUG: 0 MainThread: No module named paho.mqtt.client
16:39:38 DEBUG: 0 EventThread: EventThread.StartSession(filename=u'D:\\EventGhost\\Ny Automatiseringsserver p\xe5 hytta.xml')
16:39:38 DEBUG: 0 ActionThread: ActionThread.StartSession(filename=u'D:\\EventGhost\\Ny Automatiseringsserver p\xe5 hytta.xml')
16:39:38 DEBUG: 1 MainThread: OSDFrame.__init__(parent=None)
16:39:38 DEBUG: 0 Thread-3: SessionChangeNotifier.Register()
16:39:38 DEBUG: 0 MouseThread: MouseThread.run()
16:39:38 DEBUG: 0 ActionThread: Document.Load(filePath=u'D:\\EventGhost\\Ny Automatiseringsserver p\xe5 hytta.xml')
16:39:38 DEBUG: 0 MainMessageReceiver: PowerBroadcastNotifier.OnPowerBroadcast(hwnd=394044, uMsg=536L, wParam=32787L, lParam=5660232)
16:39:38 DEBUG: 0 ActionThread: StartLoad(cls=<class 'eg.Classes.TreeLink.TreeLink'>)
16:39:39 DEBUG: 0 ActionThread: EGAppControl.__init__()
16:39:39 DEBUG: 0 ActionThread: Compile.__del__()
16:39:39 Traceback (most recent call last) (WIP-2018.04.10-17.53.02):
16:39:39 File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionItem.py", line 204, in SetArguments
16:39:39 self.compiled = self.executable.Compile(*args)
16:39:39 TypeError: __init__() takes at most 2 arguments (5 given)
16:39:39 DEBUG: 0 ActionThread: Document.SetExpandState(expanded=set([0, 1, 258, 3, 263, 66, 256, 67, 22, 23, 285, 160, 161, 162, 163, 292, 167, 168, 169, 170, 257, 54, 55, 56, 63, 64, 194, 195, 68, 197, 198, 71, 311, 76, 77, 220, 343, 344, 219, 348, 350, 354, 355, 232, 361, 235, 360, 275, 244, 245, 247, 253, 254, 255]))
16:39:39 DEBUG: 0 ActionThread: XML loaded in 1.133622 seconds.

Re: Error message on startup

Posted: Mon May 21, 2018 11:39 am
by topix
Can i get your config file ('D:\\EventGhost\\Ny Automatiseringsserver p\xe5 hytta.xml') and a list of the plugins with version number (copy/paste/execute the script below)?

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="0.5.0-rc4">
    <Action XML_Guid="{BCB48052-5007-4D24-9129-755CC2BA9D62}">
        EventGhost.PythonScript(u'for item in eg.pluginManager.GetPluginInfoList():\n    print item.pluginName, item.version')
    </Action>
</EventGhost>