I am playing with the Dragonfly lib in python. I am working on Mac OSX, and this will be my target platform. However when try to run my program I receive the following error:
Traceback (most recent call last):
File "clock_challenge.py", line 2, in <module>
from dragonfly.all import Grammar,CompoundRule
File "/Users/vikash/.virtualenv/clock_challenge/lib/python2.7/site-packages/dragonfly-0.6.5-py2.7.egg/dragonfly/__init__.py", line 22, in <module>
from .log import get_log
File "/Users/vikash/.virtualenv/clock_challenge/lib/python2.7/site-packages/dragonfly-0.6.5-py2.7.egg/dragonfly/log.py", line 30, in <module>
import win32gui
ImportError: No module named win32gui
How can I get around using the win32gui library, since my target platform is Linux based?
Dragonfly has historically (t4ngo/dragonfly) been windows only. Regardless of what platform you're running on you should install dragonfly outside of virtualenv.
I recommend using Danesprite fork of dragonfly which is integrating fixes from the community and expanding on features. With this fork you can use alternate speech recognition engines (CMU Pocket Sphinx) and (soon Google Speech API) on Linux. Dragon NaturallySpeaking Speech recognition engine still only works on Windows. Hopefully these enhancement will be pulled into into the main promoted repository t4ngo/dragonfly someday.
We have not tested on Mac OSX so open up a issue if you run and problems.