I just installed GR 3.7 on my Centos 6.5 machine, everything I done is
ok (I
set the env. var. after accordingly).
But when I run gnuradio-companion I got a bunch of errors appearing in
the
terminal:
Error: ‘DrawingArea’ object has no attribute ‘set_can_focus’
Failure
Traceback (most recent call last):
File
“~/gnuradio-3.7_install/lib64/python2.6/site-packages/gnuradio/grc/gui/MainWindow.py”,
line 188, in new_page
file_path=file_path,
File
“~/gnuradio-3.7_install/lib64/python2.6/site-packages/gnuradio/grc/gui/NotebookPage.py”,
line 82, in init
self.drawing_area = DrawingArea(self.get_flow_graph())
File
“~/gnuradio-3.7_install/lib64/python2.6/site-packages/gnuradio/grc/gui/DrawingArea.py”,
line 66, in init
self.set_can_focus(True) AttributeError: ‘DrawingArea’ object has no attribute ‘set_can_focus’
Traceback (most recent call last):
File
“~/gnuradio-3.7_install/lib64/python2.6/site-packages/gnuradio/grc/gui/ActionHandler.py”,
line 357, in _handle_action
self.main_window.reports_scrolled_window.set_visible(visible)
AttributeError: ‘gtk.ScrolledWindow’ object has no attribute
‘set_visible’
Traceback (most recent call last):
File
“~/gnuradio-3.7_install/lib64/python2.6/site-packages/gnuradio/grc/gui/ActionHandler.py”,
line 361, in _handle_action
self.main_window.btwin.set_visible(visible)
AttributeError: ‘BlockTreeWindow’ object has no attribute ‘set_visible’
Traceback (most recent call last):
File
“~/gnuradio-3.7_install/lib64/python2.6/site-packages/gnuradio/grc/gui/ActionHandler.py”,
line 489, in _handle_action
Actions.ERRORS_WINDOW_DISPLAY.set_sensitive(not
self.get_flow_graph().is_valid())
File
“~/gnuradio-3.7_install/lib64/python2.6/site-packages/gnuradio/grc/gui/MainWindow.py”,
line 304, in get_flow_graph
return self.get_page().get_flow_graph()
*AttributeError: ‘NoneType’ object has no attribute ‘get_flow_graph’
*^CTraceback (most recent call last):
File “~/gnuradio-3.7_install/bin/gnuradio-companion”, line 72, in
ActionHandler(args, Platform())
File
“~/gnuradio-3.7_install/lib64/python2.6/site-packages/gnuradio/grc/gui/ActionHandler.py”,
line 72, in init
gtk.main()
And the window of grc appears but empty nothing inside just gray.
BTW the menu bar appears but the blocks, output and the main windows
does
not.
Trying to click close or click on any button of the menu bar give no
result.
One need to close the graph by Ctl+C in the terminal.
I pulled your grc fixing, proceed to a clean make then did everything
again
however I got some error:
[ 29%] Building CXX object
gr-blocks/lib/CMakeFiles/gnuradio-blocks.dir/message_strobe_random_impl.cc.o
In file included from
/raid/nae/gnuradio/gr-blocks/lib/message_strobe_random_impl.cc:27:
/raid/nae/gnuradio/gr-blocks/lib/message_strobe_random_impl.h:48: error:
‘mt19937’ in namespace ‘boost::random’ does not name a type
/raid/nae/gnuradio/gr-blocks/lib/message_strobe_random_impl.cc: In
constructor
‘gr::blocks::message_strobe_random_impl::message_strobe_random_impl(pmt::pmt_t,
gr::blocks::message_strobe_random_distribution_t, float, float)’:
/raid/nae/gnuradio/gr-blocks/lib/message_strobe_random_impl.cc:57:
error:
class ‘gr::blocks::message_strobe_random_impl’ does not have any field
named
‘d_rng’
/raid/nae/gnuradio/gr-blocks/lib/message_strobe_random_impl.cc: In
member
function ‘void gr::blocks::message_strobe_random_impl::update_dist()’:
/raid/nae/gnuradio/gr-blocks/lib/message_strobe_random_impl.cc:89:
error:
‘d_rng’ was not declared in this scope
make[2]: ***
[gr-blocks/lib/CMakeFiles/gnuradio-blocks.dir/message_strobe_random_impl.cc.o]
Error 1
make[1]: *** [gr-blocks/lib/CMakeFiles/gnuradio-blocks.dir/all] Error 2
The point is those errors I got them before so to fix them (at that
time) I
just went to someone’s gnuradio branch, clone it and it did work for my
machine instead of the master branch of gnuradio which issue thoses
errors.
Actually, I had already stated that matter here, but issue was not
fixed: http://gnuradio.4.n7.nabble.com/Issue-while-installing-GR-3-7-td46435.html#a46466