Install wxPython on Mac os Mavericks

10,090

Solution 1

According to #14523, the problem is that the package is not signed (and it's an old-style package, which isn't fully supported anymore, which is why you get the wrong error message, and the usual workaround of context-clicking Open doesn't work).

There are two workarounds:

First, you can turn off Gatekeeper (in System Preferences, Security & Privacy, General, select the "Allow apps downloads from: … Anywhere" radio button), install wxPython, then turn Gatekeeper back on.

Alternatively, you can install from the command line:

sudo installer -pkg /path/to/wxPython.pkg -target /

Solution 2

As with so many other packages, install wxpython with brew:

brew install wxpython

I hit this problem with El Capitan (10.11.2) and tried some of the workarounds mentioned elsewhere (install via command-line, allow installation of unsigned apps, etc) with no luck. Use brew!

Solution 3

The accepted answer didn't work for me on macOS Sierra.

I had to manually repackage the the original package as described here: https://trac.wxwidgets.org/ticket/17203#comment:8

Share:
10,090
ng150716
Author by

ng150716

Updated on June 04, 2022

Comments

  • ng150716
    ng150716 almost 2 years

    I am on a Macbook Air, running Mavericks. Today I downloaded wxPython via their website, however, when I click on the install package I get:

    wxPython3.0-osx-cocoa-py2.7.pkg” is damaged and can’t be opened. You should eject the disk image.
    

    Anyone have any ideas to get around this, thanks.

  • ng150716
    ng150716 over 10 years
    Yes, I temporarily turned off gatekeeper and installed wxPython. Thanks!
  • saulspatz
    saulspatz over 9 years
    I just tried this. (wx was in a different spot, but I changed the link.) When I try to import wx, though, it says, "No module named wx".
  • studgeek
    studgeek over 7 years
    The 2nd option approach gave me the error installer[50506:1308089] Package /Volumes/wxPython3.0-osx-3.0.2.0-cocoa-py2.7/wxPython3.0-osx‌​-cocoa-py2.7.pkg uses a deprecated pre-10.2 format (or uses a newer format but is invalid). installer: The install failed (The Installer could not install the software because there was no software found to install.)
  • Mr_and_Mrs_D
    Mr_and_Mrs_D over 5 years
    Thanks - needed to use 2.8 and of course that's the only way