Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Error message after upgrade to r1669

Found a bug in EventGhost? Report it here.
Post Reply
piert
Experienced User
Posts: 321
Joined: Tue Jun 14, 2011 2:53 pm

Error message after upgrade to r1669

Post by piert »

After upgrading I get two error messages: one in the startup of EG and the other relates to Suntracker:

Code: Select all

14:45:50   ---> Welcome to EventGhost <---
14:46:01   Error compiling script.
14:46:01   Traceback (most recent call last) (1669):
14:46:01     File "C:\Program Files\EventGhost\eg\Classes\ActionItem.py", line 121, in SetArguments
14:46:01       self.compiled = self.executable.Compile(*args)
14:46:01     File "C:\Program Files\EventGhost\plugins\EventGhost\PythonScript.py", line 71, in __init__
14:46:01       self.PrintTraceback()
14:46:01     File "C:\Program Files\EventGhost\plugins\EventGhost\PythonScript.py", line 97, in PrintTraceback
14:46:01       treeItem.PrintError("Traceback (most recent call last):")
14:46:01   AttributeError: 'NoneType' object has no attribute 'PrintError'
14:46:03   Autostart
14:46:03      Plugin: Log redirector
14:46:03      Plugin: Zoom Player
14:46:03      Plugin: Task Create/Switch Events
14:46:03      Enable exclusive: Keyboard Emulation
14:46:03      Plugin: Broadcaster
14:46:03      Plugin: Network Event Receiver
14:46:03      Plugin: Timer
14:46:03      Plugin: Network Event Sender
14:46:03      Plugin: SunTracker
14:46:03         Error starting plugin: SunTracker
14:46:03         Traceback (most recent call last) (1669):
14:46:03           File "C:\Program Files\EventGhost\eg\Classes\PluginInstanceInfo.py", line 177, in Start
14:46:03             self.instance.__start__(*self.args)
14:46:03         TypeError: __start__() takes exactly 17 arguments (14 given)
Does the above make sense to anyone?
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Error message after upgrade to r1669

Post by Pako »

I'm sorry, but I moved your post to the right place.
piert wrote:14:46:01   Error compiling script.
It appears that some Python Script includes bug.
piert wrote:TypeError: __start__() takes exactly 17 arguments (14 given)
SunTracker plugin has been upgraded and now has more setting parameters. This is a mistake plugin author, it has to be done in such a way that the error not occurred.

Pako
piert
Experienced User
Posts: 321
Joined: Tue Jun 14, 2011 2:53 pm

Re: Error message after upgrade to r1669

Post by piert »

Obviously I don't want to end up with similar error messages on my working 'non-test PC'.

Is there a way to roll back from an Eventghost upgrade?
If so, is it as easy as making a copy as backup of the entire Eventghost program folder and renaming that, for instance, to Eventghost-OLD, prior to installing the new Eventghost version. So then, should there be error messages that can not be resolved easily, I can just delete the new program folder and replace it with the Eventghost-OLD folder, renamed back to just Eventghost?

Or is it not so easy and is there a lot of entries in other places, such as the registry of the PC?
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Error message after upgrade to r1669

Post by krambriw »

Dear Pako, thank you for this advice, I did not know this about the __start__ that needs default parameters, :oops:

I will for sure update this in upcoming versions of my plugins.

For the SunTracker plugin, the best is to follow this upgrade advice, that should work:

1) When EG is running, disable the SunTracker plugin and all SunTracker actions so that they all stops
- save and exit EG

2) Start EG again

3) Now configure the SunTracker plugin by opening the config dialog, check and modify eventually the settings, when finished, click ok, then enable the plugin so that it starts.

4) Now for each action, configure each of them by opening them and clicking ok

5) Enable each of the actions

6) Open the settings for the plugin again and check that they are all running
- save the configuration

7) You are done!
piert
Experienced User
Posts: 321
Joined: Tue Jun 14, 2011 2:53 pm

Re: Error message after upgrade to r1669

Post by piert »

In/between which of the steps is the new version of the plugin inserted/applied, or does it automatically come with the most recent version of Eventghost?

Also, after I upgraded and as mentioned in the first post of this thread, I got an error that seems not to be related to Suntracker:

Code: Select all

14:45:50   ---> Welcome to EventGhost <---
14:46:01   Error compiling script.
14:46:01   Traceback (most recent call last) (1669):
14:46:01     File "C:\Program Files\EventGhost\eg\Classes\ActionItem.py", line 121, in SetArguments
14:46:01       self.compiled = self.executable.Compile(*args)
14:46:01     File "C:\Program Files\EventGhost\plugins\EventGhost\PythonScript.py", line 71, in __init__
14:46:01       self.PrintTraceback()
14:46:01     File "C:\Program Files\EventGhost\plugins\EventGhost\PythonScript.py", line 97, in PrintTraceback
14:46:01       treeItem.PrintError("Traceback (most recent call last):")
14:46:01   AttributeError: 'NoneType' object has no attribute 'PrintError'
14:46:03   Autostart
Do you or anyone else know what this problem could be, or where I should look to provide some more information?
If I can not roll back to a previous version of Eventghost, I don't want to mess up an otherwise working configuration!
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Error message after upgrade to r1669

Post by Pako »

piert wrote:14:46:01   Error compiling script.
I've already answered it.
So once again otherwise.
Your configuration tree contains one (or more) of actions Python Script.
Somewhere there is a bug.
When I do not have that script (-s) available, I can not say what is wrong.
piert wrote:If I can not roll back to a previous version of Eventghost, ...
You can install a previous version of EventGhost.
Nothing prevents you from doing.

Pako
Post Reply