Error message on startup

This is where you report any issues if you are running a beta version of EventGhost
Forum rules
To submit a possible bug report please follow this template

Version: 0.5 beta 2 (the version you are running)
Traceback: Traceback (most recent call last):
File "<SOME_EVENTGHOST_FILE.py>", line 10, in <module>
SOME_FUNCTION()
File "<SOME_EVENTGHOST_FILE.py>", line 4, in SOME_EVENTGHOST_MODULE
SOME_FUNCTION()

copy and past any traceback information from the log if there is no traceback put NONE

Event:
Main.test.0.1.2.3.4.5.6.7.8
1
2

in the Event field you will want to put the event that was triggered just prior to the traceback occurring, if there is personal data put PERSONAL DATA if there was no traceback or no event triggered right before the traceback put NO EVENT

Description: if you have the ability to replicate the issue then put in here a description of what you are doing to create the problem.

Screen Shots: screen shots of the error and any events/macros/acrions that were run before the issue or screen shots of the problem

Files: any files that may be used to isolate where the issue is. something like the log.txt file would go here

if you provide the above information before hand it will greatly speed up the diagnostic process. we will not have to ask for the bits and pieces. And also having a well formatted Bug Report filled out will get answered sooner then the ones that aren't
Post Reply
Mastiff
Experienced User
Posts: 865
Joined: Thu May 03, 2012 10:43 am

Error message on startup

Post by Mastiff » Mon May 14, 2018 8:38 am

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.

User avatar
topix
Experienced User
Posts: 413
Joined: Sat May 05, 2007 3:43 pm
Location: Germany
Contact:

Re: Error message on startup

Post by topix » Mon May 14, 2018 4:41 pm

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).

Mastiff
Experienced User
Posts: 865
Joined: Thu May 03, 2012 10:43 am

Re: Error message on startup

Post by Mastiff » Thu May 17, 2018 2:41 pm

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.

User avatar
topix
Experienced User
Posts: 413
Joined: Sat May 05, 2007 3:43 pm
Location: Germany
Contact:

Re: Error message on startup

Post by topix » Mon May 21, 2018 11:39 am

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>

Post Reply