[USRP-users] problem with usrp_n2xx_net_burner_gui.py

Josh Blum josh at ettus.com
Thu Jun 7 13:49:55 EDT 2012


>   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)
> 

Well, this is a new one. I wouldnt expect the ipaddress to contain non
ascii characters.

Its also possible to adNode.ipMask.decode('ascii', errors='ignore'),
which unfortunately is newer versions of python only.

Looks like we need our own decode to ascii + ignore for portability...

-josh




More information about the USRP-users mailing list