GNU Radio RTL-SDR: self._grid_compiled_list_id error under Mac OS X 10.7.4

I am trying to get GNU Radio working on a Mac OS X 10.7.4 Air laptop. I
installed most of the required packages via MacPorts, and then pulled
GNU Radio from git.
It installed O.K., but dies like this:

Using Volk machine: sse4_1_64
gr-osmosdr supported device types: file fcd rtl rtl_tcp uhd
Using device #0: ezcap USB 2.0 DVB-T/DAB/FM dongle
Found Elonics E4000 tuner
Exact sample rate is: 1000000.026491 Hz

gr_fir_ccc: using SSE
gr_fir_fff: using SSE
Traceback (most recent call last):
File
“/usr/local/lib/python2.7/site-packages/gnuradio/wxgui/plotter/plotter_base.py”,
line 187, in _on_paint
for fcn in self._draw_fcns: fcn1
File
“/usr/local/lib/python2.7/site-packages/gnuradio/wxgui/plotter/plotter_base.py”,
line 58, in draw
GL.glNewList(self._grid_compiled_list_id, GL.GL_COMPILE)
ctypes.ArgumentError: argument 1: <type ‘exceptions.TypeError’>: wrong
type
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO

This part of the code is returningNone for self._grid_compiled_list_id

If I add in some if statements to proceed further, I then ran into a
problem with some padding variables not being initializedin
grid_plotter_base.py. To get aroun these, I add

    # Added
    self.padding_left, self.padding_right = (0, 0)
    self.padding_top, self.padding_bottom = (0, 0)

But the graphs won’t show up.

The radio part works under the multimode receiver, but the visual
graphs parts do not work.

Any ideas? I can successfully listen to the NOAA Weather Station and to
some local FM stations using the multimode.py Multimode Radio Receiver,
and can load the grc file and start it up within the GNU Radio
Companion, so most of GNU Radio is working O.K., just not the graphics
parts.

Thank you,
Dan Weeks

GNU Radio Companion 3.6.2git-149-g9305abf4

Python 2.7.3

Darwin Kernel Version 11.4.2: Wed May 30 20:13:51 PDT 2012;
root:xnu-1699.31.2~1/RELEASE_X86_64 x86_64

On Wed, Aug 29, 2012 at 8:12 AM, [email protected] wrote:

I am trying to get GNU Radio working on a Mac OS X 10.7.4 Air laptop. I
installed most of the required packages via MacPorts, and then pulled GNU
Radio from git.
It installed O.K., but dies like this:

Dan,
Sorry, which application are you trying to run that’s causing this
problem?

Also, it might be easier to get started by using GNU Radio Companion.
Just launch gnuradio-companion and drop down an RTL source block and
connect it to a wxgui FFT sink (or QT GUI, but GRC defaults to using
WX, so that’s probably easier). Then run the graph and see what you
get.

Tom

Trying to get gnuradio to work on 10.7.4 Air with an ezcap USB 2.0
DVB-T/DAB/FM dongle. Installed gnuradio using the titanous /
homebrew-gnuradio approach.

Using gnuradio with qt-gui with a simple grc configuration, I can hear
some (less than perfect) FM audio and can see the various graphs
dynamically in real time. This argues that gnuradio and supporting
software are installed relatively correctly, and that the rtlsdr dongle
can be recognized.

But if I try to use multimode.py (which uses wxGui items), after
installing installing PyOpenGL-3.0.2b2, it dies with the error message

“OpenGL.error.Error: Attempt to retrieve context when no valid context”

More detail pasted in below. I am mystified re how to solve this.

Has anyone gotten multimode.py to work properly, with the graphical
displays, on a 10.7.4 Mac OS X machine?

Thank you,
Dan

% multimode.py
Mac OS; Clang version 3.1 (tags/Apple/clang-318.0.61); Boost_105000;
UHD_003.004.003-177-g584b7ae2

Using Volk machine: sse4_1_64_orc
gr-osmosdr supported device types: file fcd rtl rtl_tcp uhd
Using device #0: ezcap USB 2.0 DVB-T/DAB/FM dongle
Found Elonics E4000 tuner
Exact sample rate is: 1000000.026491 Hz

gr_fir_ccc: using SSE
gr_fir_fff: using SSE
Traceback (most recent call last):
File
“/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/wxgui/plotter/plotter_base.py”,
line 187, in _on_paint
for fcn in self._draw_fcns: fcn1
File
“/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/wxgui/plotter/plotter_base.py”,
line 59, in draw
self._draw()
File
“/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/wxgui/plotter/grid_plotter_base.py”,
line 260, in _draw_grid
(scaled_tick, self.height-self.padding_bottom),
File
“/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/wxgui/plotter/grid_plotter_base.py”,
line 368, in _draw_grid_line
GL.glVertexPointerf(points)
File
“/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyOpenGL-3.0.2b2-py2.7.egg/OpenGL/latebind.py”,
line 45, in call
return self._finalCall( *args, **named )
File
“/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyOpenGL-3.0.2b2-py2.7.egg/OpenGL/wrapper.py”,
line 533, in wrapperCall
cArgs,
File
“/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyOpenGL-3.0.2b2-py2.7.egg/OpenGL/arrays/arrayhelpers.py”,
line 154, in call
contextdata.setValue( self.constant, pyArgs[self.pointerIndex] )
File
“/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyOpenGL-3.0.2b2-py2.7.egg/OpenGL/contextdata.py”,
line 57, in setValue
context = getContext( context )
File
“/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyOpenGL-3.0.2b2-py2.7.egg/OpenGL/contextdata.py”,
line 40, in getContext
“”“Attempt to retrieve context when no valid context”""
OpenGL.error.Error: Attempt to retrieve context when no valid context

% gnuradio-config-info -v
3.6.1

% cat ~/.gnuradio/config.conf
[grc]
local_blocks_path=/usr/local/share/gnuradio/grc/blocks

Run into the same error above if I change config.conf to this:

% cat ~/.gnuradio/config.conf
[grc]
local_blocks_path=/usr/local/share/gnuradio/grc/blocks
[wxgui]
style=gl
fft_rate=30
waterfall_rate=30
scope_rate=30
number_rate=5
const_rate=5
const_size=2048

On Wed, Sep 12, 2012 at 10:54 PM, [email protected] wrote:

File
“/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gnuradio/wxgui/plotter/plotter_base.py”,
line 59, in draw
contextdata.setValue( self.constant, pyArgs[self.pointerIndex] )
[grc]
style=gl
fft_rate=30
waterfall_rate=30
scope_rate=30
number_rate=5
const_rate=5
const_size=2048

Hi Dan,

Have you tried it with the line:
style=nongl

That will shut off using OpenGL for the wx widgets and tends to be
more usable for some people/systems.

Tom

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