Error message on startup... how to find where?

If you have a question or need help, this is the place to be.
Post Reply
V_J
Experienced User
Posts: 237
Joined: Tue Mar 04, 2014 9:00 am

Error message on startup... how to find where?

Post by V_J » Tue May 12, 2020 5:43 pm

Hello,

I've sudden started getting errormessages on startup, and I have no idea how to start looking. The messages are:

Code: Select all

EventGhost.Startup Tuesday, May 12th, 2020 @ 19:38:56 PM
Autostart
System.Monitor.On
Main.OnInit
System.PowerSource.Line
System.PowerSaving.Off
System.PowerProfile.Balanced
Error compiling script.
Traceback (most recent call last):
SyntaxError: invalid syntax (4, line 1)
Error compiling script.
Traceback (most recent call last):
SyntaxError: invalid syntax (5, line 1)
Traceback (most recent call last) (0.5.0-rc6):
  File "wx\_core.pyc", line 16766, in <lambda>
  File "C:\Program Files (x86)\EventGhost\eg\Core.py", line 196, in Notify
    listener(value)
  File "C:\Program Files (x86)\EventGhost\eg\Classes\MainFrame\TreeCtrl.py", line 842, in OnNodeSelected
    path = node.GetPath()
  File "C:\Program Files (x86)\EventGhost\eg\Classes\TreeItem.py", line 284, in GetPath
    path.append(parent.childs.index(item))
ValueError: tuple.index(x): x not in tuple
Error compiling script.
Traceback (most recent call last):
SyntaxError: invalid syntax (6, line 1)
Traceback (most recent call last) (0.5.0-rc6):
  File "wx\_core.pyc", line 16766, in <lambda>
  File "C:\Program Files (x86)\EventGhost\eg\Core.py", line 196, in Notify
    listener(value)
  File "C:\Program Files (x86)\EventGhost\eg\Classes\MainFrame\TreeCtrl.py", line 847, in OnNodeSelected
    childNode = parent.childs[pos]
IndexError: list index out of range
Windows.User.jv {'IsLocalAdmin': True, 'IsDomainLogin': False}
EventGhost.Startup Tuesday, May 12th, 2020 @ 19:39:04 PM
I have not edited the .egtree file manually.
I have tried disabling all plugins at startup, but the error persists. At times disabling many things triggers an error that there is too deep a recursion happening, but I cannot seem to reproduce it.

Do I have to start from an empty file and start adding/creating subtree by subtree, or is there a better way... please tell me there is a better way, I just finished creating all events and actions...... :shock:

V_J
Experienced User
Posts: 237
Joined: Tue Mar 04, 2014 9:00 am

Re: Error message on startup... how to find where?

Post by V_J » Tue May 12, 2020 5:51 pm

Sorry... Small panic...
I've narrowed it down to one of my own Python scripts... I did not realize there are loaded even when disabled... now to figure out which one

V_J
Experienced User
Posts: 237
Joined: Tue Mar 04, 2014 9:00 am

Re: Error message on startup... how to find where?

Post by V_J » Tue May 12, 2020 8:57 pm

Problem solved... not sure what it was though... :)

User avatar
kgschlosser
Site Admin
Posts: 5504
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Error message on startup... how to find where?

Post by kgschlosser » Sun Jun 07, 2020 5:25 am

I wanted to give you some insight to this kind of an error. there are a few hints in the error that let you know what is going on.

the first is "Error compiling script." This is a HUGE clue. Its is telling you that it's a python script issue.
The next clue is this. "SyntaxError: invalid syntax (4, line 1)"
The information at the end. it is file, line number. because a phone script does not have an associated file you see the number 4. That means it is script number 4. This is not going to help you locate the script causing the problem, but you should know what it is any how. the line number tells you the exact line in the script that is causing the problem.

This is the real treat.. When you see any error that is generated by a Python script look at your tree and look at the item that is highlighted... It is going to be the script that threw the error. I coded in a helping hand for ya to locate the script that is having an issue. I have several hundred scripts in my tree and trying to locate one that is pitching a fit about something was a pain to do. So I thought it would be nice to have it point to where the problem is coming from.
If you like the work I have been doing then feel free to Image

Post Reply