[FIXED] About my problems with Eventghost

Found a bug in EventGhost? Report it here.
Post Reply
barmy
Posts: 5
Joined: Sat Jun 03, 2006 2:57 pm

[FIXED] About my problems with Eventghost

Post by barmy » Mon Jun 05, 2006 9:15 pm

Hi,

I have some troubles with my Eventghost... :(

I am not able to see some configuration panels :

for exemple, when I double click on X10 :

Code: Select all

Traceback (most recent call last):
  File "C:\Program Files\Hardware\EventGhost\eg\MainTree.py", line 255, in OnItemActivate
    pyObj.Configure()
  File "C:\Program Files\Hardware\EventGhost\eg\TreeItems\PluginItem.py", line 129, in Configure
    res = PluginConfigDialog(plugin, *self.args).DoModal()
  File "C:\Program Files\Hardware\EventGhost\eg\Dialogs\PluginConfigDialog.py", line 29, in __init__
    res = plugin.SetupConfigDialog(self, *args)
  File "plugins/X10/__init__.py", line 263, in SetupConfigDialog
    text = self.text
AttributeError: 'X10Remote' object has no attribute 'text'
(some problem for YArd, USB-UIRT... not the other)



when I try the same on OSD :

Code: Select all

Traceback (most recent call last):
  File "wx\lib\masked\numctrl.pyc", line 1140, in OnTextChange
  File "wx\lib\masked\maskededit.pyc", line 2806, in _OnTextChange
  File "wx\lib\masked\maskededit.pyc", line 5123, in _CheckValid
  File "wx\lib\masked\maskededit.pyc", line 5202, in _validateNumeric
IndexError: string index out of range
Traceback (most recent call last):
  File "C:\Program Files\Hardware\EventGhost\eg\MainFrame.py", line 756, in OnMenuNewAction
    ActionItem.CreateNew()
  File "C:\Program Files\Hardware\EventGhost\eg\TreeItems\ActionItem.py", line 194, in CreateNew
    if not self.Configure():
  File "C:\Program Files\Hardware\EventGhost\eg\TreeItems\ActionItem.py", line 276, in Configure
    result = self.action.Configure(self)
  File "C:\Program Files\Hardware\EventGhost\eg\ActionClass.py", line 59, in Configure
    return ActionConfigDialog(actionItem, icon).DoModal()
  File "C:\Program Files\Hardware\EventGhost\eg\Dialogs\ActionConfigDialog.py", line 31, in __init__
    res = action.SetupConfigDialog(self, 
  File "plugins/OSD/__init__.py", line 23, in SetupConfigDialog
    return eg.plugins.EventGhost.ShowOSD.SetupConfigDialog(*args, **kwargs)
  File "eg/CorePlugins/EventGhost\ShowOSD.py", line 235, in SetupConfigDialog
    timeCtrl = eg.SpinNumCtrl(dialog, -1, value=timeout)
  File "C:\Program Files\Hardware\EventGhost\eg\Controls\SpinNumCtrl.py", line 33, in __init__
    validator, name, **kwargs)
  File "wx\lib\masked\numctrl.pyc", line 601, in __init__
  File "wx\lib\masked\numctrl.pyc", line 1183, in SetValue
  File "wx\lib\masked\textctrl.pyc", line 200, in SetValue
  File "wx\lib\masked\numctrl.pyc", line 1605, in _Paste
  File "wx\lib\masked\maskededit.pyc", line 5712, in _Paste
  File "wx\lib\masked\maskededit.pyc", line 5591, in _validatePaste
ValueError: "3,00" cannot be inserted into the control "eg.SpinNumCtrl"
the other "other plugins" seems to work...

I have tried many things.... different version (up to 0.3.2.598)
I have tried different path (because I was not using the default one ;) ), but it is not that, except if there are some mysterious files somewhere which are surviving to the desinstallation process....
I have finaly tried on another computer... and it works !!
So there is something on my computer which is disturbing the EventGhost... or at least in my room ;)

Could someone help me ?

Thanks


Barmy

Config :
Ati remote Wonder
A "real" python in c:\python24\, added to the path
XP sp2

