[casper] bitstream: command not found

2013-04-20 Thread katherine viviana cortes urbina
Hi all,

I have a new error when I ran the .bof to using ./tut3_2048.py
192.168.100.2 -b tut3_1ghz_2013_Apr_09_1815.bof this is:

\nAuthor: Jason Manley, November 2009.
: File name too long

./tut3_2048.py: line 15: bitstream: command not found
./tut3_2048.py: line 18: syntax error near unexpected token `('
./tut3_2048.py: line 18: `def exit_fail():'

In the tut3_2048.py I have definite the:

bitstream = 'tut3_1ghz_2013_Apr_09_1815.bof'  and
fpga.progdev(bitstream) in the script.


any idea?

Cheers

katty


Re: [casper] bitstream: command not found

2013-04-20 Thread John Ford
 Hi all,

 I have a new error when I ran the .bof to using ./tut3_2048.py
 192.168.100.2 -b tut3_1ghz_2013_Apr_09_1815.bof this is:

 \nAuthor: Jason Manley, November 2009.
 : File name too long

 ./tut3_2048.py: line 15: bitstream: command not found
 ./tut3_2048.py: line 18: syntax error near unexpected token `('
 ./tut3_2048.py: line 18: `def exit_fail():'

 In the tut3_2048.py I have definite the:

 bitstream = 'tut3_1ghz_2013_Apr_09_1815.bof'  and
 fpga.progdev(bitstream) in the script.


 any idea?

Is your indentation messed up in the script?  Errors from Line 18 leads me
to think so.

Can you post the whole script so we can see what lines 15 and 18 are?

John


 Cheers

 katty






Re: [casper] bitstream: command not found

2013-04-20 Thread Mark Wagner
Hi Katherine,

I think you're asking bash to execute the script and not python.  Try
calling it with python or put a python shebang in there (making sure
the path is correct).

Mark

On Sat, Apr 20, 2013 at 10:40 AM, katherine viviana cortes urbina
kattycort...@gmail.com wrote:
 Hi all,

 I have a new error when I ran the .bof to using ./tut3_2048.py 192.168.100.2
 -b tut3_1ghz_2013_Apr_09_1815.bof this is:

 \nAuthor: Jason Manley, November 2009.
 : File name too long

 ./tut3_2048.py: line 15: bitstream: command not found
 ./tut3_2048.py: line 18: syntax error near unexpected token `('
 ./tut3_2048.py: line 18: `def exit_fail():'

 In the tut3_2048.py I have definite the:

 bitstream = 'tut3_1ghz_2013_Apr_09_1815.bof'  and fpga.progdev(bitstream) in
 the script.

 any idea?

 Cheers

 katty