# Re g : usrp2\_card\_burner\_gui.py

**URL:** <https://www.ruby-forum.com/t/re-g-usrp2-card-burner-gui-py/219173>\
**Category:** GNU Radio\
**Created:** [April 22, 2012, 7:42pm UTC](https://www.ruby-forum.com/t/re-g-usrp2-card-burner-gui-py/219173 "2012-04-22T19:42:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gurdipe\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b77776/32.png) [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Post date:** [April 22, 2012, 7:42pm UTC](https://www.ruby-forum.com/t/re-g-usrp2-card-burner-gui-py/219173/1 "2012-04-22T19:42:45Z")

</div>

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](http://pastebin.com/XjU73dCU) 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](http://old.nabble.com/Reg-%3A-usrp2_card_burner_gui.py-tp33729482p33729482.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![sumitstop](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@sumitstop](https://www.ruby-forum.com/u/sumitstop)\
**Post date:** [April 22, 2012, 8:19pm UTC](https://www.ruby-forum.com/t/re-g-usrp2-card-burner-gui-py/219173/2 "2012-04-22T20:19:24Z")

</div>

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](http://pastebin.com/XjU73dCU) 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](http://old.nabble.com/Reg-%3A-usrp2_card_burner_gui.py-tp33729482p33729642.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![sumitstop](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@sumitstop](https://www.ruby-forum.com/u/sumitstop)\
**Post date:** [April 22, 2012, 10:03pm UTC](https://www.ruby-forum.com/t/re-g-usrp2-card-burner-gui-py/219173/3 "2012-04-22T22:03:32Z")

</div>

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](http://pastebin.com/XjU73dCU) 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](http://old.nabble.com/Reg-%3A-usrp2_card_burner_gui.py-tp33729482p33729997.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![sumitstop](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@sumitstop](https://www.ruby-forum.com/u/sumitstop)\
**Post date:** [April 22, 2012, 10:54pm UTC](https://www.ruby-forum.com/t/re-g-usrp2-card-burner-gui-py/219173/4 "2012-04-22T22:54:38Z")

</div>

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. 😃

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](http://old.nabble.com/Reg-%3A-usrp2_card_burner_gui.py-tp33729482p33730193.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![sumitstop](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@sumitstop](https://www.ruby-forum.com/u/sumitstop)\
**Post date:** [April 22, 2012, 10:19pm UTC](https://www.ruby-forum.com/t/re-g-usrp2-card-burner-gui-py/219173/5 "2012-04-22T22:19:41Z")

</div>

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
