wxPython failing to install on MacOS 10.14 with python 3.8.0 using pyenv
Mark McDowall <[email protected]>
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Message-ID | <[email protected]> |
I have been having trouble trying to get wxPython to install in a pyenv
virtualenv using python 3.8.0 on Mac OS X 10.14 (Mojave).
I have installed (and reinstalled) the xcode Command line tools, built the
python version with following command to include the `--enable-framework`
parameter:
```
env CFLAGS="-I$(xcrun --show-sdk-path)/usr/include"
PYTHON_CONFIGURE_OPTS="--enable-framework=$(pyenv root)/versions/3.8.0
CC=clang" pyenv install 3.8.0
```
However, when I run:
```
pip install wxpython
```
I get the following error:
```
...
checking for SDK directory
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk... exists
checking if C compiler (gcc -isysroot
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk
-mmacosx-version-min=10.6) works with SDK/version options... yes
checking if C++ compiler (g++ -isysroot
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk
-mmacosx-version-min=10.6) works with SDK/version options... configure:
error: in
`/private/var/folders/f6/<random_string>/T/pip-install-<rand_str>/wxpython/build/wxbld':
configure: error: no. Try a different SDK
See `config.log' for more details
Error running configure
ERROR: failed building wxWidgets
Traceback (most recent call last):
File "build.py", line 1325, in cmd_build_wx
wxbuild.main(wxDir(), build_options)
File
"/private/var/folders/f6/<random_string>/T/pip-install-<rand_str>/wxpython/buildtools/build_wxwidgets.py",
line 372, in main
exitIfError(wxBuilder.configure(dir=wxRootDir,
options=configure_opts),
File
"/private/var/folders/f6/<random_string>/T/pip-install-<rand_str>/wxpython/buildtools/build_wxwidgets.py",
line 85, in exitIfError
raise builder.BuildError(msg)
buildtools.builder.BuildError: Error running configure
Finished command: build_wx (0m2.108s)
Finished command: build (0m2.108s)
Command
'"/Users/<user_name>/.pyenv/versions/3.8.0/envs/<pyenv_project_name>/bin/python3.8"
-u build.py build' failed with exit code 1.
```
If I run the installation on a pyenv virtualenv using 3.6.9 then everything
goes through smoothly. I have had issues getting the 3.7.X versions of
python to build correctly on MacOS when using pyenv and enableing
frameworks.
If I run the same `pip install wxpython` on a Linux VM (Mint 19) with pyenv
and python 3.8.0 everything goes smoothly and I don't get the same error
searching for the C++ compiler.
Normally I am a Linux user so any advice from Mac users that might have
seen this issue, or something similar would be greatfully received.
Cheers,
Mark
--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/60e6a2d8-8e72-4f57-9c70-1c7fdeecb676%40googlegroups.com.