drmpeg / gr-paint

An OFDM Spectrum Painter for GNU Radio
GNU General Public License v3.0
133 stars 25 forks source link

NoModuleFound Error after installation #16

Open FenixC4 opened 4 years ago

FenixC4 commented 4 years ago

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 commented 4 years ago

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'

drmpeg commented 4 years ago

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.

FenixC4 commented 4 years ago

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

FenixC4 commented 4 years ago

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'

drmpeg commented 4 years ago

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 *.

FenixC4 commented 4 years ago

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

FenixC4 commented 4 years ago

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

drmpeg commented 4 years ago

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

FenixC4 commented 4 years ago

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 ?

drmpeg commented 4 years ago

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