# Error in creating a block

**URL:** <https://www.ruby-forum.com/t/error-in-creating-a-block/241344>\
**Category:** GNU Radio\
**Created:** [March 31, 2015, 9:53am UTC](https://www.ruby-forum.com/t/error-in-creating-a-block/241344 "2015-03-31T09:53:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [March 31, 2015, 9:53am UTC](https://www.ruby-forum.com/t/error-in-creating-a-block/241344/1 "2015-03-31T09:53:00Z")

</div>

Hi…  
I created a block named ‘cost’. But it showing the error as in  
screenshot attached what is the problem with this? thanks for your  
advice.

---

<div class="post-metadata">

**Author:** ![Vishwanatha\_H\_G](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/f19dbf/32.png) [@Vishwanatha\_H\_G](https://www.ruby-forum.com/u/Vishwanatha_H_G)\
**Post date:** [March 31, 2015, 11:23am UTC](https://www.ruby-forum.com/t/error-in-creating-a-block/241344/2 "2015-03-31T11:23:33Z")

</div>

Hi Vishwanatha,

you’ve forgot to modify your block’s XML description, which you can find  
under /grc in your out of tree module.  
I’d like to point you to the guided tutorials [1], which contain  
information on that topic [2].

Best regards,  
Marcus

[1] [https://gnuradio.org/redmine/projects/gnuradio/wiki/Guided\_Tutorials](https://gnuradio.org/redmine/projects/gnuradio/wiki/Guided_Tutorials)  
[2]  
[https://gnuradio.org/redmine/projects/gnuradio/wiki/Guided\_Tutorial\_GNU\_Radio\_in\_Python#325-XML-Files](https://gnuradio.org/redmine/projects/gnuradio/wiki/Guided_Tutorial_GNU_Radio_in_Python#325-XML-Files)

---

<div class="post-metadata">

**Author:** ![Vishwanatha\_H\_G](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/f19dbf/32.png) [@Vishwanatha\_H\_G](https://www.ruby-forum.com/u/Vishwanatha_H_G)\
**Post date:** [April 1, 2015, 8:04am UTC](https://www.ruby-forum.com/t/error-in-creating-a-block/241344/3 "2015-04-01T08:04:41Z")

</div>

Hi Vishwanatha,

please stick to the list.

from gnuradio import project  
ImportError: cannot import name project

indicates there is some line in your source code where you do that,  
“from gnuradio import project”. Maybe you made a mistake in the   
tag in your XML, maybe it’s in your source code.

I’d search for “from gnuradio import project” inside your source code,  
and if that doesn’t yield where this happens, for “project”.

Greetings,  
Marcus
