# Pybombs, gnuradio, libprotobuf issues PLEASE HELP ME

**URL:** <https://www.ruby-forum.com/t/pybombs-gnuradio-libprotobuf-issues-please-help-me/234707>\
**Category:** GNU Radio\
**Created:** [March 23, 2015, 11:02pm UTC](https://www.ruby-forum.com/t/pybombs-gnuradio-libprotobuf-issues-please-help-me/234707 "2015-03-23T23:02:44Z")\
**Posts on this page:** 13\
**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:** [March 23, 2015, 11:02pm UTC](https://www.ruby-forum.com/t/pybombs-gnuradio-libprotobuf-issues-please-help-me/234707/1 "2015-03-23T23:02:44Z")

</div>

I’ve picked up some issues over the last month of trying to get a  
working  
gnuradio pybombs install with the openlte and fosphor pybombs packages.  
Had  
no idea it would be this difficult on a brand new system with a fresh OS  
install and following all the instructions on the gnuradio site, but i  
guess that’s open source for ya. I’m learning a lot though and hope that  
my  
questions will help someone else down the road.

1. can anybody tell me where the install log for pybombs is? I’ve been  
told  
that it exists, but can’t find it anywhere.

2)i’ve been working with Sylvain on getting Fosphor running in my  
pybombs  
build, which was having a lot of problems, so just to be on the safe  
side I  
decided to try a clean build of gnuradio and pybombs altogether. To do  
so i  
did the following:  
-deleted my pybombs directory  
-followed the instructions here (  
[https://gnuradio.org/redmine/projects/pybombs/wiki/QuickStart](https://gnuradio.org/redmine/projects/pybombs/wiki/QuickStart))

-ran ./pybombs install gnuradio -v

uhd seems to be ok, but gnuradio installation failed with this error:

> **[cnlsdr1@cnlsdr1:~/pybombs$ ./pybombs install gnuradio -vSettled on prefix: ~/p...](https://pastebin.com/XB9KW9Yx)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

1. wanting to investigate i ran ./pybombs list i got this error

“have\_deb: Does not satisfy requirement…installed version of  
libprotobuf-dev (2.5.0) is not \>= than 2.6.1”

(./pybombs list output here)

so in order to fix the protobuf problem i ran ./pybombs install protobuf

which then returns this:

> **[: cnlsdr1@cnlsdr1:~/pybombs$ ./pybombs install protobufSettled on prefix: ~/py...](https://pastebin.com/rGqwsdYR)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

i’m not sure if the libprotobuf and gnuradio issues are related, but  
obviously i’m doing something wrong.

thanks,  
-b

---

<div class="post-metadata">

**Author:** ![ben\_Gee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/85f322/32.png) [@ben\_Gee](https://www.ruby-forum.com/u/ben_Gee)\
**Post date:** [March 23, 2015, 11:44pm UTC](https://www.ruby-forum.com/t/pybombs-gnuradio-libprotobuf-issues-please-help-me/234707/2 "2015-03-23T23:44:46Z")

</div>

The first error can be repaired by adding the line:

#include \<stdio.h\>

to gnuradio/gr-dtv/lib/atsc/atsc\_interleaver\_impl.cc

I’m not sure how this bug slipped by.

Ron

---

<div class="post-metadata">

**Author:** ![ben\_Gee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/85f322/32.png) [@ben\_Gee](https://www.ruby-forum.com/u/ben_Gee)\
**Post date:** [March 24, 2015, 4:07am UTC](https://www.ruby-forum.com/t/pybombs-gnuradio-libprotobuf-issues-please-help-me/234707/3 "2015-03-24T04:07:19Z")

</div>

Ron, thanks, adding that line fixed the compilation error and gnuradio  
says  
that it installed ok!  
Now onto the other issues:  
NEW ISSUE - no GRC??. I can’t call it from the target, home or pybombs  
directory and there’s no recipe for it. any thoughts?  
OLD ISSUE - protobuf is still the old version and calling ./pybombs  
update  
protobuf does nothing  
OLD ISSUE - still have no idea where to find a build log for gnuradio

---

<div class="post-metadata">

**Author:** ![ben\_Gee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/85f322/32.png) [@ben\_Gee](https://www.ruby-forum.com/u/ben_Gee)\
**Post date:** [March 24, 2015, 11:28am UTC](https://www.ruby-forum.com/t/pybombs-gnuradio-libprotobuf-issues-please-help-me/234707/4 "2015-03-24T11:28:39Z")

</div>

> NEW ISSUE - no GRC??. I can’t call it from the target, home or pybombs  
> directory and there’s no recipe for it. any thoughts?

GRC comes with gnuradio itself.

If it’s not there, something failed during the cmake/build step, but  
without the full logs, can’t really say anything.

My guess is that _something_ on your system got broken at some point  
between your first GR install and your first gr-fosphor attempt and  
all your issues are stemming for this one unexpected condition.

> OLD ISSUE - protobuf is still the old version and calling ./pybombs update  
> protobuf does nothing

Should’nt matter, this recipe isn’t required by gnuradio. Not even  
sure why there is a recipe at all because it’s not required by  
anything. The message you get when you do a ‘list’ is more a warning  
than anything else and not relevant here.

Cheers,

```
Sylvain

```

---

<div class="post-metadata">

**Author:** ![ben\_Gee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/85f322/32.png) [@ben\_Gee](https://www.ruby-forum.com/u/ben_Gee)\
**Post date:** [March 25, 2015, 12:04am UTC](https://www.ruby-forum.com/t/pybombs-gnuradio-libprotobuf-issues-please-help-me/234707/5 "2015-03-25T00:04:38Z")

</div>

> NEW ISSUE - no GRC??. I can’t call it from the target, home or pybombs  
> directory and there’s no recipe for it. any thoughts?

GRC comes with gnuradio itself.

_that’s what i thought as it’s always been that way._

If it’s not there, something failed during the cmake/build step, but  
without the full logs, can’t really say anything.

_yes, i agree about the build log. It would be a huge help if someone on  
the forum board could help me out,_  
_as i have looked through most of the files in the installation and  
can’t  
find a build log_

_i piped my terminal output of ./pybombs install gnuradio -v to this  
file:_

> <https://pastebin.com/1fPwEDbQ>

_the same compile error showed up on the terminal for \*  
gnuradio/gr-dtv/lib/atsc/atsc\_interleaver\_impl.cc_ cause no one’s fixed  
the  
repo yet. I fixed that and re-ran ./pybombs install gnuradio which gave  
this output:\*

> <https://pastebin.com/gJuqvU1Q>

_same issues as before. uhd is installed no problem, grc doesn’t show  
up_  
_hopefully this will allow you to help me a little better?_

My guess is that _something_ on your system got broken at some point  
between your first GR install and your first gr-fosphor attempt and  
all your issues are stemming for this one unexpected condition.

\*i thought pybombs was self-contained, once i remove that shouldn’t it  
be a  
complete restore? \*

> OLD ISSUE - protobuf is still the old version and calling ./pybombs update  
> protobuf does nothing

Should’nt matter, this recipe isn’t required by gnuradio. Not even  
sure why there is a recipe at all because it’s not required by  
anything. The message you get when you do a ‘list’ is more a warning  
than anything else and not relevant here.

_good to know about protobuf, thanks._

---

<div class="post-metadata">

**Author:** ![ben\_Gee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/85f322/32.png) [@ben\_Gee](https://www.ruby-forum.com/u/ben_Gee)\
**Post date:** [March 25, 2015, 12:32am UTC](https://www.ruby-forum.com/t/pybombs-gnuradio-libprotobuf-issues-please-help-me/234707/6 "2015-03-25T00:32:49Z")

</div>

I’ve submitted a pull request for the compile issue in gr-dtv.  
However, it takes a little while for requests to get merged.

You’re missing gnuradio-companion because your version of  
SWIG is failing the version check. See line 982 in your first  
pastebin. The minimum SWIG version required is 1.3.31.  
You can see what version of SWIG you have with:

swig -version

Ron

---

<div class="post-metadata">

**Author:** ![ben\_Gee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/85f322/32.png) [@ben\_Gee](https://www.ruby-forum.com/u/ben_Gee)\
**Post date:** [March 25, 2015, 7:21pm UTC](https://www.ruby-forum.com/t/pybombs-gnuradio-libprotobuf-issues-please-help-me/234707/7 "2015-03-25T19:21:18Z")

</div>

thanks ron, my swig version is now updated.  
so, if i run ./pybombs install gnuradio and it reports the error with  
atsc\_interleaver\_impl.cc, i then go in and add “#include \<stdio.h\>”, but  
now when i rerun ./pybombs install gnuradio, it still throws an error  
about  
the stdio commands not being included. is there a way to ‘make clean’  
manually or something in pybombs?

---

<div class="post-metadata">

**Author:** ![ben\_Gee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/85f322/32.png) [@ben\_Gee](https://www.ruby-forum.com/u/ben_Gee)\
**Post date:** [March 25, 2015, 7:42pm UTC](https://www.ruby-forum.com/t/pybombs-gnuradio-libprotobuf-issues-please-help-me/234707/8 "2015-03-25T19:42:55Z")

</div>

What is the specific error?

Ron

---

<div class="post-metadata">

**Author:** ![ben\_Gee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/85f322/32.png) [@ben\_Gee](https://www.ruby-forum.com/u/ben_Gee)\
**Post date:** [March 25, 2015, 7:53pm UTC](https://www.ruby-forum.com/t/pybombs-gnuradio-libprotobuf-issues-please-help-me/234707/9 "2015-03-25T19:53:25Z")

</div>

ok, so editing the .cc file worked now and i got it to stop throwing the  
compile error, but its still not working.

gnuradio-companion still isn’t installed correctly as i can’t call it  
from  
the command line. when i run swig -version i get:

> **[cnlsdr1@cnlsdr1:~$ swig -versionSWIG Version 2.0.11Compiled with g++ \[x8 -...](https://pastebin.com/xWU4d5i3)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

i have a second computer with a completely working gnuradio pybombs  
system  
that i originally installed alongside this one (which was working, until  
i  
reinstalled gnruadio and pybombs) so this is super frustrating that i  
can’t  
duplicate it on a literally identical machine from the wiki  
instructions. i  
hate to perform brain surgery with a bazooka here, but i’m considering  
reinstalling ubuntu and starting over completely at this point.

any thoughts?

---

<div class="post-metadata">

**Author:** ![ben\_Gee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/85f322/32.png) [@ben\_Gee](https://www.ruby-forum.com/u/ben_Gee)\
**Post date:** [March 25, 2015, 8:03pm UTC](https://www.ruby-forum.com/t/pybombs-gnuradio-libprotobuf-issues-please-help-me/234707/10 "2015-03-25T20:03:01Z")

</div>

Did you run ./pybombs env and setup your environment variables?

Rich

---

<div class="post-metadata">

**Author:** ![ben\_Gee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/85f322/32.png) [@ben\_Gee](https://www.ruby-forum.com/u/ben_Gee)\
**Post date:** [March 25, 2015, 9:32pm UTC](https://www.ruby-forum.com/t/pybombs-gnuradio-libprotobuf-issues-please-help-me/234707/11 "2015-03-25T21:32:56Z")

</div>

richard,  
yes, i setup the environment variables. i noticed something strange  
though,  
in my initial (working) install, when i pulled the pybombs source using:  
git clone git://github.com/pybombs/pybombs and cd into pybombs  
in my initial configuration i was able to set my prefix dir to  
/home/profile\_name/pybombs , but now it forces me to use the prefix  
/home/profile\_name/target or it says it can’t install gnuradio in that  
location unless i fix my permissions. I’m not sure what’s wrong with my  
permissions though, if anything.

On Wed, Mar 25, 2015 at 3:01 PM, Richard B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![ben\_Gee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/85f322/32.png) [@ben\_Gee](https://www.ruby-forum.com/u/ben_Gee)\
**Post date:** [March 25, 2015, 9:39pm UTC](https://www.ruby-forum.com/t/pybombs-gnuradio-libprotobuf-issues-please-help-me/234707/12 "2015-03-25T21:39:51Z")

</div>

I think you might be referring to the config.dat file that was created  
after your first attempt at installing with pybombs? When you first  
clone  
pybombs, there is no config.dat, only a config.default. When you go  
through  
the install process, pybombs creates a config.dat that saves the choices  
you made. Now if you try and re-install with the same pybombs as before,  
all of your previous answers will be used during the setup.

Delete the config.dat file in the pybombs directory if you want to start  
from scratch.

Rich

---

<div class="post-metadata">

**Author:** ![ben\_Gee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/85f322/32.png) [@ben\_Gee](https://www.ruby-forum.com/u/ben_Gee)\
**Post date:** [March 26, 2015, 4:02pm UTC](https://www.ruby-forum.com/t/pybombs-gnuradio-libprotobuf-issues-please-help-me/234707/13 "2015-03-26T16:02:57Z")

</div>

thanks rich. I think at this point its some ghost-in-the-machine file or  
config that’s outside the pybombs directory. That makes little sense  
because pybombs should be self-contained, therefore when i delete the  
pybombs and target directories it should not have any difference. That  
being said, it’s just not working.

i’m going to re-install ubuntu and follow the directions that Iluta sent  
me. Her instructions seem to also have details on fixing the fosphor  
issues i was having which was what started this whole mess in the first  
place.

thanks,  
-b

On Wed, Mar 25, 2015 at 4:38 PM, Richard B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
