The “Simple FM receiver” by Marcus L. would seem to be simple in name
only. I’m sure that I have followed the installation instructions to the
letter but I still end up with an error as follows:
<<< Welcome to GNU Radio Companion 3.5.3.2 >>>
Loading: “/home/phil/bin/simple_fm_helper.py”
Error: Start tag expected, ‘<’ not found, line 1, column 1
Failure
Showing: “”
In case I’ve missed something important, this is what I did. I opened
“simple_fm_rcv.grc” with gnuradio-companion and there aren’t any ‘<’ in
the file simple_fm_helper.py.
In case I’ve missed something important, this is what I did. I opened
“simple_fm_rcv.grc” with gnuradio-companion and there aren’t any ‘<’ in
the file simple_fm_helper.py.
Phil, I just got simple_fm_rcv working today.
I had to:
open up a terminal
cd to my radio flowdiagram directory - /home/jim/gnu_radio
cd to the directory - in my case -
/home/jim/gnu_radio/simple_fm_rcv/trunk/
make install
export PYTHONPATH=$PYTHONPATH:/home/jim/bin
then run gnuradio-companion
then open simple_fm_rcv.grc
it works! Before this, I was getting an import error for
simple_fm_helper no
matter where I put the simple_fm_helper program or what I set the
PYTHONPATH
to.
now each time I run gnuradio-companion or the python variant, I have to
run
the export PYTHONPATH=$PYTHONPATH:/home/jim/bin
statement from inside the terminal that I’ll start gnuradio-companion
from.
{I’ve not figured out (yet) where Kubuntu 12.04 keeps the .profile or
xxx
file that would permanently set the python path and allow me to start
companion from the GUI.}
That was the error I was getting. I’ve found that I still get it if I
do not
start gnuradio-companion in the directory where simple_fm_helper is
located.
Apparently, that Import block/function is very simplistic and will only
import
from the directory that companion was started in.
it works! Before this, I was getting an import error for
simple_fm_helper no matter where I put the simple_fm_helper program or
what I set the PYTHONPATH to.
now each time I run gnuradio-companion or the python variant, I have to
run the export PYTHONPATH=$PYTHONPATH:/home/jim/bin
Thanks Marcus and Jim for the detailed instructions, however I still
cannot get this to work!
Error 1:
Block - cur_freq - Variable(variable):
Param - Value(value):
Value “simple_fm_helper.freq_select(ifreq,preselect)” cannot be
evaluated:
name ‘simple_fm_helper’ is not defined
Error 2:
Block - rtext_0 - WX GUI Static Text(variable_static_text):
Param - Default Value(value):
Value “cur_freq” cannot be evaluated:
name ‘cur_freq’ is not defined
Error 3:
Block - gr_freq_xlating_fir_filter_xxx_0 - Frequency Xlating FIR
Filter(gr_freq_xlating_fir_filter_xxx):
Sink - in(0):
Port is not connected.