# GNU Radio doesn't detect wxPython binary installation on Mac OS X 10.6.4

**URL:** <https://www.ruby-forum.com/t/gnu-radio-doesnt-detect-wxpython-binary-installation-on-mac-os-x-10-6-4/195162>\
**Category:** GNU Radio\
**Created:** [September 17, 2010, 11:12pm UTC](https://www.ruby-forum.com/t/gnu-radio-doesnt-detect-wxpython-binary-installation-on-mac-os-x-10-6-4/195162 "2010-09-17T23:12:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elvis\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/a9a28c/32.png) [@Elvis\_D](https://www.ruby-forum.com/u/Elvis_D)\
**Post date:** [September 17, 2010, 11:12pm UTC](https://www.ruby-forum.com/t/gnu-radio-doesnt-detect-wxpython-binary-installation-on-mac-os-x-10-6-4/195162/1 "2010-09-17T23:12:02Z")

</div>

Hi,  
I’ve downloaded and installed the binaries for wxPython from the  
following link:

[http://downloads.sourceforge.net/wxpython/wxPython2.8-osx-unicode-2.8.11.0-universal-py2.6.dmg](http://downloads.sourceforge.net/wxpython/wxPython2.8-osx-unicode-2.8.11.0-universal-py2.6.dmg)

However, when performing a configure , it doesn’t detect it.

checking for Python wxWidgets wrappers \>= 2.8… no

How can I resolve this? I’ve separately tested the wxPython installation  
and it works, but the configure process doesn’t seem to detect it, when  
using the binary installation.

If I perform a source installation, and install the files built from  
sources, it detect it, but for the binary install, it doesn’t.

Best regards,

Elvis

---

<div class="post-metadata">

**Author:** ![Elvis\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/a9a28c/32.png) [@Elvis\_D](https://www.ruby-forum.com/u/Elvis_D)\
**Post date:** [September 19, 2010, 3:49am UTC](https://www.ruby-forum.com/t/gnu-radio-doesnt-detect-wxpython-binary-installation-on-mac-os-x-10-6-4/195162/2 "2010-09-19T03:49:47Z")

</div>

Hi Michael,

On Sep 18, 2010, at 5:29 AM, Michael D. wrote:

> Where does the installer put the python site-packages for this version of Wx? Is that directory (up to but not including the “site-packages”) your shell’s PYTHONPATH?

The wxPython-2.8.11.0 binary package installs it in a different  
location, so I had to add the following to the PYTHONPATH environment  
variable

/usr/local/lib/wxPython-unicode-2.8.11.0/lib/python2.6

I also think that the default Mac OS X 10.6.4 wxPython-2.8.8.1  
distribution that originally comes with the Mac, has wxPython located  
in:

/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python

I haven’t been able to test that though, since the uninstall program for  
the wxPython-2.8.11.0 binary package didn’t appear to restore the system  
to its original state, so after uninstalling it, the default mac  
wxPython-2.8.8.1 had some error when you try to import wx.

So, I left it at that with the wx-2.8.11.0 binary installation, and  
tested everything, including the OpenGL contexts, and the wxPython  
installation seems to be working fine. GNU radio also detects wxPython  
during the configure process.

Here is what my .profile looks like now:

# now setup PYTHON variables, depending on what’s first in the $path

export PYTHON\_VERSION=`python -V 2>&1 | sed -e 's@\.@ @2' | awk '{ print $2 }'`  
export PYTHON\_ROOT=`which python | sed -e 's@/bin/python@@g'`  
export  
PYTHONPATH=${PYTHON\_ROOT}/lib/python${PYTHON\_VERSION}/site-packages  
if [${PYTHON\_ROOT} != “/usr/include”]; then  
export  
PYTHONPATH=${PYTHONPATH}:/Library/Python/2.6:/usr/local/lib/python${PYTHON\_VERSION}/site-packages:/usr/local/lib/wxPython-unicode-2.8.11.0/lib/python2.6  
fi

Best regards,

Elvis
