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 Loading Config

If you have a question or need help, this is the place to be.
Post Reply
kalease
Posts: 3
Joined: Sun Dec 30, 2012 7:56 am

Error Loading Config

Post by kalease »

Hi,

I was wondering if anyone knows why I'm having the below issue after rebooting my machine, I can't seem to load any eventghost xml files, all I receive are the errors below. I'm running the latest release on Windows 7 Ultimate SP1.

Attached is my config.

Thanks

Traceback (most recent call last) (1600):
File "C:\Program Files (x86)\EventGhost\eg\Classes\MainFrame\__init__.py", line 345, in FuncWrapper
func()
File "C:\Program Files (x86)\EventGhost\eg\Classes\MainFrame\__init__.py", line 828, in OnCmdOpen
self.document.Open()
File "C:\Program Files (x86)\EventGhost\eg\Classes\Document.py", line 353, in Open
self.StartSession(filePath)
File "C:\Program Files (x86)\EventGhost\eg\Classes\Document.py", line 157, in StartSession
eg.eventThread.Func(eg.eventThread.StopSession)()
File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 62, in __call__
self.returnValue = self.func(*self.args, **self.kwargs)
File "C:\Program Files (x86)\EventGhost\eg\Classes\EventThread.py", line 151, in StopSession
actionThread.Func(actionThread.StopSession, 120)()
File "C:\Program Files (x86)\EventGhost\eg\Classes\ThreadWorker.py", line 62, in __call__
self.returnValue = self.func(*self.args, **self.kwargs)
File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionThread.py", line 76, in StopSession
eg.document.autostartMacro.UnloadPlugins()
AttributeError: 'Document' object has no attribute 'autostartMacro'
kalease
Posts: 3
Joined: Sun Dec 30, 2012 7:56 am

Re: Error Loading Config

Post by kalease »

Anyone run into this problem?
kkl
Experienced User
Posts: 317
Joined: Wed May 04, 2011 9:32 pm

Re: Error Loading Config

Post by kkl »

I'd suggest reinstalling EG and see if that helps. Make sure you make a copy of any *.xml files you need first.
kalease
Posts: 3
Joined: Sun Dec 30, 2012 7:56 am

Re: Error Loading Config

Post by kalease »

Thanks for the reply.

That was actually the first thing I tried. The strange part is I don't even see anything load in my tree on the right hand panel.
User avatar
wakko
Posts: 33
Joined: Sat Aug 20, 2011 9:27 pm
Location: Russia, Siberia

Re: Error Loading Config

Post by wakko »

You can try to rename "EventGhost" subdir in the "Application Data" dir. (To EventGhost.old, for example, just for test.) That dir should be in your windows user profile. Before doing that, unload Eventghost, and after renaming, run it again.
I'm on WindowsXP. Directory paths are differs on modern OSes like Vista-Seven, but it should be there anyway.
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Error Loading Config

Post by krambriw »

Before you destroy too much, here are my advices:

1) Try to locate your config.py file (on XP in folder ...C:\Users\...\AppData\Roaming\EventGhost)

Edit the first line,

Code: Select all

autoloadFilePath = u'C:\\Program Files\\EventGhost\\empty.xml'
set the name of the xml to "empty.xml", save and restart EG, now EG should start with an empty configuration.

2) Use a good editor and open your old faulty xml configuration, try to repair manually, eventually delete plugin and macro sections, try to open the file after changes, try again and hopefully you will be able to restore most of your work

Best regards, Walter
User avatar
wakko
Posts: 33
Joined: Sat Aug 20, 2011 9:27 pm
Location: Russia, Siberia

Re: Error Loading Config

Post by wakko »

krambriw wrote:Before you destroy too much, here are my advices:

1) Try to locate your config.py file (on XP in folder ...C:\Users\...\AppData\Roaming\EventGhost)

Edit the first line,

Code: Select all

autoloadFilePath = u'C:\\Program Files\\EventGhost\\empty.xml'
set the name of the xml to "empty.xml", save and restart EG, now EG should start with an empty configuration.

2) Use a good editor and open your old faulty xml configuration, try to repair manually, eventually delete plugin and macro sections, try to open the file after changes, try again and hopefully you will be able to restore most of your work

Best regards, Walter
Just to correct your typo, path you mentioned, not for XP, it's exactly for Kalease's Windows 7 OS.
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Error Loading Config

Post by krambriw »

Thanks, even better (I was mistakenly looking into the wrong computer :D but at the end, this was not too bad)
loveleejohn
Experienced User
Posts: 133
Joined: Thu Dec 10, 2015 12:09 am

Re: Error Loading Config

Post by loveleejohn »

Before you destroy too much, here are my advices:

1) Try to locate your config.py file (on XP in folder ...C:\Users\...\AppData\Roaming\EventGhost)

Edit the first line,

Code: Select all
autoloadFilePath = u'C:\\Program Files\\EventGhost\\empty.xml'


set the name of the xml to "empty.xml", save and restart EG, now EG should start with an empty configuration.
Resurrecting an ancient post to say thank you Walter! Just ran into a similar issue and changing this config file resolved it! I hope this isn't a normal occurrence but for now I am going to be backing up my XML's ever few minutes! Lol. Thanks.
Post Reply