First of all: THANKS for the great software!!! Now to the making-it-better
part:
* Running latest version (build_168_py.zip) on Ubuntu Linux 8.04
* python (2.5) and python-serial installed
* Running: python gh600_console.py c -o /tmp/
Error 1):
parser.add_option("-f", "--format", help="the format to export to
(default: %default)", dest="format", choices=[format['filename'] for format
in gh.getExportFormats()])
TypeError: 'ExportFormat' object is unsubscriptable
This looked like a bug (even though I suck at Python so I might be wrong)
so I changed "format['filename']" to "format.name"
Error 2):
parser.add_option("-fi", "--firmware", dest="firmware", type="int",
choices=[1,2], help="firmware of your GH: (1 for old, 2 for new)")
...
optparse.OptionError: invalid long option string '-fi': must start with
--, followed by non-dash
Seems like the short option can only be one character, changed "-fi" to
"-w" (since -f is used).
Error 3):
parser.add_option("-fi", "--firmware", dest="firmware", type="int",
choices=[1,2], help="firmware of your GH: (1 for old, 2 for new)")
...
optparse.OptionError: option -w/--firmware: must not supply choices for
type 'int'
So I removed ", choices=[1,2]"
After that it worked like a charm!
Original issue reported on code.google.com by gos...@gmail.com on 2 Sep 2008 at 8:21
Original issue reported on code.google.com by
gos...@gmail.com
on 2 Sep 2008 at 8:21