# GNU Radio in Python Tutorial - installing python block without C++

**URL:** <https://www.ruby-forum.com/t/gnu-radio-in-python-tutorial-installing-python-block-without-c/232668>\
**Category:** GNU Radio\
**Created:** [October 21, 2014, 5:55pm UTC](https://www.ruby-forum.com/t/gnu-radio-in-python-tutorial-installing-python-block-without-c/232668 "2014-10-21T17:55:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [October 21, 2014, 5:55pm UTC](https://www.ruby-forum.com/t/gnu-radio-in-python-tutorial-installing-python-block-without-c/232668/1 "2014-10-21T17:55:37Z")

</div>

Hi all,

I’ve been going through the tutorials with a fresh install of GNURadio  
(Version 3.7.2.1) through Ubuntu’s package manager (Ubuntu 14.04) and  
I’ve  
run into a few issues when attempting to install a python block (without  
any C++, as indicated in the tutorial:  
[http://gnuradio.org/redmine/projects/gnuradio/wiki/Guided\_Tutorial\_GNU\_Radio\_in\_Python#Installing-Python-Blocks](http://gnuradio.org/redmine/projects/gnuradio/wiki/Guided_Tutorial_GNU_Radio_in_Python#Installing-Python-Blocks)).

I think I resolved the first issue below, but any pointers for resolving  
the second error would be greatly appreciated:

1-) Running cmake threw an error "CMAKE error: cannot determine link  
language for target “gnuradio-tutorial”

-As mentioned in the “bug” report #522, I was able to eliminate the  
error  
by removing the lib folder and commenting out the line  
“add\_subdirectory(lib)” from CMakeLists.txt

2-) Running make now gives the error when attempting to link the  
tutorial  
module:  
Linking CXX shared module \_tutorial\_swig.so  
/usr/bin/ld: cannot find -lgnuradio-tutorial  
collect2: error: ld returned 1 exit status

-Is there something else that needs to be edited before running cmake  
since  
there isn’t any C++ code?

Thanks in advance,

-Mike

---

<div class="post-metadata">

**Author:** ![roa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8e7dd6/32.png) [@roa](https://www.ruby-forum.com/u/roa)\
**Post date:** [October 22, 2014, 11:41am UTC](https://www.ruby-forum.com/t/gnu-radio-in-python-tutorial-installing-python-block-without-c/232668/2 "2014-10-22T11:41:29Z")

</div>

Michael,

we do point out in our tutorials that you require GNU Radio 3.7.4 or  
later to run these tutorials. The possibility of writing Python-only  
OOTs is the main reason for this.

However, you _probably_ don’t need to upgrade if you don’t like. One way  
to do this is to clone gr-tutorial, and remove all the source files,  
then start adding them again as you go through the exercises.

Cheers,  
M

---

<div class="post-metadata">

**Author:** ![roa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8e7dd6/32.png) [@roa](https://www.ruby-forum.com/u/roa)\
**Post date:** [October 22, 2014, 2:27pm UTC](https://www.ruby-forum.com/t/gnu-radio-in-python-tutorial-installing-python-block-without-c/232668/3 "2014-10-22T14:27:30Z")

</div>

Hi Martin,

Thanks for the response. I’ll make sure to work with the newer version  
going forward.

I see that the tutorial home page says 3.7.4 is required, but I just  
checked the guided tutorial in python (  
[http://gnuradio.org/redmine/projects/gnuradio/wiki/Guided\_Tutorial\_GNU\_Radio\_in\_Python](http://gnuradio.org/redmine/projects/gnuradio/wiki/Guided_Tutorial_GNU_Radio_in_Python))  
and it mentions 3.7.0 or later as a prereq.

Thanks again,

-Mike

On Wed, Oct 22, 2014 at 5:40 AM, Martin B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![roa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8e7dd6/32.png) [@roa](https://www.ruby-forum.com/u/roa)\
**Post date:** [October 22, 2014, 6:53pm UTC](https://www.ruby-forum.com/t/gnu-radio-in-python-tutorial-installing-python-block-without-c/232668/4 "2014-10-22T18:53:32Z")

</div>

On 10/22/2014 02:25 PM, Michael R. wrote:

> I see that the tutorial home page says 3.7.4 is required, but I just  
> checked the guided tutorial in python

([http://gnuradio.org/redmine/projects/gnuradio/wiki/Guided\_Tutorial\_GNU\_Radio\_in\_Python](http://gnuradio.org/redmine/projects/gnuradio/wiki/Guided_Tutorial_GNU_Radio_in_Python))

> and it mentions 3.7.0 or later as a prereq.

Thanks for pointing that out – definitely an annoying and nasty typo in  
our tutorial.

M
