Re g : usrp2_card_burner_gui.py

I am getting this error while running the usrp2_card_burner_gui.py


Traceback (most recent call last):
File “./usrp2_card_burner_gui.py”, line 174, in
USRP2CardBurnerApp(root, dev=options.dev, fw=options.fw,
fpga=options.fpga).pack()
File “./usrp2_card_burner_gui.py”, line 132, in init
self._raw_dev_entry = DeviceEntryWidget(self, text=dev)
File “./usrp2_card_burner_gui.py”, line 74, in init
self._reload_cb()
File “./usrp2_card_burner_gui.py”, line 87, in _reload_cb
for hint in usrp2_card_burner.get_raw_device_hints():
File “/usr/local/share/uhd/utils/usrp2_card_burner.py”, line 113, in
get_raw_device_hints
for line in command(‘cat’, ‘/proc/partitions’).splitlines():
File “/usr/local/share/uhd/utils/usrp2_card_burner.py”, line 53, in
command
verbose = p.stdout.read().decode(‘utf-8’, errors=‘ignore’)
TypeError: decode() takes no keyword arguments


I searched in web but couldn’t find something accurate

Somebody has mentioned the same thing this year
diff --git a/host/utils/usrp2_card_burner.py b/host/utils/usrp2_card_burner.py - Pastebin.com but I couldn’t understand what is the
solution
%-|


Sumit Kr.
Research Assistant
Communication Research center
IIIT Hyderabad
India

View this message in context:
http://old.nabble.com/Reg-%3A-usrp2_card_burner_gui.py-tp33729482p33729482.html
Sent from the GnuRadio mailing list archive at Nabble.com.

For got to tell that I have gnuradio version 3.6.0git-41-gd5f9c571

sumitstop wrote:

File “./usrp2_card_burner_gui.py”, line 74, in init


I searched in web but couldn’t find something accurate

Somebody has mentioned the same thing this year
diff --git a/host/utils/usrp2_card_burner.py b/host/utils/usrp2_card_burner.py - Pastebin.com but I couldn’t understand what is the
solution %-|


Sumit Kr.
Research Assistant
Communication Research center
IIIT Hyderabad
India

View this message in context:
http://old.nabble.com/Reg-%3A-usrp2_card_burner_gui.py-tp33729482p33729642.html
Sent from the GnuRadio mailing list archive at Nabble.com.

I am not able to guess what is it? Now it is coming on even 3.2.2 and
3.4.0
&-(

sumitstop wrote:

Traceback (most recent call last):
get_raw_device_hints
Somebody has mentioned the same thing this year
diff --git a/host/utils/usrp2_card_burner.py b/host/utils/usrp2_card_burner.py - Pastebin.com but I couldn’t understand what is the
solution %-|


Sumit Kr.
Research Assistant
Communication Research center
IIIT Hyderabad
India

View this message in context:
http://old.nabble.com/Reg-%3A-usrp2_card_burner_gui.py-tp33729482p33729997.html
Sent from the GnuRadio mailing list archive at Nabble.com.

Well I got the solution

Its some python version problem. With 2.7.2 its working fine. I have 2.6
in
the problematic systems.

So told by Josh I removed the " errors=‘ignore’ " from
usrp2_card_burner.py
from line 53

and it worked finally. :smiley:

sumitstop wrote:

self._raw_dev_entry = DeviceEntryWidget(self, text=dev)

TypeError: decode() takes no keyword arguments


Sumit Kr.
Research Assistant
Communication Research center
IIIT Hyderabad
India

View this message in context:
http://old.nabble.com/Reg-%3A-usrp2_card_burner_gui.py-tp33729482p33730193.html
Sent from the GnuRadio mailing list archive at Nabble.com.

On 04/22/2012 01:02 PM, sumitstop wrote:

I am not able to guess what is it? Now it is coming on even 3.2.2 and 3.4.0
&-(

This is not a gnuradio problem. Its a UHD bug that was introduced from a
language fix for the card burner. So I can fix it, please tell me:

What version of python are you running?

Does the app work if you remove “errors=‘ignore’”?

-josh