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.

Going crazy

If you have a question or need help, this is the place to be.
Post Reply
piert
Experienced User
Posts: 321
Joined: Tue Jun 14, 2011 2:53 pm

Going crazy

Post by piert »

Guys, I need some help.

I have been using Eventghost many years and have done so on several XP and Win 7 machines.
Although I am not a computer wizard, I have built up quite a lot of experience by following this forum's experienced users and by just trial and error and persistence. However, I have now got a really strange problem on a Windows 7 Ultimate 32 bit PC and I can't find out what the problem is.
I have Eventghost running with minimal plugins and only a few lines of code. I 'capture' Windows MCE commands from my Infrared remote and make Eventghost hit a virtual 'Shift key' every 30 seconds to keep the PC awake. This has been running OK for more than a year without problems.

I recently wanted to add some plugins to do some additional things. I found that it was not possible to add some of the plugins. For instance, when I try to add the Network sender or receiver plugin, or the Pushbullet plugin, I get many red lines in the log with all sorts of information that does not point to what is going wrong.
For instance, when trying the network receiver plugin, I get this:
  • Traceback (most recent call last) (1722):
    File "C:\Program Files\EventGhost\eg\Classes\TaskletDialog.py", line 59, in ProcessingTask
    self.Configure(*args, **kwargs)
    File "C:\Program Files\EventGhost\eg\Classes\ConfigDialog.py", line 165, in Configure
    treeItem.Configure(*args)
    File "C:\Program Files\EventGhost\eg\Classes\ActionItem.py", line 101, in Configure
    return self.executable.Configure(*args)
    File "C:\Program Files\EventGhost\plugins\NetworkReceiver\__init__.py", line 240, in Configure
    portCtrl = panel.SpinIntCtrl(port, max=65535)
    File "C:\Program Files\EventGhost\eg\Classes\ControlProviderMixin.py", line 29, in SpinIntCtrl
    return eg.SpinIntCtrl(self, -1, value, *args, **kwargs)
    File "C:\Program Files\EventGhost\eg\Classes\SpinIntCtrl.py", line 55, in __init__
    integerWidth=integerWidth
    File "C:\Program Files\EventGhost\eg\Classes\SpinNumCtrl.py", line 87, in __init__
    numCtrl.SetParameters(**kwargs) # To avoid bug in NumCtrl
    File "wx\lib\masked\numctrl.pyc", line 714, in SetParameters
    AttributeError: groupChar and decimalChar must be distinct
    Traceback (most recent call last) (1722):
    File "wx\_core.pyc", line 14669, in <lambda>
    File "C:\Program Files\EventGhost\eg\Core.py", line 197, in Notify
    listener(value)
    File "C:\Program Files\EventGhost\eg\Classes\MainFrame\TreeCtrl.py", line 798, in OnNodeAdded
    pos
    File "C:\Program Files\EventGhost\eg\Classes\MainFrame\TreeCtrl.py", line 468, in CreateTreeItemAt
    return self.CreateTreeItem(node, parentId)
    File "C:\Program Files\EventGhost\eg\Classes\MainFrame\TreeCtrl.py", line 456, in CreateTreeItem
    node.SetAttributes(self, itemId)
    File "C:\Program Files\EventGhost\eg\Classes\PluginItem.py", line 87, in SetAttributes
    if self.info.lastException or self.info.initFailed:
    AttributeError: 'NoneType' object has no attribute 'lastException'
    Traceback (most recent call last) (1722):
    File "wx\_core.pyc", line 14669, in <lambda>
    File "C:\Program Files\EventGhost\eg\Core.py", line 197, in Notify
    listener(value)
    File "C:\Program Files\EventGhost\eg\Classes\MainFrame\TreeCtrl.py", line 844, in OnNodeSelected
    path = node.GetPath()
    File "C:\Program Files\EventGhost\eg\Classes\TreeItem.py", line 377, in GetPath
    path.append(parent.childs.index(item))
    AttributeError: 'NoneType' object has no attribute 'childs'
