Re: [casper] bitstream: command not found

2013-04-22 Thread Jason Manley
If you want to execute it directly from bash, try putting at the top of the 
file:

#!/usr/bin/env python

This tells bash to run /usr/bin/env (to find out where your python is 
installed) and to use that to interpret the rest of the file.

Also, make sure there's a quote mark starting the text comment box at the top 
(before the \n; looks like yours is missing, unless it's just a copy-paste 
error).

Jason 


On 20 Apr 2013, at 20:06, Mark Wagner wrote:

 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
 
 




Re: [casper] bitstream: command not found

2013-04-22 Thread katherine viviana cortes urbina
hi all,

I solved changing  by a name more short 'tut4', this is the error  File
name too long.

When I used

fpga=corr.katcp_wrapper.FpgaClient('192.*',7147)
fpga.progdev('tut4')
fpga.is_connected()
fpga.listdev()

I got the some error, I don't know for why??

 I always execute it directly from bash, this function ok. I be able to
execute from  path the file tut3.py

./tut3.py ROACH_ip_address tut4.bof


Katty



2013/4/22 Jason Manley jman...@ska.ac.za

 If you want to execute it directly from bash, try putting at the top of
 the file:

 #!/usr/bin/env python

 This tells bash to run /usr/bin/env (to find out where your python is
 installed) and to use that to interpret the rest of the file.

 Also, make sure there's a quote mark starting the text comment box at the
 top (before the \n; looks like yours is missing, unless it's just a
 copy-paste error).

 Jason


 On 20 Apr 2013, at 20:06, Mark Wagner wrote:

  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
 
 




[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