Problem with PyGUI, pyttsx and the launcher

49 views
Skip to first unread message

Francisco Del Roio

unread,
Oct 19, 2013, 1:24:45 PM10/19/13
to Agrip Project
hi,

I tried to run the launcher, and I installed all of the dependencies
(PyGUI, pyttsx, cxfreeze, etc...) but I can't run the script properly
due to errors in PyGUI.

Someone have the same problem?

Cheers,
--
Franci

Sabahattin Gucukoglu

unread,
Oct 19, 2013, 4:57:21 PM10/19/13
to agrip-...@googlegroups.com
On 19 Oct 2013, at 18:24, Francisco Del Roio <fran...@openmailbox.org> wrote:
> I tried to run the launcher, and I installed all of the dependencies (PyGUI, pyttsx, cxfreeze, etc...) but I can't run the script properly due to errors in PyGUI.
>
> Someone have the same problem?

What architecture are you on? Can you remember any of the error?

Cheers,
Sabahattin

Francisco Del Roio

unread,
Oct 19, 2013, 5:42:21 PM10/19/13
to agrip-...@googlegroups.com
My architecture is win32.

Cheers

Matthew Tylee Atkinson

unread,
Oct 19, 2013, 7:15:46 PM10/19/13
to agrip-...@googlegroups.com
On 19 Oct 2013, at 18:24, Francisco Del Roio <fran...@openmailbox.org> wrote:
> I tried to run the launcher, and I installed all of the dependencies (PyGUI, pyttsx, cxfreeze, etc...) but I can't run the script properly due to errors in PyGUI.


Please paste in the error message/stack trace you receive and let us know the versions you are using of Python, pyttsx, PyGUI and Windows or OS X and we should be able to help you out.

Cheers,


Matthew

Francisco Del Roio

unread,
Oct 19, 2013, 10:34:09 PM10/19/13
to agrip-...@googlegroups.com
Hi,

Here is the traceback:

---

