Is gr-gpio broken?


Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

It’s not broken. Remove the line import gpio_swig from the gpio.py file.

I think I sent a patch for this, but the line probably gets added
automatically…

juha

On Thu, Mar 18, 2010 at 03:39, Juha V. [email protected] wrote:

It’s not broken. Remove the line import gpio_swig from the gpio.py file.

I think I sent a patch for this, but the line probably gets added
automatically…

This has been fixed in the latest git master.

Johnathan

On Mon, Mar 22, 2010 at 15:42, Drew R. [email protected]
wrote:

Excellent! Thanks for your help that’s working now.

Although another error occurs now saying:
$ sudo gpio_usrp_fft.py -F -d 128 --digital

if u.db[0][0].dbid() >= 0:       # dbid is < 0 if there's no d'board or

a problem
TypeError: ‘instancemethod’ object is unsubscriptable

Changing line 42 in gpio_usrp_fft.py from “if u.db[0][0].dbid() >= 0:” to
“if u.db()[0][0].dbid() >= 0:” seems to fix that though.

This is pretty old code that was overlooked when updating to the 3.2
daughterboard API–thanks for the catch. I’m not sure the above is
the correct fix, though–I think it should be “u.db(0, 0).dbid()”. I
can’t check at the moment.

Johnathan