Trying to use Dragonfly on Windows and I get exceptions

47 views
Skip to first unread message

darrickc

unread,
Jul 7, 2010, 12:14:48 PM7/7/10
to Dragonfly Speech Recognition
Oddly enough this only happens the first time I do 'from dragonfly
import Window'. If I do a 2nd import I don't get any exceptions and I
can use the Window class. I do have the win32 library install also.
Thoughts?

S:\QDirectClientTest\SetupScripts>python
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
(Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> from dragonfly import Window
Traceback (most recent call last):
File "\loewis\25\python\Modules\_ctypes\callbacks.c", line 206, in
'calling ca
llback function'
File "C:\Python25\Lib\site-packages\dragonfly\windows\monitor.py",
line 124, i
n _callback
monitor = Monitor(handle, rectangle)
File "C:\Python25\Lib\site-packages\dragonfly\windows\monitor.py",
line 51, in
__init__
assert isinstance(handle, int)
AssertionError

Charlie Tango

unread,
Jul 9, 2010, 7:52:05 AM7/9/10
to dragonf...@googlegroups.com
Hi Darrick,

Could you please replace your current monitor.py with the one attached
to this message, which adds some debug printing to the function
causing your problem? I'm interested in the output it will give you.

-- Charlie.

PS: Your current monitor.py is located at
"C:\Python25\Lib\site-packages\dragonfly\windows\monitor.py", or so
the trace back said.

monitor.py
Reply all
Reply to author
Forward
0 new messages