Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trying to install wxpython on Mac OSX [duplicate]

I am trying to install wxpython onto my Mac OSX 10.8.3. I download the disk images from their downloads page and mount it. When I try to install the package I get an error that saying that the package is damaged and can't be opened. Any suggestions on how I can fix this?

I have also tried opening the package through the terminal but no luck.

Thanks in advance.

like image 203
l00kitsjake Avatar asked May 19 '13 20:05

l00kitsjake


People also ask

Where is python2 installed Mac?

The Apple-provided build of Python is installed in /System/Library/Frameworks/Python. framework and /usr/bin/python , respectively.

Does wxPython work with Python 3. 10?

wxPython-zombie 3.1. 5.5 wxPython-zombie will provide the 64-bit binary extension package (build with Visual Studio 2022) for MS Windows 10/11 and the source package to build for Linux. This is a release for Python 3.10.


3 Answers

This is a known issue: http://trac.wxwidgets.org/ticket/14523.

The wxPython installer was created with an ancient package building tool that is no longer support. The workaround is to install from the command line:

sudo installer -pkg /Volumes/wxPython2.8-osx-unicode-2.8.12.1-universal-py2.7/wxPython2.8-osx-unicode-universal-py2.7.pkg/ -target /

The output I got from this was:

installer: Package name is wxPython2.8-osx-unicode-universal-py2.7
installer: Installing at base path /
2013-06-27 00:23:38.157 installer[9373:5a03] Package /Volumes/wxPython2.8-osx-unicode-2.8.12.1-universal-py2.7/wxPython2.8-osx-unicode-universal-py2.7.pkg uses a deprecated pre-10.2 format (or uses a newer format but is invalid).
installer: The install was successful.
like image 182
fried Avatar answered Oct 03 '22 23:10

fried


Go to System preferences --> Security and privacy --> Allow applications downloaded from..select 'Anywhere'

like image 37
Nilesh Avatar answered Oct 03 '22 21:10

Nilesh


An other way to install Wxpython: Use brew* to install wxmac using the following command.

brew install --python wxmac --devel

once you install the wxmac create a symbolic link between the installed wx to the python library.

sudo ln -s /usr/local/Cellar/wxmac/2.9.4.0/lib/python2.7/site-packages/wx /Library/Python/2.7/site-packages/wx

I Hope it will be helpful for future installers.

*if you do not have Brew installed prior, install it using the following command: ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

like image 33
rajmohanloganathan Avatar answered Oct 03 '22 21:10

rajmohanloganathan