I think, the PYTHONPATH should not start with : and it is not required that the PYTHONPATH contains the location of your grc files. ~/.grc_gnuradio is not a file but a directory. If this diretocry does not exist, just create it.
Copy your generated *.yml and *.py from your working directory to ~/.grc_gnuradio What's the output of grc when you start it? On my system it looks like: grc <<< Welcome to GNU Radio Companion v3.10.0.0-22-g7712360d >>> Block paths: /home/schroer/.grc_gnuradio /usr/local/gnuradio/share/gnuradio/grc/blocks The second path points to the gnuradio blocks and depends on your installation., probably /usr/share/gnuradio/grc/blocks/ If grc references your .grc_gnuradio directory , you should find your created blocks in grc. If the reference is missing have a look at ~/.gnuradio/config.conf There should be a section like [grc] canvas_default_size = 1280, 1024 canvas_font_size = 8 default_flow_graph = enabled_components = testing-support;python-support;man-pages;gnuradio-runtime;gr-ctrlport;gnuradio-companion;gr-blocks;gr-fec;gr-fft;gr-filter;gr-analog;gr-digital;gr-dtv;gr-audio;* alsa;* oss;gr-channels;gr-pdu;gr-iio;* libad9361;gr-qtgui;gr-trellis;gr-utils;gr_modtool;gr_blocktool;gr-vocoder;gr-network global_blocks_path = /usr/local/gnuradio/share/gnuradio/grc/blocks local_blocks_path = xterm_executable = /usr/bin/xterm Here you can specify your local_blocks_path I hope this helps. -- Volker
The output is echo $PYTHONPATH :/home/grctut/the folder where I am saving working grc files. However, I am able to use GRC for other purposes normally. I notice that GRC blocks (.yaml files) are in /usr/share/gnuradio/grc/blocks/ folder. Also there is no .grc_gnuradio file in my home directory. However, there is a .gnuradio folder with a prefs folder and config.conf and grc.conf files. prefs folder has a vmcircbuf_default_factory file. ------------------------------ Message: 3 Date: Sat, 12 Feb 2022 12:07:37 +0100 From: Volker Schroer <dl1...@gmx.de <mailto:dl1...@gmx.de>> To: discuss-gnuradio@gnu.org <mailto:discuss-gnuradio@gnu.org> Subject: Re: Tutorial on Hier Block and Parameters Message-ID: <a21da2e7-fea7-ecce-9de3-4b1567795...@gmx.de <mailto:a21da2e7-fea7-ecce-9de3-4b1567795...@gmx.de>> Content-Type: text/plain; charset=UTF-8; format=flowed Yes, that the generated hier block files go to the working directory of ~/.grc_gnuradio is a known bug. See: https://github.com/gnuradio/gnuradio/pull/5547 <https://github.com/gnuradio/gnuradio/pull/5547> What is the result of echo $PYTHONPATH -- Volker > Hi, > I am facing a problem using the tutorial. My installation is from > repository. > I am using GRC3.10.1.1(Python3.8.10) on OS Ubuntu 20.04.3LTS. > When I generate the flow graph, output files are going to the working > directory and not .grc_gnuradio as mentioned in tutorial. Probably > because of this, they are not appearing in the block tree of GRC. Also, > I get these messages on the terminal. > Warning: vocoder_codec2_decode_ps - option_attributes are for enums > only, ignoring > >>> Warning: vocoder_codec2_encode_sp - option_attributes are for enums > only, ignoring > May not be relevant, but I observe whenever I open the terminal, the > following line appears before the command prompt. > PYTHONPATH: command not found > Please help me in configuring GRC properly. Or do i have to install > gnuradio in home directory instead of system installation? > > -- > Best Regards, > vsrk sarma -- Best Regards, vsrk sarma