[USRP-users] problem with usrp_n2xx_net_burner_gui.py

Bastien Auneau ba at verisat.no
Thu Jun 7 13:04:31 EDT 2012


Hi All

Everytime I use the Python usrp_n2xx_net_burner_gui.py script I run into
some error :

C:\Program
Files\UHD_3_4_2_bin_debug_win64\share\uhd\utils>usrp_n2xx_net_burner_
gui.py
192.168.10.1
ÇÁý☺
Traceback (most recent call last):
  File "C:\Program
Files\UHD_3_4_2_bin_debug_win64\share\uhd\utils\usrp_n2xx_net
_burner_gui.py", line 231, in <module>
    USRPN2XXNetBurnerApp(root, addr=options.addr, fw=options.fw,
fpga=options.fp
ga).pack()
  File "C:\Program
Files\UHD_3_4_2_bin_debug_win64\share\uhd\utils\usrp_n2xx_net
_burner_gui.py", line 158, in __init__
    self._net_dev_entry = DeviceEntryWidget(self, text=addr)
  File "C:\Program
Files\UHD_3_4_2_bin_debug_win64\share\uhd\utils\usrp_n2xx_net
_burner_gui.py", line 100, in __init__
    self._reload_cb()
  File "C:\Program
Files\UHD_3_4_2_bin_debug_win64\share\uhd\utils\usrp_n2xx_net
_burner_gui.py", line 113, in _reload_cb
    for hint in usrp_n2xx_net_burner.enumerate_devices():
  File "C:\Program
Files\UHD_3_4_2_bin_debug_win64\share\uhd\utils\usrp_n2xx_net
_burner.py", line 215, in enumerate_devices
    for bcast_addr in get_interfaces():
  File "C:\Program
Files\UHD_3_4_2_bin_debug_win64\share\uhd\utils\usrp_n2xx_net
_burner.py", line 201, in win_get_interfaces
    ipAddr = adNode.ipAddress.decode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 0:
ordinal
not in range(128)

C:\Program Files\UHD_3_4_2_bin_debug_win64\share\uhd\utils>pause
Press any key to continue . . .
____________________________
The
"192.168.10.1
ÇÁý☺"
Is a result of adding "print adNode.ipAddress" at line 200 of
usrp_n2xx_net_burner.py

The work around I found is to do that :
"#ipAddr = adNode.ipAddress.decode()
 ipAddr = "192.168.10.1".decode()
"
Meaning that I hardcode the local IP of my PC
I tried to get ride of these last "ÇÁý☺" without success
Does anyone knows how to fix that permanently (this has been around since I
work with UHD)

Best Regards
Bastien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20120607/6830677e/attachment-0002.html>


More information about the USRP-users mailing list