BALA
February 11, 2004, 5:58am
1
Hi,
I want to convert the bmp file to py file like in the demo images.py..
In the img2py file...There is a Usage..if try to use it throws invalid syntax....
img2py.py [-n] "D:\RDForPyhon\TestRunner\Go.bmp" pyImage.py
Traceback ( File "<interactive input>", line 1
img2py.py [-n] "D:\RDForPyhon\TestRunner\Go.bmp" pyImage.py
^
SyntaxError: invalid syntax
img2py.py [options] image_file python_file
Pls Give Some Program to run from the Command Line
Regards
Bala
Robin
February 11, 2004, 7:07pm
2
bala wrote:
Hi,
I want to convert the bmp file to py file like in the demo images.py..
In the img2py file...There is a Usage..if try to use it throws invalid syntax....
img2py.py [-n] "D:\RDForPyhon\TestRunner\Go.bmp" pyImage.py
Traceback ( File "<interactive input>", line 1
^^^^^^^^^^^^^^^^^^^
img2py.py [-n] "D:\RDForPyhon\TestRunner\Go.bmp" pyImage.py
^
SyntaxError: invalid syntax
The img2py script is normally used as a command line tool, but you appear to be trying to execure it from the interactive interpreter, and so you get a syntax error because the interactive interpreter can only execute python expressions, not arbitrary DOS commands. You need to do those from a DOS Command line window.
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
hi bala,
try without the brackets:
img2py.py "D:\RDForPyhon\TestRunner\Go.bmp" pyImage.py
Wednesday, February 11, 2004, 12:58:37 PM, you wrote:
···
Hi,
I want to convert the bmp file to py file like in the demo images.py..
In the img2py file...There is a Usage..if try to use it throws invalid syntax....
img2py.py [-n] "D:\RDForPyhon\TestRunner\Go.bmp" pyImage.py
Traceback ( File "<interactive input>", line 1
img2py.py [-n] "D:\RDForPyhon\TestRunner\Go.bmp" pyImage.py
^
SyntaxError: invalid syntax
img2py.py [options] image_file python_file
Pls Give Some Program to run from the Command Line
Regards
Bala