Re: wxPython failing to install on MacOS 10.14 with python 3.8.0 using pyenv

Robin Dunn <[email protected]>
Newsgroups gmane.comp.python.wxpython
Message-ID <[email protected]>
On Wednesday, October 16, 2019 at 8:39:49 AM UTC-7, Mark McDowall wrote:
>
> 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 changes in the pipeline for 3.8 compatibility, which should be done 
in a few days. I'm not sure yet if I'll make new wheels for 4.0.6 or just 
go ahead and push out a general 4.0.7 release. The changes for a 4.0.7 
release are in the backports branch and PR if anybody is interested in 
getting a preview. As implied by the name, it's mostly backports from the 
master branch.


   ...
>     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
>


Some of the changes in the backports branch change how the SDK is selected, 
and also sets the minimum version to 10.9, so that may help with these 
errors. Otherwise, there really isn't anything that is Python version 
specific up to this point in the build. The messages above are coming from 
the wxWidgets configure script, which has nothing to do with Python at all, 
other than the .py scripts that are launching the wxWidgets build. So, IOW, 
it seems very odd that it would fail at this point with Python 3.8 and not 
with other Python versions.

Just to double-check, could you try it with a stock Python 3.8 from the 
standard installer instead of a pyenv?

FTR, my development machine has Xcode 9.4.1 running on it, and the machine 
where the releases are built has Xcode 8.something, if I remember 
correctly. So if your Xcode command-line tools are based on Xcode 10 or 11 
then that could be a possible source of the problem as well, although it's 
been years since I've run into issues that were due solely to Xcode or SDK, 
especially at the configuration part of the wxWidgets build.

--
Robin

-- 
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/c2623b96-8717-4522-9ecb-a66c7fff8e98%40googlegroups.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.