Ubuntu 11.04 and Gnuradio-3.3.0

I humbly apologize for everything wrong I have done, now today, or will
do in the future…

I am electrical Eng, want to start using gnuradio, coming back to Linux
after 10 years off. After 2 frustrating weeks, I was finally able to get
AN install, but the verbose seems NOT completely clean.

I had the “PythonPath” and “LD_LIB_CONF” problems, and got through that
with help from the previous (old) post on this forum (see far below).
Thanks! Thanks! Thanks!

(Aside: why is there a Gnuradio forum on a Ruby site?
again, sorry in advance for my ignorance…)

Starting WITH HOPE ,from a forum post over 6 months old but with
output pretty close to what I get now (scroll to bottom for OLD original
post).

My $env:
echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

echo $PYTHONPATH
/usr/local/lib/python2.7/dist-packages:/usr/local/lib/python2.7/site-packages:/usr/local/bin

LIB_LD_CONF:
ls etc/ld.so.conf.d/
GL.conf gr-audio-alsa.conf gr-wxgui.conf libc.conf
gnuradio.conf gr-audio-oss.conf i686-linux-gnu.conf
gnuradio-core.conf grc.conf libasound2.conf

When I execute usrp_benchmark_usb.py I get:
(is it because I do not yet have the usrp HW?) I would LOVE THAT if
true!


Testing 2MB/sec… usrp: failed to find usrp[0]
Traceback (most recent call last):
File
“gradio/gnuradio-3.3.0/gnuradio-examples/python/usrp/usrp_benchmark_usb.py”,
line 106, in
main ()
File
“gradio/gnuradio-3.3.0/gnuradio-examples/python/usrp/usrp_benchmark_usb.py”,
line 96, in main
ok = run_test (rate, verbose)
File
“gradio/gnuradio-3.3.0/gnuradio-examples/python/usrp/usrp_benchmark_usb.py”,
line 63, in run_test
usrp_tx = usrp.sink_s (0, tx_interp)
File
“/usr/local/lib/python2.7/dist-packages/gnuradio/usrp/usrp_swig.py”,
line 2800, in sink_s
return _usrp_swig.sink_s(*args, **kwargs)
RuntimeError: can’t open usrp


ORIGINAL POST:


i am installing every thing according to the gnuradio installation
document.
every thing is going fine but when i give the following command

[email protected]:~/gnuradio/gnuradio-examples/python/usrp$
./usrp_benchmark_usb.py

Traceback (most recent call last):
File “./usrp_benchmark_usb.py”, line 30, in
from gnuradio import gr
ImportError: No module named gnuradio

This is the problem i am facing. please help me in this regard.
Thank you
with regards,
dushyanth

Craig,

I sympathise greatly. Is there a really good reason you can’t go back to
Ubuntu 10.10 and install from there? That is what I have done. I also
installed the more recent version from source using the script from the
forum, which was needed to make things work properly. There are a huge
number of Gotchas to deal with as it is, see my post not being able to
make grc run simply because the name of the program was changed without
telling making it obvious to us novices. Starting from a bleeding edge
new distribution is likely to be result in tears and/or loss of hair.

Mike

Please Help Me!!!
[email protected]:~$ grc

(grc:2743): Gtk-WARNING **: Unable to locate theme engine in
module_path: “pixmap”,

(grc:2743): Gtk-WARNING **: Unable to locate theme engine in
module_path: “pixmap”,

(grc:2743): Gtk-WARNING **: Unable to locate theme engine in
module_path: “pixmap”,

(grc:2743): Gtk-WARNING **: Unable to locate theme engine in
module_path: “pixmap”,
<<< Welcome to GNU Radio Companion 3.2.2 >>>
Error: ‘options’

Failue
Traceback (most recent call last):
File
“/usr/lib/python2.7/dist-packages/gnuradio/grc/gui/MainWindow.py”, line
174, in new_page
flow_graph = self._platform.get_new_flow_graph()
File “/usr/lib/python2.7/dist-packages/gnuradio/grc/base/Platform.py”,
line 149, in get_new_flow_graph
def get_new_flow_graph(self): return self.FlowGraph(self)
File “”, line 4, in init
File
“/usr/lib/python2.7/dist-packages/gnuradio/grc/base/FlowGraph.py”, line
37, in init
self.import_data()
File
“/usr/lib/python2.7/dist-packages/gnuradio/grc/base/FlowGraph.py”, line
192, in import_data
self._options_block = self.get_parent().get_new_block(self,
‘options’)
File “/usr/lib/python2.7/dist-packages/gnuradio/grc/base/Platform.py”,
line 159, in get_new_block
def get_new_block(self, flow_graph, key): return
self.Block(flow_graph, n=self._blocks_n[key])
File “/usr/lib/python2.7/dist-packages/gnuradio/grc/base/odict.py”,
line 34, in getitem
return self._data[key]
KeyError: ‘options’
Error: ‘options’

Failue
Traceback (most recent call last):
File
“/usr/lib/python2.7/dist-packages/gnuradio/grc/gui/MainWindow.py”, line
174, in new_page
flow_graph = self._platform.get_new_flow_graph()
File “/usr/lib/python2.7/dist-packages/gnuradio/grc/base/Platform.py”,
line 149, in get_new_flow_graph
def get_new_flow_graph(self): return self.FlowGraph(self)
File “”, line 4, in init
File
“/usr/lib/python2.7/dist-packages/gnuradio/grc/base/FlowGraph.py”, line
37, in init
self.import_data()
File
“/usr/lib/python2.7/dist-packages/gnuradio/grc/base/FlowGraph.py”, line
192, in import_data
self._options_block = self.get_parent().get_new_block(self,
‘options’)
File “/usr/lib/python2.7/dist-packages/gnuradio/grc/base/Platform.py”,
line 159, in get_new_block
def get_new_block(self, flow_graph, key): return
self.Block(flow_graph, n=self._blocks_n[key])
File “/usr/lib/python2.7/dist-packages/gnuradio/grc/base/odict.py”,
line 34, in getitem
return self._data[key]
KeyError: ‘options’
Traceback (most recent call last):
File “/usr/bin/grc”, line 53, in
ActionHandler(args, Platform())
File
“/usr/lib/python2.7/dist-packages/gnuradio/grc/gui/ActionHandler.py”,
line 70, in init
self.handle_states(Actions.APPLICATION_INITIALIZE)
File
“/usr/lib/python2.7/dist-packages/gnuradio/grc/gui/ActionHandler.py”,
line 332, in handle_states
Actions.get_action_from_name(Actions.ELEMENT_DELETE).set_sensitive(bool(self.get_flow_graph().get_selected_elements()))
File
“/usr/lib/python2.7/dist-packages/gnuradio/grc/gui/MainWindow.py”, line
281, in get_flow_graph
return self.get_page().get_flow_graph()
AttributeError: ‘NoneType’ object has no attribute ‘get_flow_graph’

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs