Install wxPython in osx 10.11

When I try to install wxPython, it shows an error:

> The Installer could not install the software because there was no > software found to install. 

How can i fix this?

+7
python wxpython macos
source share
7 answers

wxPython uses a legacy script , and according to this technical note, package installers are deprecated and are (as of the El Capitan release) unsupported:

Package-style installation packages are an outdated migration tool that is no longer supported. PackageMaker is also no longer supported. Now you need to convert to installer packages with a flat file using tools such as productbuild.

This leaves you with two options,

  • Convert the installer to a flat package.
  • Compile wxWidgets and install it locally.

To achieve the first, follow these instructions:

0 ) Suppose that you have already installed dmg , and you moved the pkg folder to the workstation.

 cd ~/repack_wxpython cp -r /Volumes/wxPython/wxPython-ABC.pkg . 

1 ). Use the pax utility to extract the payload file ( pax.gz ) from Contents/Resources to a folder that will be the root of your new package.

 mkdir pkg_root cd pkg_root pax -f ../wxPython-ABC.pkg/Contents/Resources/wxPython-ABC.pax.gz -z -r cd .. 

2 ) Rename the preflight / postflight scripts in the preinstall / postinstall , as required for flat packages, to the scripts folder.

 mkdir scripts cp wxPython-ABC.pkg/Contents/Resources/preflight scripts/preinstall cp wxPython-ABC.pkg/Contents/Resources/postflight scripts/postinstall 

3 ) Create a flat package using the pkgbuild tool:

 pkgbuild --root ./pkg_root --scripts ./scripts --identifier com.wxwidgets.wxpython wxPython-ABC.pkg 

This is the documentation of the pkbuild command if you want to configure the passed parameters.

Caveats: the source package contains the License.rtf and Welcome.txt files that are not included in the flat package. They should be added by defining a custom XML file and creating another package using productbuild .

+20
source share

In the preliminary release, a working installer for wxpython for Mac is available:

https://groups.google.com/forum/#!topic/wxpython-dev/TMnoeAgf2Wg

it seemed to work for me. He worked at El Capitan.

+5
source share

Here are the steps that I have successfully used to install wxPython 'Classic' (not "Phoenix").
OSX 10.11 or later cannot run this installer that you tried, but this method will work.

  • Pull these two latest sources into two related directories:
    https://github.com/wxWidgets/wxPython.git
    https://github.com/wxWidgets/wxWidgets.git
    (sources from 12/16/2015 will not work for this method)
  • Change the directories cd /pathToYourGitHubSources/wxPython and run the following command:
    python build-wxpython.py --build_dir=../bld --osx_cocoa --install
  • Building and installing takes some time. After its completion, you can try to import wx, but first the following steps may be required.
  • Look in the newly created installed_files.txt to see which wxPython* directory files are located, as well as the location of the /wx/*.py and /lib/*.pyc . These three directories are probably similar:
    /usr/lib/python2.7/site-packages
    /usr/lib/python2.7/site-packages/wx
    /usr/lib/python2.7/site-packages/wx/lib
  • From the command line environment of the command line and the wx test:

     export PYTHONPATH='/usr/lib/python2.7/site-packages/wx' export DYLD_LIBRARY_PATH='/usr/lib/python2.7/site-packages/wx/lib' python import sys import wxversion try: wxversion.select(['3.0.3']) except wxversion.VersionError: print "wx version failed detection" sys.path.insert(0, '/usr/lib/python2.7/site-packages') import wx print wx.version() 

If the wx version is printed, it works.
On some systems, there are other versions of wxPython or the remnants of old wxPythons, which led me to install the environment, as shown above, until the old parts are cleared from the system.

+3
source share

this worked for me (11/10/16):

  sudo pip install --upgrade --trusted-host wxpython.org --pre -f http://wxpython.org/Phoenix/snapshot-builds/ wxPython_Phoenix 

How to install wxPython correctly?

+1
source share

Found a solution to this problem:

Mistake:

mac01: tools ganeshr $ ride.py

Invalid wxPython version. You need to install wxPython 2.8.12.1 with unicode support to run RIDE. wxPython 2.8.12.1 can be downloaded

Solution: - Add support support_versions.append ("3.0") to robotide / __ init __. py

Check if wxPython is installed:

$ pip list

wxPython (3.0.2.0) wxPython-common (3.0.2.0)

$ sudo vim / Library / Python / 2.7 / site-packages / robotide / __ init __. py

try: import wxversion

from import wxversion VersionError

if sys.platform == 'darwin':

supported_versions.append ("2.9")

supported_versions.append ("3.0") # Add this line, RIDE will support wxPython (3.0.2.0)

wxversion.select (supported_versions) import wx

Thanks.

+1
source share

I sent the creation response from the source, and @memoselyk posted a helpful answer on how to convert the package to install on a newer OS. However, I find that a simple solution is to use the Brew package manager .
Below are the steps I used.

  • Install Brew with this single command:
    • ruby -e "$(curl -fsSL \ https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Install wx; (dependencies will also be installed)
    • brew install wxpython --framework

Error Test: python -c 'import wx'

Done, but the following may also be relevant.

  • I ran the commands below several times to clear old installations and make sure I was able to import the correct wx:
    • sudo pip uninstall wxPython
    • sudo pip uninstall wxPython-Phoenix
  • I removed the system environment variables added for some previous installations to work.
    • unset PYTHONPATH
    • unset DYLD_LIBRARY_PATH
    • unset DYLD_FRAMEWORK_PATH

After installing wx, you may need to run the following if it was a dirty installation:
- brew link --overwrite wxmac
- brew doctor wxPython (and follow very useful directions if something is discovered)

If you need access to other assemblies, this is not a method for you, but for release 3.0.2.0 'Classic' I think this is the way to go.
brew upgrade wxPython will work to a newer version if it ever will be.

0
source share

For me it's just using brew:

 brew install wxpython 

I am surprised that no one else sent the same answer!

PS: I'm on El Capitan, 10.11.3

0
source share

All Articles