If I add, for instance, the OSD Menu plugin, this works OK. However, when I try to save the Eventghost file, the save button is greyed out, so I can't save. I can do a 'save as', and reopen it later, but at no point in time can I add the network sender/receiver, broadcast or Pushbullet plugins (which are the ones I want).

When I try to go to Eventghost's menu bar: 'File-options' , nothing happens. I.e, I can not open the options panel of Eventghost. It gives several red lines in the log as follows:
  • Traceback (most recent call last) (1722):
    File "C:\Program Files\EventGhost\eg\Classes\TaskletDialog.py", line 59, in ProcessingTask
    self.Configure(*args, **kwargs)
    File "C:\Program Files\EventGhost\eg\Classes\OptionsDialog.py", line 129, in Configure
    max=999
    File "C:\Program Files\EventGhost\eg\Classes\ControlProviderMixin.py", line 29, in SpinIntCtrl
    return eg.SpinIntCtrl(self, -1, value, *args, **kwargs)
    File "C:\Program Files\EventGhost\eg\Classes\SpinIntCtrl.py", line 55, in __init__
    integerWidth=integerWidth
    File "C:\Program Files\EventGhost\eg\Classes\SpinNumCtrl.py", line 87, in __init__
    numCtrl.SetParameters(**kwargs) # To avoid bug in NumCtrl
    File "wx\lib\masked\numctrl.pyc", line 714, in SetParameters
    AttributeError: groupChar and decimalChar must be distinct
I am logged in as admin, tried running Eventghost both as Admin and normal, both without succes.
I have opened the most basic Example.XML file to exclude the possibility of having a file with problem-characters that could create problems, but the same issues pop up with not being able to go to the options section, add plugins, or save.

I hope somebody has come across this before and knows what is going on here, or can share any tips or ideas on how to troubleshoot.
Thanks in advance for any help anyone can provide.

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

Re: Going crazy

Post by piert »

I noticed there is also a Beta version of Eventghost 0.5.0 and decided to give it a try after uninstalling Eventghost (I have tried both EventGhost 0.4.1.r1710 and latest release EventGhost 0.4.1.r1722).

After finishing installation and before Eventghost can start up, I get an error message that refers to a log and asks if I would like to open it.
When opened, it has the following message:
  • Traceback (most recent call last):
    File "EventGhost.pyw", line 53, in <module>
    File "C:\Program Files\EventGhost\eg\__init__.py", line 93, in <module>
    import Core # NOQA
    File "C:\Program Files\EventGhost\eg\Core.py", line 122, in <module>
    os.chdir(eg.configDir)
    WindowsError: [Error 2] Het systeem kan het opgegeven bestand niet vinden: u'C:\\Users\\Perry\\AppData\\Roaming\\EventGhost'
The last line is Dutch and means; "the system can not find the given file"

Is this an issue with access rights/permission levels?
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Going crazy

Post by kgschlosser »

It sounds as though something may have gotten corrupted. How you can test this is to go to your users/CURRENTUSERNAME/appdata/roaming/EventGhost folder.

The appdata folder is a hidden folder so you will have to enable show hidden folders and disable hide system files.

Copy the config file. And save it somewhere as a backup. Then copy your EG save file as a backup as well.

Go and do a full uninstall of EG.

Navigate to that same appdata and delete the EventGhost folder if it is still there. Go to program files and make sure it is deleted from there as well. If by chance you have any custom plugins make sure you back those up as well.

Install the same version as what you have currently installed. Run EG and see if you can duplicate the problem. With the stock config and save file. If not. Put the config file in place and repeat the process. And same deal with the save file. If at any point you experience the same problem. Let me know. And if it's with either of the 2 backed up files attach to a forum post. And if you do not feel comfortable doing that PM me and I will send you my Email.

I will need to see the problem file in whole without being altered to hide personal information. Due to text editors changing the format of things.