barmy
Posts: 5
Joined: Sat Jun 03, 2006 2:57 pm

Post by barmy » Mon Jun 05, 2006 9:19 pm

Ok, I've just tried the last version 0.3.2.599...

the X10 problem has been solved ;)

Not the UIRT-USB nor IgrPLug USB, but the bug could coming become I'm not using this receiver... :p

For the OSD plugin, no change... still the same problem :(

bye

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster » Mon Jun 05, 2006 9:55 pm

The OSD "plugin" is deprecated. ShowOSD is now a part of the core actions. All newer versions of EG should transfer the plugin-based actions to the new core-based actions automatically on the next save and then you should be able to remove the plugin.

The other problem seems to be caused by some problems with your locale. Seems like I have to implement some more workarounds for your french language file. For example the first error you have posted is caused because some parts of the program are not in complete agreement about what your "decimal seperator" is. Is this a comma in the french locale or a dot? Do you use the french locale on your MS-Windows or is this an english MS-Windows for example? ("C:\Program Files" in the error message signify you are using an english locale and this might be the cause of the different behavior of your two PCs.)

Because you are the first one using a french translation file (because you have created it) there are some things to keep in mind if you encounter bugs and how you can help me to remove them:
Try the same procedure to produce the bug when you have set EG to use the english language. Mention if the bug only appears if set to the french translation or with the english translation also.

barmy
Posts: 5
Joined: Sat Jun 03, 2006 2:57 pm

Post by barmy » Mon Jun 05, 2006 11:36 pm

Hi,

The locale problem seems to be a good way of research :)
In french, the separator is the coma. Ive changed it in the regional configuration panel of windows from French to English, and it works !!! great !!!
For information, if I just changed the separator keeping the french configuration, it does work ! But it still a hack :(

Thanks !

Btw, I was not using my french file nor even changed the languagetools.py...

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster » Tue Jun 06, 2006 12:09 am

Ok, I will have to investigate this a bit more in the future. The problem lies in the wxPython libary. If I change my regional settings to french I can reproduce the error.

The problem seems not to be the "seperator char" in the first degree, but the "grouping char" (a space on the french locale?).

barmy
Posts: 5
Joined: Sat Jun 03, 2006 2:57 pm

Post by barmy » Tue Jun 06, 2006 12:25 am

hummm....
Yes, it is a space for the grouping char for the french profile, but it works for me...

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster » Tue Jun 06, 2006 11:09 am

The problem arrises if the digit char is comma and the grouping char is space simultaneously. If I change one of them, it works again. This is a quite wired bug and it would be hard to fix this in the library, because wx\lib\masked\maskededit.py is really huge.

So I will write a workaround by disabling the thousands grouping for such settings. Then we can only hope, that wxPython will fix this bug in a future release.

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster » Tue Jun 06, 2006 5:38 pm

I have just uploaded build 607. It should run without modifying the locale settings.

barmy
Posts: 5
Joined: Sat Jun 03, 2006 2:57 pm

Post by barmy » Tue Jun 06, 2006 7:58 pm

perfect indeed :)

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster » Wed Jun 07, 2006 12:30 pm

Yesterday I have sent a bug report to the author of the corresponding library code and today he replied:
Thanks. The bug is due to an assumption in numctrl that the groupchar
will be something other than space, as space represents an "empty" part
of the control, and in order to do proper readjustment of the groupchars
with each keystroke, it replaces the groupchar with '', so it can remove all
group chars before converting to a numeric value. Unfortunately, since it's
doing a global replace, the leading spaces also get stripped, causing
the value used to no longer be of appropriate length in the control.

I've spent several hours working on a proper fix -- not so easy to get
right, but I think I've finally managed it. Attached is a replacement for
numctrl.py and MaskedNumCtrl.py for the demo; let me know if these
work for you, and if so, I'll submit the corresponding patches to Robin.

Regards,
/Will Sadkin
author lib.masked
Cool guys there in the Python/wxPython community. :)

So I have applied his patch and removed my workaround, and at first sight it seems everything is right now. The grouping char should work again for all locales. I just have uploaded build 608 (a full setup, as I had to update the libraries).

Post Reply