Page 1 of 1

Python problems

Posted: Sat Sep 18, 2010 8:00 pm
by matejdro
Hi! I have serious problems with python in EventGhost. Most things i try to do like opening an options or adding a plugin, results in an error:

opening Options Dialog:

Code: Select all

Traceback (most recent call last):
  File "EventGhost.pyw", line 31, in <module>
  File "C:\Program Files (x86)\EventGhost\eg\__init__.py", line 109, in Main
    eg.Tasklet(eg.app.MainLoop)().run()
  File "C:\Program Files (x86)\EventGhost\eg\Classes\TaskletDialog.py", line 41, in ProcessingTask
    self.Configure(*args, **kwargs)
  File "C:\Program Files (x86)\EventGhost\eg\Classes\OptionsDialog.py", line 97, in Configure
    max=999
  File "C:\Program Files (x86)\EventGhost\eg\Classes\ControlProviderMixin.py", line 35, in SpinIntCtrl
    return eg.SpinIntCtrl(self, -1, value, *args, **kwargs)
  File "C:\Program Files (x86)\EventGhost\eg\Classes\SpinIntCtrl.py", line 61, in __init__
    integerWidth=integerWidth
  File "C:\Program Files (x86)\EventGhost\eg\Classes\SpinNumCtrl.py", line 93, 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):
  File "C:\Program Files (x86)\EventGhost\eg\Classes\MainFrame\__init__.py", line 344, in FuncWrapper
    func()
  File "C:\Program Files (x86)\EventGhost\eg\Utils.py", line 176, in Wrapper
    eg.Tasklet(func)(*args, **kwargs).run()
TaskletExit
adding General HID:

Code: Select all

Traceback (most recent call last):
  File "EventGhost.pyw", line 31, in <module>
  File "C:\Program Files (x86)\EventGhost\eg\__init__.py", line 109, in Main
    eg.Tasklet(eg.app.MainLoop)().run()
  File "C:\Program Files (x86)\EventGhost\eg\Classes\TaskletDialog.py", line 41, in ProcessingTask
    self.Configure(*args, **kwargs)
  File "C:\Program Files (x86)\EventGhost\eg\Classes\ConfigDialog.py", line 126, in Configure
    self.item.Configure(*args)
  File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionItem.py", line 107, in Configure
    return self.executable.Configure(*args)
  File "C:\Program Files (x86)\EventGhost\plugins\HID\__init__.py", line 294, in Configure
    deviceIndexCtrl = eg.SpinIntCtrl(panel, -1, deviceIndex, 0, 99, size=(100,-1))
  File "C:\Program Files (x86)\EventGhost\eg\Classes\SpinIntCtrl.py", line 61, in __init__
    integerWidth=integerWidth
  File "C:\Program Files (x86)\EventGhost\eg\Classes\SpinNumCtrl.py", line 93, 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):
  File "C:\Program Files (x86)\EventGhost\eg\Classes\MainFrame\__init__.py", line 344, in FuncWrapper
    func()
  File "C:\Program Files (x86)\EventGhost\eg\Utils.py", line 176, in Wrapper
    eg.Tasklet(func)(*args, **kwargs).run()
TaskletExit
Adding Multitap:

Code: Select all

Traceback (most recent call last):
  File "EventGhost.pyw", line 31, in <module>
  File "C:\Program Files (x86)\EventGhost\eg\__init__.py", line 109, in Main
    eg.Tasklet(eg.app.MainLoop)().run()
  File "C:\Program Files (x86)\EventGhost\eg\Classes\TaskletDialog.py", line 41, in ProcessingTask
    self.Configure(*args, **kwargs)
  File "C:\Program Files (x86)\EventGhost\eg\Classes\ConfigDialog.py", line 126, in Configure
    self.item.Configure(*args)
  File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionItem.py", line 107, in Configure
    return self.executable.Configure(*args)
  File "C:\Program Files (x86)\EventGhost\plugins\Multitap\__init__.py", line 891, in Configure
    increment = 0.1,
  File "C:\Program Files (x86)\EventGhost\eg\Classes\SpinNumCtrl.py", line 93, 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):
  File "C:\Program Files (x86)\EventGhost\eg\Classes\MainFrame\__init__.py", line 344, in FuncWrapper
    func()
  File "C:\Program Files (x86)\EventGhost\eg\Utils.py", line 176, in Wrapper
    eg.Tasklet(func)(*args, **kwargs).run()
TaskletExit
It also happens with other dialogs and plugins, but error is simmilar to above ones. And after error i can't close eventghost normally. I have to kill it with task manager.

Any ideas? I have tried to install various versions of python, but problem still exist.

I have Windows 7 x64.

Re: Python problems

Posted: Sun Sep 19, 2010 10:21 am
by jinxdone
Sounds like theres a bug in the way EG handles certain types of number controls. More specifically this a problem caused by your locale settings.

Could you check what are you using for "decimal symbol" and "digit grouping symbol" in Start -> Control panel -> Regional and language settings -> Additional settings -> Currency tab?

Re: Python problems

Posted: Sun Sep 19, 2010 10:27 am
by matejdro
Both are dots (.)

EDIT: Changed decimal separator do comma (,), and it's working! Thank you very much! :D