I don't have a ~/.gnuradio/config.conf file, only ~/.gnuradio/grc.conf exists after I have started gnuradio-companion.
The directory /etc/gnuradio/conf.d exists. The files in there are
-rw-r--r-- 1 root root 209 Mai 5 14:09 00-grc-docs.conf
-rw-r--r-- 1 root root 1074 Mai 5 14:09 gnuradio-runtime.conf
-rw-r--r-- 1 root root 351 Mai 5 14:07 gr-audio-alsa.conf
-rw-r--r-- 1 root root 414 Mai 5 14:07 gr-audio.conf
-rw-r--r-- 1 root root 270 Mai 5 14:07 gr-audio-oss.conf
-rw-r--r-- 1 root root 732 Mai 5 14:09 grc.conf
-rw-r--r-- 1 root root 736 Mai 5 14:07 gr_log_default.conf
-rw-r--r-- 1 root root 496 Mai 5 14:07 gr-qtgui.conf
-rw-r--r-- 1 root root 228 Mai 5 14:09 modtool.conf
modtool.conf contains:
# You may override any setting on a per-user basis by editing
# ~/.gnuradio/config.conf
[modtool]
newmod_path = /usr/share/gnuradio/modtool/templates/gr-newmod
The directory /usr/share/gnuradio/modtool/templates/gr-newmod exists and the content is
drwxr-xr-x 2 root root 4096 Mai 5 15:22 apps
drwxr-xr-x 3 root root 4096 Mai 5 15:22 cmake
-rw-r--r-- 1 root root 6567 Mai 5 14:07 CMakeLists.txt
drwxr-xr-x 3 root root 4096 Mai 5 15:22 docs
drwxr-xr-x 2 root root 4096 Mai 5 15:22 examples
-rw-r--r-- 1 root root 41 Mai 5 14:07 .gitignore
drwxr-xr-x 2 root root 4096 Mai 5 15:22 grc
drwxr-xr-x 3 root root 4096 Mai 5 15:22 include
drwxr-xr-x 2 root root 4096 Mai 5 15:22 lib
-rw-r--r-- 1 root root 717 Mai 5 14:07 MANIFEST.md
drwxr-xr-x 3 root root 4096 Mai 5 15:22 python
Then I have created a file config.conf in ~/.gnuradio that contains
[modtool]
newmod_path = /usr/share/gnuradio/modtool/templates/gr-newmod
The error remains.
I can call gr_modtool without parameters. In this case a help text is shown. Only when I want to add a new module the error message is shown.
Ralf
Am 05.05.2021 um 12:31 schrieb Josh Morman:
Check your ~/.gnuradio/config.conf file. In there is a section [modtool] and a "newmod_path=..."Verify that matches the value of your installed path.On mine it says:[modtool]
newmod_path = /share/gnuradio/gr39/share/gnuradio/modtool/templates/gr-newmodFor 3.9, there was a slight change in the behavior how GR finds the newmod path:
in that it will look wherever the currently installed prefix is, which can be seen with
gnuradio-config-info --prefixMake sure your environment variables are sourced correctly - PATH, PYTHONPATH, LD_LIBRARY_PATH, and LIBRARY_PATH
On Tue, May 4, 2021 at 5:50 PM Ralf Gorholt <ralf.gorholt@gmx.de> wrote:
Dear all,
on my Linux Mint (Ubuntu) box, I have installed and compiled GNU Radio
3.9 from source (master branch) as described here:
https://wiki.gnuradio.org/index.php/UbuntuInstall#Focal_Fossa_.2820.04.29
and here:
https://wiki.gnuradio.org/index.php/InstallingGR#From_Source
CMAKE_INSTALL_PREFIX is /usr.
GNU Radio compiles (without UHD and soapy support) and the tests are ok.
gnuradio-companion starts and everything seems ok. However, when I try
to create a new module with "gr_modtool newmod dl5eu", I get the error
message: ModToolException: Could not find gr-newmod source dir.
I have also tried what was necessary for Ubuntu 18:
$ cd /usr/share/gnuradio/modtool/templates/gr-newmod
$ sudo py3clean .
but this did not solve the problem.
With version 3.8 compiled from the maint-3.8 branch I don't have this
problem. Do you have an idea what I am doing wrong here?
Thank you very much.
Kind regards,
Ralf
No comments:
Post a Comment