Good catch! Yeah, something's suspicious here. Here's the definition for that init function as it is currently on github and also on pypi... def __init__(self, host, port=7147, tb_limit=20, timeout=10.0, logger=log): So you should just have to specify the ROACH board.
Jason On 12 Apr 2012, at 16:59, Rich Lacasse wrote: > Hi Jason, > > Thanks again for the help. By commenting out the "try" and executing > increasingly long parts of the script, I found that the statement: > > if opts.bof != '' > > was always true, no matter whether or not I used the "-b tut2b.bof" option > when invoking the script. I fixed this by replacing the two single quotes > with the word None. After this change, if I printed the value of boffile > after the "if" statement, I got the expected behavior: the default of > tut2.bof when I invoked the script without the -b option and whatever I > entered when I invoked the script with the -b option. > > Next I found the following: > > Traceback (most recent call last): > File "./tut2b_rjl.py", line 70, in <module> > fpga = corr.katcp_wrapper.FpgaClient(roach, logger=logger) > TypeError: __init__() takes at least 3 non-keyword arguments (2 given) > > So, I have an incompatible number of arguments. Is this saying that my > python file and the corr file are incompatible? If so, where do I get the > latest and greatest? > > Thanks, > Rich > > Jason Manley wrote: >> I'd suggest you copy-paste the lines one-at-a-time from the script into an >> iPython window and see which fails and then hopefully the message will point >> you in a reasonable direction. Another option would be to comment-out the >> "try" catch in the script and rerun it to see what the exception is. For >> some reason, the correlator fpga object's never being initialised and so the >> logging's not even working. You want the traceback to figure out where it >> broke. >> >> Jason >>

