# Is it possible to undo my mistake

**URL:** <https://www.ruby-forum.com/t/is-it-possible-to-undo-my-mistake/241739>\
**Category:** GNU Radio\
**Created:** [April 28, 2015, 1:45am UTC](https://www.ruby-forum.com/t/is-it-possible-to-undo-my-mistake/241739 "2015-04-28T01:45:36Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [April 28, 2015, 1:45am UTC](https://www.ruby-forum.com/t/is-it-possible-to-undo-my-mistake/241739/1 "2015-04-28T01:45:36Z")

</div>

Dear all,

I followed a tutorial online to install a sdr software and accidentaly  
deleted files from my gnuradio installation. It took me a very long time  
to  
manage to set up everyting so before I start from the beginning I wanted  
to  
ask you if it is possible to undo my mistake. I am on Ubuntu 14.04 LTS  
and  
did:  
cd user/local/lib  
sudo rm libgnuradio\*

Now when I run gnuradio-companion I get:

_Cannot import gnuradio._

_Is the python path environment variable set correctly?_

- All OS: PYTHONPATH\*

_Is the library path environment variable set correctly?_

- Linux: LD\_LIBRARY\_PATH\*
- Windows: PATH\*
- MacOSX: DYLD\_LIBRARY\_PATH\*

Thank you all!

---

<div class="post-metadata">

**Author:** ![calvin76](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9de053/32.png) [@calvin76](https://www.ruby-forum.com/u/calvin76)\
**Post date:** [May 4, 2015, 1:02pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-undo-my-mistake/241739/2 "2015-05-04T13:02:54Z")

</div>

Thank you very much for the answers.  
I removed gnuradio by deleting my pybombs folder and deleting all files  
with gnuradio in the filename from my computer. Then I installed pybombs  
again and used it to install gnuradio. However now I have two problems  
that  
I didn’t had before.

1. When I run the command: “gnuradio-companion” it doen’t work if I  
don’t  
first run “source ~/target/setup\_env.sh”.

2. When I run a flowgraph in grc with a scope sink I get the error  
message:  
“Can’t load image from file  
‘/usr/share/icons/hicolor/32x32/apps/gnuradio-grc.png’: file does not  
exist.”

Thank you so much for any help. I am new to Ubuntu so that’s probably my  
problem…

Best regards

Carl

---

<div class="post-metadata">

**Author:** ![calvin76](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9de053/32.png) [@calvin76](https://www.ruby-forum.com/u/calvin76)\
**Post date:** [April 28, 2015, 1:57am UTC](https://www.ruby-forum.com/t/is-it-possible-to-undo-my-mistake/241739/3 "2015-04-28T01:57:18Z")

</div>

Probably not without knowing exactly what was accidentally deleted.

What process do you use to install gnuradio that is so difficult to  
start  
over with? What OS?

On Ubuntu 14.04 using pybombs, it takes me about 35 minutes to  
completely  
wipe gnuradio from my machine to having it fully installed again. This  
should be possible for you too, assuming a standard setup.

v/r,  
Rich

On Mon, Apr 27, 2015 at 4:41 PM, Carl O. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![calvin76](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9de053/32.png) [@calvin76](https://www.ruby-forum.com/u/calvin76)\
**Post date:** [May 4, 2015, 4:06pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-undo-my-mistake/241739/4 "2015-05-04T16:06:56Z")

</div>

Add that source command to your .bashrc file which is located in your  
home directory. It is a hidden file. Every time you open a new terminal,  
the commands in .bashrc are automatically executed for you. After you  
add that line, make sure you close all old terminals and use new ones.

The second problem is odd. You’ve made sure the file exists at the  
location? If it does, then I would ask if you are using WX Gui  
components? They are being phased out and have been discussed as having  
issues lately on the mailing list. I never use them. I would recommend  
replacing them all with QT components and trying that. Make sure you  
change the gui option in your options block too.

Rich

Sent from my iPad

---

<div class="post-metadata">

**Author:** ![calvin76](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9de053/32.png) [@calvin76](https://www.ruby-forum.com/u/calvin76)\
**Post date:** [May 5, 2015, 9:17pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-undo-my-mistake/241739/5 "2015-05-05T21:17:47Z")

</div>

Hi,

Thank you very much for the help! Now it works, for some reason the  
solution to the first problem also solved the second or something else  
did.

Best regards,

Carl

---

<div class="post-metadata">

**Author:** ![calvin76](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9de053/32.png) [@calvin76](https://www.ruby-forum.com/u/calvin76)\
**Post date:** [May 5, 2015, 9:29pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-undo-my-mistake/241739/6 "2015-05-05T21:29:28Z")

</div>

No sorry It doesn’t work yet… I have a HackRF, and before I reinstalled  
gnuradio I found out that if I use an Osmocom source I get an error  
saying  
no supported device found. But if I started gnuradio with the command  
“sudo  
gnuradio-companion” then it all worked. However now when I do “sudo  
gnuradio-companion” I get “sudo: gnuradio-companion: command not found”.

If I do:

cd target, cd bin, sudo ./gnuradio-companion

I get -\>

_Cannot import gnuradio._

_Is the python path environment variable set correctly?_

- All OS: PYTHONPATH\*

_Is the library path environment variable set correctly?_

- Linux: LD\_LIBRARY\_PATH\*

- Windows: PATH\*

- MacOSX: DYLD\_LIBRARY\_PATH\*

Thank you very much in advance if someone knows how to fix this.

Best regards,

Carl

---

<div class="post-metadata">

**Author:** ![calvin76](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9de053/32.png) [@calvin76](https://www.ruby-forum.com/u/calvin76)\
**Post date:** [May 11, 2015, 7:39pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-undo-my-mistake/241739/7 "2015-05-11T19:39:21Z")

</div>

Safest for GNU Radio is package manager. Can’t speak for HackRF, but you  
can always use PyBOMBS. If you install GNU Radio through apt-get, and  
then HackRF through PyBOMBS, you might need to set GNU Radio as already  
installed in PyBOMBS.

Cheers,  
Martin

---

<div class="post-metadata">

**Author:** ![calvin76](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9de053/32.png) [@calvin76](https://www.ruby-forum.com/u/calvin76)\
**Post date:** [May 11, 2015, 7:53pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-undo-my-mistake/241739/8 "2015-05-11T19:53:57Z")

</div>

You can also get hackrf libs through Ubuntu’s package manager.

Whatever install method you choose it is best to avoid deleting  
installed  
libraries unless you really know what you are doing.

-Nathan

On Mon, May 11, 2015 at 12:37 PM, Martin B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![calvin76](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9de053/32.png) [@calvin76](https://www.ruby-forum.com/u/calvin76)\
**Post date:** [May 11, 2015, 7:36pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-undo-my-mistake/241739/9 "2015-05-11T19:36:25Z")

</div>

Hi all,

I couldn’t solve my problems so I decided to reinstall Ubuntu 14.04 LTS  
from the beginning on my hp elitebook 8460p. What is the safest (highest  
probability of working) way of installing gnuradio (and hackrf tools)?  
I just need a simple installation. Pybombs, build script, package  
manager or something else?

Best regards,

Carl

---

<div class="post-metadata">

**Author:** ![calvin76](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9de053/32.png) [@calvin76](https://www.ruby-forum.com/u/calvin76)\
**Post date:** [May 11, 2015, 11:15pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-undo-my-mistake/241739/10 "2015-05-11T23:15:30Z")

</div>

But if you get hackrf libs through Ubuntu’s package manager, do so  
before building anything related to HackRF (i.e. before running pybombs,  
especially before installing gr-osmosdr); The problem is that a program  
links against a specific ABI of a library – in general, against  
_exactly_ the same version of the library that was there when the  
program was being built. This means that getting hackrf /libhackrf0 from  
Ubuntus repositories will not make your version of GNU Radio built  
before that installation use that library – you’ll have to recompile  
gr-osmosdr to get that functionality.

In fact, if you just use pyBombs’ default setting of installing from deb  
if a sufficient version can be found, Hackrf/libhackrf will  
automatically be installed from Ubuntu’s repos if you  
pybombs install gr-osmosdr

So, my way of doing this would be, on a freshly set up system (with  
nothing related to this previously installed):

- getting pybombs
- (sudo) ./pybombs install gnuradio gr-osmosdr

and you should get a running system – Ubuntu 14.04 is probably the most  
prolific target for pybombs these days, and the defaults should be  
“pretty safe”.

Best regards,  
Marcus

---

<div class="post-metadata">

**Author:** ![calvin76](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9de053/32.png) [@calvin76](https://www.ruby-forum.com/u/calvin76)\
**Post date:** [May 24, 2015, 6:44pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-undo-my-mistake/241739/11 "2015-05-24T18:44:54Z")

</div>

Thank you all for the help.  
I ended up installing it from the package manager and now it works fine.

Best regards,

Carl
