gr-paint icon indicating copy to clipboard operation
gr-paint copied to clipboard

NoModuleFound Error after installation

Open FenixC4 opened this issue 4 years ago • 10 comments

I have build and installed the gr-paint as in readme file, however when i try to use it in gnu radio companion, it won't work

FenixC4 avatar Sep 10 '20 16:09 FenixC4

Ok so i changed the install path to be in /usr instead of /usr/local, and now it kind of works, but i get this error.

AttributeError: module 'paint' has no attribute 'paint_bc'

FenixC4 avatar Sep 10 '20 18:09 FenixC4

Check to see where your GNU Radio is installed.

gnuradio-config-info --prefix

Make sure you're using the correct branch. maint-3.7 for GNU Radio 3.7.x or master for GNU Radio 3.8.x.

drmpeg avatar Sep 11 '20 03:09 drmpeg

My prefix is /usr and i use master for GNU Radio 3.8.x

FenixC4 avatar Sep 11 '20 17:09 FenixC4

I used cmake -DCMAKE_INSTALL_PREFIX=/usr ../ to change the installation path, because the default was /usr/local

And it still says AttributeError: module 'paint' has no attribute 'paint_bc'

FenixC4 avatar Sep 11 '20 17:09 FenixC4

Clear your build directory before rebuilding. CMake can cache things.

cd gr-paint/build
rm -rf *
cmake -DCMAKE_INSTALL_PREFIX=/usr ../
make
sudo make install
sudo ldconfig

Be absolutely sure you're in gr-paint/build before issuing rm -rf *.

drmpeg avatar Sep 12 '20 00:09 drmpeg

I still get AttributeError: module 'paint' has no attribute 'paint_bc' error

FenixC4 avatar Sep 12 '20 15:09 FenixC4

And i have even clean uninstalled previous attempts with sudo make uninstall in /build folder so nothing collides

FenixC4 avatar Sep 12 '20 15:09 FenixC4

Well, I'm out of tricks. Are you using some other OS than Ubuntu/Debian?

drmpeg avatar Sep 13 '20 00:09 drmpeg

Well, Kali Linux, but it's so close to Debian, i didn't think it really matters. Does it ? I mean now we see it does, do you think there is any way to run gr-paint on Kali Linux ?

FenixC4 avatar Sep 13 '20 13:09 FenixC4

Maybe it's using a different directory structure. Take a look in /usr/lib/python3/dist-packages/ and see what's there. It should have gnuradio, pmt and paint (and lots of other python stuff). If it's just paint, then add to your python path.

export PYTHONPATH=$PYTHONPATH:/usr/lib/python3/dist-packages

drmpeg avatar Sep 13 '20 23:09 drmpeg