discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: GNUradio 3.8: ModuleNotFoundError: No module named 'myModulename'


From: Ron Economos
Subject: Re: GNUradio 3.8: ModuleNotFoundError: No module named 'myModulename'
Date: Thu, 27 Feb 2020 23:02:29 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

You need to install OOT's into the same directory that GNU Radio is installed in. You can get the correct directory with this command:

gnuradio-config-info --prefix

Then use the result in your CMake invocation. Since I believe you installed from the PPA, then the prefix will be /usr. So the CMake command would be:

cmake -DCMAKE_INSTALL_PREFIX=/usr ../

Before you do this, you should uninstall your current build.

sudo make uninstall

And then delete the contents of the build directory (make sure you're in the build directory).

rm -rf *

Ron

On 2/27/20 15:21, Laura Arjona wrote:
Hello community!

I just updated my complete OOT module (named bcsi)  from gnuradio 3.7 to 3.8, and I could make and install  without errors.
Using version 3.8, I created every block with gr_modtool (and then copied-pasted the .cc and .h code from 3.7 version to 3.8)

However, python will not find my module. I already did some basic debugging.

In the /build directory, I already run
$cmake ..
.........
-- Configuring done
-- Generating done
-- Build files have been written to: /home/Documents/gr-bcsi/build
$make
$sudo make install
$sudo ldconfig

I can see the modules appear in the grc GUI, but still cannot find my module.

$ python3
Python 3.6.9 (default, Nov  7 2019, 10:44:02)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gnuradio
>>> import bcsi
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'bcsi'
>>>



Any advice would be welcomed!

Best


--
Laura Arjona 
Washington Research Foundation Innovation Postdoctoral Fellow in Neuroengineering

Paul G. Allen School of Computer Science & Engineering
185 E Stevens Way NE
University of Washington
Seattle, WA 98195-2350

reply via email to

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