Hi:
I need someone help me, why I can’t run example from this page:
http://www.gnu.org/software/gnuradio/doc/exploring-gnuradio.html
When I run example 1:Dial Tone Output.
I get error message:
Traceback (most recent call last):
File “am.py”, line 20, in
fg = build_graph ()
File “am.py”, line 10, in build_graph
fg = gr.flow_graph ()
AttributeError: ‘module’ object has no attribute ‘flow_graph’
When I run example 2:A Complete FM Receiver
I get error message:
Traceback (most recent call last):
File “test.py”, line 5, in
from gnuradio import mc4020
ImportError: cannot import name mc4020
Why? How can I do?
Thanks.
On Mar 19, 2008, at 11:47 AM, JackyYang wrote:
I need someone help me, why I can’t run example from this page: http://www.gnu.org/software/gnuradio/doc/exploring-gnuradio.html
When I run example 1:Dial Tone Output.
I get error message:
Traceback (most recent call last):
File “am.py”, line 20, in
fg = build_graph ()
File “am.py”, line 10, in build_graph
fg = gr.flow_graph ()
AttributeError: ‘module’ object has no attribute ‘flow_graph’
This example will no longer work with the current SVN trunk (assuming
that’s what you’re using), because the “flow_graph” code has been
removed. Someone needs to update that page
… or create a
backwards compatible “flow_graph” interpretation layer.
When I run example 2:A Complete FM Receiver
I get error message:
Traceback (most recent call last):
File “test.py”, line 5, in
from gnuradio import mc4020
ImportError: cannot import name mc4020
Could be a number of problems:
- The module “mc4020” is wasn’t compiled / installed in the first place;
- PYTHONPATH isn’t correct to find it;
- code is too old, and no longer works with the SVN trunk (or release
tarball).
JackyYang wrote:
File “am.py”, line 10, in build_graph
fg = gr.flow_graph ()
AttributeError: ‘module’ object has no attribute ‘flow_graph’
in the script, change:
fg = gr.flow_graph()
to:
fg = gr.top_block()
Then run again.
Could be a number of problems:
- The module “mc4020” is wasn’t compiled / installed in the first place;
How could I install it?(My system is Ubnutu7.10, and I am step by step
see
this page http://www.gnuradio.org/trac/wiki/UbuntuInstall)
- PYTHONPATH isn’t correct to find it;
I am sure I can run other gnuradio-example program.(Is that mean
PYTHONPATH
ok?)
- code is too old, and no longer works with the SVN trunk (or release
tarball).=
That is too bad, has any way can I get example code to run FM receiver?
Thank your answer!!
I need someone help me, why I can’t run example from this page:
http://www.gnu.org/software/gnuradio/doc/exploring-gnuradio.html
This example will no longer work with the current SVN trunk (assuming
that’s what you’re using), because the “flow_graph” code has been
removed. Someone needs to update that page
… or create a
backwards compatible “flow_graph” interpretation layer.
When I run example 2:A Complete FM Receiver
I get error message:
Traceback (most recent call last):
File “test.py”, line 5, in
from gnuradio import mc4020
ImportError: cannot import name mc4020
Dear sir:
It is work!! Thank you very much.
But, why I can’t see graph?
I have installed GNU Radio Companion, is it run on GRC?
File “am.py”, line 10, in build_graph
fg = gr.flow_graph ()
AttributeError: ‘module’ object has no attribute ‘flow_graph’