Traceback (most recent call last):
File "C:\Python27\lib\site-packages\GUI\Component.py", line 232, in
_win_event
_message
pass_message = not self._event_custom_handled(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 112,
in _even
t_custom_handled
self.handle_event(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 40,
in handle
_event
self.handle(event.kind, event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 59,
in handle

method(*args)
File "C:\Python27\lib\site-packages\GUI\ButtonBases.py", line 15, in
key_down
GControl.key_down(self, event)
NameError: global name 'GControl' is not defined

GWindow.center
GWindow.center

Traceback (most recent call last):
File "C:\Python27\lib\site-packages\GUI\Component.py", line 232, in
_win_event
_message
pass_message = not self._event_custom_handled(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 112,
in _even
t_custom_handled
self.handle_event(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 40,
in handle
_event
self.handle(event.kind, event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 59,
in handle

method(*args)
File "C:\Python27\lib\site-packages\GUI\ButtonBases.py", line 24, in
key_up
GControl.key_down(self, event)
NameError: global name 'GControl' is not defined

GWindow.center
GWindow.center

Traceback (most recent call last):
File "C:\Python27\lib\site-packages\GUI\Component.py", line 232, in
_win_event
_message
pass_message = not self._event_custom_handled(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 112,
in _even
t_custom_handled
self.handle_event(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 40,
in handle
_event
self.handle(event.kind, event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 59,
in handle

method(*args)
File "C:\Python27\lib\site-packages\GUI\ButtonBases.py", line 24, in
key_up
GControl.key_down(self, event)
NameError: global name 'GControl' is not defined

GWindow.center
GWindow.center

Traceback (most recent call last):
File "C:\Python27\lib\site-packages\GUI\Component.py", line 232, in
_win_event
_message
pass_message = not self._event_custom_handled(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 112,
in _even
t_custom_handled
self.handle_event(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 40,
in handle
_event
self.handle(event.kind, event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 59,
in handle

method(*args)
File "C:\Python27\lib\site-packages\GUI\ButtonBases.py", line 24, in
key_up
GControl.key_down(self, event)
NameError: global name 'GControl' is not defined

GWindow.center
GWindow.center

Traceback (most recent call last):
File "C:\Python27\lib\site-packages\GUI\Component.py", line 232, in
_win_event
_message
pass_message = not self._event_custom_handled(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 112,
in _even
t_custom_handled
self.handle_event(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 40,
in handle
_event
self.handle(event.kind, event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 59,
in handle

method(*args)
File "C:\Python27\lib\site-packages\GUI\ButtonBases.py", line 24, in
key_up
GControl.key_down(self, event)
NameError: global name 'GControl' is not defined

GWindow.center
GWindow.center

Traceback (most recent call last):
File "C:\Python27\lib\site-packages\GUI\Component.py", line 232, in
_win_event
_message
pass_message = not self._event_custom_handled(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 112,
in _even
t_custom_handled
self.handle_event(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 40,
in handle
_event
self.handle(event.kind, event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 59,
in handle

method(*args)
File "C:\Python27\lib\site-packages\GUI\ButtonBases.py", line 24, in
key_up
GControl.key_down(self, event)
NameError: global name 'GControl' is not defined

GWindow.center
GWindow.center

Traceback (most recent call last):
File "C:\Python27\lib\site-packages\GUI\Component.py", line 232, in
_win_event
_message
pass_message = not self._event_custom_handled(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 112,
in _even
t_custom_handled
self.handle_event(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 40,
in handle
_event
self.handle(event.kind, event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 59,
in handle

method(*args)
File "C:\Python27\lib\site-packages\GUI\ButtonBases.py", line 24, in
key_up
GControl.key_down(self, event)
NameError: global name 'GControl' is not defined

GWindow.center
GWindow.center

Traceback (most recent call last):
File "C:\Python27\lib\site-packages\GUI\Component.py", line 232, in
_win_event
_message
pass_message = not self._event_custom_handled(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 112,
in _even
t_custom_handled
self.handle_event(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 40,
in handle
_event
self.handle(event.kind, event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 59,
in handle

method(*args)
File "C:\Python27\lib\site-packages\GUI\ButtonBases.py", line 24, in
key_up
GControl.key_down(self, event)
NameError: global name 'GControl' is not defined

GWindow.center
GWindow.center

Traceback (most recent call last):
File "C:\Python27\lib\site-packages\GUI\Component.py", line 232, in
_win_event
_message
pass_message = not self._event_custom_handled(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 112,
in _even
t_custom_handled
self.handle_event(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 40,
in handle
_event
self.handle(event.kind, event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 59,
in handle

method(*args)
File "C:\Python27\lib\site-packages\GUI\ButtonBases.py", line 24, in
key_up
GControl.key_down(self, event)
NameError: global name 'GControl' is not defined

GWindow.center
GWindow.center

Traceback (most recent call last):
File "C:\Python27\lib\site-packages\GUI\Component.py", line 232, in
_win_event
_message
pass_message = not self._event_custom_handled(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 112,
in _even
t_custom_handled
self.handle_event(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 40,
in handle
_event
self.handle(event.kind, event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 59,
in handle

method(*args)
File "C:\Python27\lib\site-packages\GUI\ButtonBases.py", line 24, in
key_up
GControl.key_down(self, event)
NameError: global name 'GControl' is not defined

GWindow.center
GWindow.center

Traceback (most recent call last):
File "C:\Python27\lib\site-packages\GUI\Component.py", line 232, in
_win_event
_message
pass_message = not self._event_custom_handled(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 112,
in _even
t_custom_handled
self.handle_event(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 40,
in handle
_event
self.handle(event.kind, event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 59,
in handle

method(*args)
File "C:\Python27\lib\site-packages\GUI\ButtonBases.py", line 24, in
key_up
GControl.key_down(self, event)
NameError: global name 'GControl' is not defined

GWindow.center
GWindow.center

Traceback (most recent call last):
File "C:\Python27\lib\site-packages\GUI\Component.py", line 232, in
_win_event
_message
pass_message = not self._event_custom_handled(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 112,
in _even
t_custom_handled
self.handle_event(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 40,
in handle
_event
self.handle(event.kind, event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 59,
in handle

method(*args)
File "C:\Python27\lib\site-packages\GUI\ButtonBases.py", line 24, in
key_up
GControl.key_down(self, event)
NameError: global name 'GControl' is not defined

GWindow.center
GWindow.center

Traceback (most recent call last):
File "C:\Python27\lib\site-packages\GUI\Component.py", line 232, in
_win_event
_message
pass_message = not self._event_custom_handled(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 112,
in _even
t_custom_handled
self.handle_event(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 40,
in handle
_event
self.handle(event.kind, event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 59,
in handle

method(*args)
File "C:\Python27\lib\site-packages\GUI\ButtonBases.py", line 24, in
key_up
GControl.key_down(self, event)
NameError: global name 'GControl' is not defined


Traceback (most recent call last):
File "C:\Python27\lib\site-packages\GUI\Component.py", line 232, in
_win_event
_message
pass_message = not self._event_custom_handled(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 112,
in _even
t_custom_handled
self.handle_event(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 40,
in handle
_event
self.handle(event.kind, event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 59,
in handle

method(*args)
File "C:\Python27\lib\site-packages\GUI\ButtonBases.py", line 15, in
key_down
GControl.key_down(self, event)
NameError: global name 'GControl' is not defined

GWindow.center
GWindow.center

Traceback (most recent call last):
File "C:\Python27\lib\site-packages\GUI\Component.py", line 232, in
_win_event
_message
pass_message = not self._event_custom_handled(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 112,
in _even
t_custom_handled
self.handle_event(event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 40,
in handle
_event
self.handle(event.kind, event)
File "C:\Python27\lib\site-packages\GUI\MessageHandler.py", line 59,
in handle

method(*args)
File "C:\Python27\lib\site-packages\GUI\ButtonBases.py", line 24, in
key_up
GControl.key_down(self, event)
NameError: global name 'GControl' is not defined

GWindow.center
GWindow.center
---

I'm using windows 7 32 bits, python 2.7.5, pyttsx 1.6 PyGUI 2.5.3 and
pywin32 218.

Cheers

matatk

unread,
Oct 23, 2013, 4:59:26 PM10/23/13
to agrip-...@googlegroups.com, fran...@openmailbox.org
Thank you for sending all of this information.  It's not an error I've encountered before and I was hoping to investigate it this week, but it doesn't look like I'll be able to until Sunday at the earliest.  However, I have got the information and will look into it.

What I would say is that, soon, we'll have a built process that can run completely on Windows or Mac, so Windows users won't depend on the Mac anymore and errors such as these may "fall out" of the system when that simpler build process is in place, so hang on for now!

Thanks again for reporting this and giving us all the information needed to investigate further (as soon as I can).

best regards,


Matthew

matatk

unread,
Feb 24, 2014, 7:36:52 AM2/24/14
to agrip-...@googlegroups.com, fran...@openmailbox.org
Well it's taken a while, but as part of the Windows build process I have discovered the apparent cause of this problem. It's a bug in PyGUI but it looks like a simple fix; the question is how best to apply that fix.  I intend to have a solution to this very soon, as part of the Windows build process which is a bit rough, but working reliably (from tests I've been able to do on Windows 8 with Visual Studio Express 2013).

Thanks again for reporting this and sorry it's taken so long to find the cause and work on fixing it.

best regards,


Matthew
Reply all
Reply to author
Forward
0 new messages