As far as the permissions thing this whole problem could be from a corrupted UAC which is your profile. Try creating a new user profile and test EG from there. And you may or may not be able to go to the profile in question. From the. Newly created profile and copy the files.

I am leaning towards the UAC so I would investigate that first. Take a look in your windows event viewer for UAC errors. If it is a corrupted profile there are ways to sort this problem out and you would have to search the net for a solution.

When there is a corrupted UAC windows will load a cached version which does not have the proper appdata folder there for the EventGhost data won't be there giving you the missing traceback.

Thats my thought. Think back because windows usually Informs you of this.
If you like the work I have been doing then feel free to Image
piert
Experienced User
Posts: 321
Joined: Tue Jun 14, 2011 2:53 pm

Re: Going crazy

Post by piert »

Hi KG,

Thank you very much for taking up the challenge!

I looked in the AppData Eventghost folder for the admin account that I am logged in with and found it was actually empty, except for a folder named gen_py, but this is also empty.

Note that Eventghost is running....

What type of file is supposed to be in the folder?
Could I put one there myself?
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Going crazy

Post by kgschlosser »

Ok there is supposed to be a config.py file in there. Here is what I need you to do.

That file gets dynamically changed at the opening and closing of EG so we need to know why it's not writing one. Unless there is a permissions issue (highly unlikely) or its a corrupted UAC. So we can test the UAC by doing this. Go to a command prompt. And type in

Code: Select all

cd %appdata%
And it will take you to the appdata folder for that user account. We want to verify it is in the same location as the one you navigated to. It show you the folder you are in on the left after you key that command. And let me know if it is or isn't the same folder.

And also check your event viewer for errors if there is something amiss it will be in there.

And you can type this in as well. At the command prompt

Code: Select all

icalcs %appdata%\roaming\EventGhost > %userprofile%\Desktop\FolderPermissions.txt

Use that command above to check the permissions on the EventGhost folder. It will output to a file that will be as saved on your desktop called FolderPermissions.txt. you can attach that file to a forum post if you like. Or PM me and i will give you my email to send it to.
Let me know.
If you like the work I have been doing then feel free to Image
piert
Experienced User
Posts: 321
Joined: Tue Jun 14, 2011 2:53 pm

Re: Going crazy

Post by piert »

it will take you to the appdata folder for that user account. We want to verify it is in the same location as the one you navigated to. It show you the folder you are in on the left after you key that command. And let me know if it is or isn't the same folder.
It is exactly the same folder.
And you can type this in as well. At the command prompt

Code: Select all

icalcs %appdata%\roaming\EventGhost > %userprofile%\Desktop\FolderPermissions.txt
The FolderPermissions.txt document is created, but it is completely empty?
And also check your event viewer for errors if there is something amiss it will be in there.
There are quite many fault errors in the logs (446 since March 2016). The logs are in Dutch.
Many have to do with unexpected closing of the service for a program I had on the system to program recordings in windows media center, Click2record. I no longer used it and have now uninstalled the program.
Other codes I can possibly trace back to unexpected closing of connections from my connected Xboxes (used as windows media extenders) and problems with resuming from standby (it is a windows media center PC, so will come out of standby very often for program recordings and guide updates).
The other codes give me information that I do not understand and contain no clues for me regarding a possible cause.


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

Re: Going crazy

Post by kgschlosser »

Ok we will have to wait until I get home to double check that icalcs command. I am on my phone right now so I will get back to you this evening
If you like the work I have been doing then feel free to Image
piert
Experienced User
Posts: 321
Joined: Tue Jun 14, 2011 2:53 pm

Re: Going crazy

Post by piert »

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

Re: Going crazy

Post by piert »

Hello KG,

Did you manage to find out something useful?
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Going crazy

Post by kgschlosser »

Sorry got super busy. I should be home in 30 and I will get right on it
If you like the work I have been doing then feel free to Image
Post Reply