Simple FM receiver GRC error

I’m sorry to have to ask more questions.

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.


Regards,
Phil

On Friday, June 08, 2012 12:34:53 PM Phil wrote:

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.

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

svn co https://www.cgran.org/svn/projects/simple_fm_rcv

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.}

73s
jim
ki6njf

On Friday, June 08, 2012 02:43:56 PM Phil wrote:

On 08/06/12 13:04, ki6njf wrote:
[snip]
The path points to osmosdr_source_c.h.

And these are still the same errors:

Error 0:
Block - import_1 - Import(import):
Param - Import(import):
Import “import simple_fm_helper” failed.

I’m at my wits end.

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.

On 08/06/12 13:04, ki6njf wrote:

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!

This my python path:

[phil@localhost trunk]$ cat $PYTHONPATH
cat: /usr/local/src/gr-osmosdr/include/osmosdr/:/home/phil/bin

The path points to osmosdr_source_c.h.

And these are still the same errors:

Error 0:
Block - import_1 - Import(import):
Param - Import(import):
Import “import simple_fm_helper” failed.

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.

I’m at my wits end.


Regards,
Phil

On 08/06/12 15:14, ki6njf wrote:

Thanks Marcus and Jim for the detailed instructions, however I still

Thanks again Jim,

I moved the grc file into my bin directory. Three errors down one to go.
I must be nearly there.

Error 0:
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.


Regards,
Phil

Apparently, that Import block/function is very simplistic and will
only import from the directory that companion was started in.

73s jim KI6NJF

No. If the “helper” .py file has been copied into $HOME/bin (which gets
done by the makefile), AND
PYTHONPATH includes $HOME/bin you should be golden.

Use the starter shell script, which should also be in $HOME/bin:
simple_fm_rcv