Upgraded to GnuRadio 3.10 from 3.9 and gnuradio-companion aborts with
a module not found trying to import my OOT python blocks. The modules
are being placed in /usr/local/local/lib64/python3.10/site-packages -
note the local/local. the destination should be
/usr/local/lib64/python3.10/site-packages.
The fix is after running the cmake ../ command in the build directory,
edit build/python/cmake_install.cmake and
build/python/bindings/cmake_install.cmake and change
file(INSTALL DESTINATION
"$(CMAKE_INSTALL_PREFIX)/local/lib64/python3.10/site-packages.....
to
file(INSTALL DESTINATION
"$(CMAKE_INSTALL_PREFIX)/lib64/python3.10/site-packages..... (remove
/local)
there are 2 changes in build/python/cmake_install.cmake and 8 changes
in build/python/bindings/cmake_install.cmake
Make these changes before running the make/sudo make install.
I am unable to determine if this is a problem in the gr_modtool or in
the GR_PYTHON_DIR constant or in some setting in my custom OOT project.
My environment is Fedora 36, Gnuradio 3.10 and Python 3.10.