discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] GNU radio/multimode.py: OpenGL " no valid context


From: Tom Rondeau
Subject: Re: [Discuss-gnuradio] GNU radio/multimode.py: OpenGL " no valid context" problems under Mac OS X 10.7.4
Date: Sat, 15 Sep 2012 10:42:09 -0400

On Wed, Sep 12, 2012 at 10:54 PM,  <address@hidden> wrote:
> 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: fcn[1]()
>   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

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]