Re: GNUradio 3.8: ModuleNotFoundError: No module named 'myModulename'
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 "", line 1, in 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
Re: GNUradio 3.8: ModuleNotFoundError: No module named 'myModulename'
Hi Laura - I'm guessing the location where your GR OOT was installed isn't in the PYTHONPATH, nor the default path for the Python being used. Check out this (recently updated) GR wiki page < https://wiki.gnuradio.org/index.php/ModuleNotFoundError > ... hopefully that info helps you along! - MLD On Thu, Feb 27, 2020 at 5:24 PM 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 "", line 1, in > 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 > -- Michael Dickens Ettus Research Technical Support Email: supp...@ettus.com Web: https://ettus.com/
GNUradio 3.8: ModuleNotFoundError: No module named 'myModulename'
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 "", line 1, in 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