discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ImportError


From: Vasil Velichkov
Subject: Re: ImportError
Date: Tue, 2 Nov 2021 12:28:37 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0

Hi Mario,

On 01/11/2021 21.57, Mario Moran wrote:
> For the command, 'dpkg -l | grep gnuradio' here is the output:
> 
> rc  gnuradio                                   3.8.3.1-0~gnuradio~focal-4
>          amd64        GNU Radio Software Radio Toolkit

The `rc` here means - removed, config files are installed. To remove the config 
files you need to run either `sudo apt-get remove --purge gnuradio` or `sudo 
apt-get purge gnuradio`

> ii  libgnuradio-pmt3.8.1:amd64                 3.8.1.0~rc1-2build2
>           amd64        gnuradio pmt container library
> ii  libgnuradio-pmt3.8.3:amd64                 3.8.3.1-0~gnuradio~focal-4
>          amd64        gnuradio pmt container library3.8.3.1-0~gnuradio~focal-4
> .....

You also have two versions of the various libgnuradio-* packages - 3.8.1 and 
3.8.3. Although not strictly necessary my advice is it remove them all. After 
removing libgnuradio-pmt all other should be removed automatically, but if not 
list them explicitly

   apt-get purge libgnuradio-pmt3.8.1 libgnuradio-pmt3.8.3

> So I used the command ' find /usr -name *gnuradio*' and there was none

Strange! You need to put double quotes around the regex

   find /usr -name "*gnuradio*"

> there so I followed your instructions and removed the directory and
> recreated it and installed it. There was an error with the cmake, it said:
> CMake Error at cmake_install.cmake:41 (file):
>   file INSTALL cannot set permissions on
>   "/home/mariom/prefix-3.8/lib/cmake/tutorial/tutorialConfig.cmake":
>   Operation not permitted.

At some point you've used sudo to install. To fix the ownership run

  sudo chown --recursive mariom:mariom /home/mariom/prefix-3.8/

> So I used sudo make install instead and it completed it without fail.

Don't use sudo when installing in your $HOME, it is not necessary.

> The reason why I had to was when I was trying to figure out how to fix this
> I thought maybe the prefix was incorrect so I find Gnuradio that was not
> installed pybombs and used the command of cmake but instead of prefix.3.8 I
> placed 3.8.3.1. Would it be ok to remove that one 

Yes, you can just delete the whole directory.

> or would that correct problems?

It won't solve current problems but most probably would prevent problems in the 
future.

> I start gnuradio companion through the terminal using this:
> 
> source ~/prefix-3.8/setup_env.sh
> gnuradio-companion

Does it work now and if not what error do you get? If you still get some errors 
then first remove all libgnuradio packages, all leftovers, then do a clean 
rebuild/reinstall, run your flowgraph and provide the full output.

> Thank you for all of your help so far in this. Sorry for all of the
> questions I have.

You are welcome! It is more then normal to have a lot of questions and there is 
nothing to be sorry about. Keep exploring and someday pay it forward by helping 
other new users.

Regards,
Vasil



reply via email to

[Prev in Thread] Current Thread [Next in Thread]