WxPython Install Issue on MacOS 11.6 with pyenv and python 3.11.0

Python Version: 3.11.0
OS: MacOS 11.6

When installing wxPython 4.2.0 I hit a similar issue to #2296. After installing attrdict3 I was able to proced. I then get an error related to the way that wxPython is compiling. The version of python was installed with the following parameters using pyenv:

env PYTHON_CONFIGURE_OPTS="--enable-framework=$(pyenv root)/versions/3.11.0 CC=clang --enable-unicode --with-threads" pyenv install 3.11.0

The error that I get is:

$ pip install wxPython
Collecting wxPython
  Using cached wxPython-4.2.0.tar.gz (71.0 MB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: pillow in ~/.pyenv/versions/3.11.0/envs/test_311/lib/python3.11/site-packages (from wxPython) (9.2.0)
Requirement already satisfied: six in ~/.pyenv/versions/3.11.0/envs/test_311/lib/python3.11/site-packages (from wxPython) (1.16.0)
Requirement already satisfied: numpy in ~/.pyenv/versions/3.11.0/envs/test_311/lib/python3.11/site-packages (from wxPython) (1.23.4)
Installing collected packages: wxPython
  DEPRECATION: wxPython is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
  Running setup.py install for wxPython ... error
  error: subprocess-exited-with-error

  × Running setup.py install for wxPython did not run successfully.
  │ exit code: 1
  ╰─> [72 lines of output]
      ~/.pyenv/versions/3.11.0/envs/test_311/lib/python3.11/site-packages/setuptools/dist.py:771: UserWarning: Usage of dash-separated 'license-file' will not be supported in future versions. Please use the underscore name 'license_file' instead
        warnings.warn(
      ~/.pyenv/versions/3.11.0/envs/test_311/lib/python3.11/site-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
        warnings.warn(msg, warning_class)
      ~/.pyenv/versions/3.11.0/envs/test_311/lib/python3.11/site-packages/setuptools/dist.py:317: DistDeprecationWarning: use_2to3 is ignored.
        warnings.warn(f"{attr} is ignored.", DistDeprecationWarning)
      running install
      ~/.pyenv/versions/3.11.0/envs/test_311/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      WARNING: Building this way assumes that all generated files have been
      generated already.  If that is not the case then use build.py directly
      to generate the source and perform the build stage.  You can use
      --skip-build with the bdist_* or install commands to avoid this
      message and the wxWidgets and Phoenix build steps in the future.

      "~/.pyenv/versions/3.11.0/envs/test_311/bin/python3.11" -u build.py build
      Will build using: "~/.pyenv/versions/3.11.0/envs/test_311/bin/python3.11"
      3.11.0 (main, Oct 27 2022, 09:53:46) [Clang 13.0.0 (clang-1300.0.29.30)]
      Python's architecture is 64bit
      cfg.VERSION: 4.2.0

      Running command: build
      Running command: build_wx
      wxWidgets build options: ['--wxpython', '--unicode', '--osx_cocoa', '--mac_universal_binary=default']
      Universal Capable: True
      Architectures:     arm64,x86_64
      Configure options: ['--enable-unicode', '--with-osx_cocoa', '--enable-universal_binary=arm64,x86_64', '--enable-sound', '--enable-graphics_ctx', '--enable-display', '--enable-geometry', '--enable-debug_flag', '--enable-optimise', '--disable-debugreport', '--enable-uiactionsim', '--enable-autoidman', '--with-macosx-version-min=10.10', '--with-libjpeg=builtin', '--with-libpng=builtin', '--with-libtiff=builtin', '--with-regex=builtin']
      /private/var/folders/f6/bv4w223x3lv8dgcyj6v_5c1m0000gn/T/pip-install-agm9fa5f/wxpython_9da90bbf0e4a4a18a2cf0cef605df5cb/ext/wxWidgets/configure --enable-unicode --with-osx_cocoa --enable-universal_binary=arm64,x86_64 --enable-sound --enable-graphics_ctx --enable-display --enable-geometry --enable-debug_flag --enable-optimise --disable-debugreport --enable-uiactionsim --enable-autoidman --with-macosx-version-min=10.10 --with-libjpeg=builtin --with-libpng=builtin --with-libtiff=builtin --with-regex=builtin
      checking build system type... x86_64-apple-darwin20.6.0
      checking host system type... x86_64-apple-darwin20.6.0
      checking for toolkit... osx_cocoa
      checking for gcc... gcc
      checking whether the C compiler works... yes
      checking for C compiler default output file name... a.out
      checking for suffix of executables...
      checking whether we are cross compiling... no
      checking for suffix of object files... o
      checking whether we are using the GNU C compiler... yes
      checking whether gcc accepts -g... yes
      checking for gcc option to accept ISO C89... none needed
      checking whether we are using the Intel C compiler... no
      checking how to run the C preprocessor... gcc -E
      checking for grep that handles long lines and -e... /usr/bin/grep
      checking for egrep... /usr/bin/grep -E
      checking whether gcc needs -traditional... no
      checking for g++... g++
      checking whether we are using the GNU C++ compiler... yes
      checking whether g++ accepts -g... yes
      checking whether we are using the Intel C++ compiler... no
      checking whether we are using the IBM xlC C++ compiler... no
      checking whether g++ supports C++11 features by default... no
      checking whether g++ supports C++11 features with -std=gnu++11... yes
      checking for ar... ar
      checking for architectures to use in universal binary... arm64,x86_64
      configure: WARNING: Disabling dependency tracking due to universal binary build.
      checking if C compiler (gcc -mmacosx-version-min=10.10) works with SDK/version options... configure: error: in `/private/var/folders/f6/bv4w223x3lv8dgcyj6v_5c1m0000gn/T/pip-install-agm9fa5f/wxpython_9da90bbf0e4a4a18a2cf0cef605df5cb/build/wxbld':
      configure: error: building C++ programs doesn't work, try using --with-macosx-version-min with a different OS version or omitting it entirely.
      See `config.log' for more details
      Error running configure
      ERROR: failed building wxWidgets
      Traceback (most recent call last):
        File "/private/var/folders/f6/bv4w223x3lv8dgcyj6v_5c1m0000gn/T/pip-install-agm9fa5f/wxpython_9da90bbf0e4a4a18a2cf0cef605df5cb/build.py", line 1563, in cmd_build_wx
          wxbuild.main(wxDir(), build_options)
        File "/private/var/folders/f6/bv4w223x3lv8dgcyj6v_5c1m0000gn/T/pip-install-agm9fa5f/wxpython_9da90bbf0e4a4a18a2cf0cef605df5cb/buildtools/build_wxwidgets.py", line 379, in main
          exitIfError(wxBuilder.configure(dir=wxRootDir, options=configure_opts),
        File "/private/var/folders/f6/bv4w223x3lv8dgcyj6v_5c1m0000gn/T/pip-install-agm9fa5f/wxpython_9da90bbf0e4a4a18a2cf0cef605df5cb/buildtools/build_wxwidgets.py", line 72, in exitIfError
          raise builder.BuildError(msg)
      buildtools.builder.BuildError: Error running configure
      Finished command: build_wx (0m3.628s)
      Finished command: build (0m3.628s)
      Command '"~/.pyenv/versions/3.11.0/envs/test_311/bin/python3.11" -u build.py build' failed with exit code 1.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> wxPython

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure

When installing wxPython 4.2.0 on a 3.10.4 version python goes smoothly.

Thank you for your help

Mark

Presumably Python 3.10.4 worked because it installed a wheel instead of building wxPython.

Can you find config.log and attach it?

Looks like it was not picking up the compiler correctly.

Building with the following pip command gets me through to the next error :sweat_smile:

env CC=clang pip install wxPython

It seems like even though I have specified that env CC=clang and I am getting further in the build (config.log has gone from 1561 lines to 5916 lines). I’m not sure if the compiler parameter is getting passed through to all the config steps as I am seeing the following errors further down:

configure:39571: checking xlocale.h usability
configure:39571: clang -mmacosx-version-min=10.10 -c -arch arm64 -arch x86_64 -I/usr/local/opt/openssl@3/include    -I/usr/local/opt/tcl-tk/include    -I/usr/local/opt/bzip2/include    -I/usr/local/opt/readline/include    -I/usr/local/opt/libtiff/include    -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/usr/local/opt/openssl@3/include    -I/usr/local/opt/tcl-tk/include    -I/usr/local/opt/bzip2/include    -I/usr/local/opt/readline/include    -I/usr/local/opt/libtiff/include conftest.c >&5
configure:39571: $? = 0
configure:39571: result: yes
configure:39571: checking xlocale.h presence
configure:39571: clang -E -mmacosx-version-min=10.10 -I/usr/local/opt/openssl@3/include    -I/usr/local/opt/tcl-tk/include    -I/usr/local/opt/bzip2/include    -I/usr/local/opt/readline/include    -I/usr/local/opt/libtiff/include conftest.c
configure:39571: $? = 0
configure:39571: result: yes
configure:39571: checking for xlocale.h
configure:39571: result: yes
configure:39582: checking for locale_t
configure:39616: g++ -std=gnu++11 -mmacosx-version-min=10.10 -c  -arch arm64 -arch x86_64 -I/usr/local/include    -I/usr/local/opt/tcl-tk/include    -I/usr/local/opt/bzip2/include    -I/usr/local/opt/readline/include    -I/usr/local/opt/libtiff/include    -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/usr/local/opt/openssl@3/include    -I/usr/local/opt/tcl-tk/include    -I/usr/local/opt/bzip2/include    -I/usr/local/opt/readline/include    -I/usr/local/opt/libtiff/include conftest.cpp >&5
configure:39616: $? = 0
configure:39631: result: yes
configure:39707: checking for sys/epoll.h
configure:39707: clang -mmacosx-version-min=10.10 -c -arch arm64 -arch x86_64 -I/usr/local/opt/openssl@3/include    -I/usr/local/opt/tcl-tk/include    -I/usr/local/opt/bzip2/include    -I/usr/local/opt/readline/include    -I/usr/local/opt/libtiff/include    -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/usr/local/opt/openssl@3/include    -I/usr/local/opt/tcl-tk/include    -I/usr/local/opt/bzip2/include    -I/usr/local/opt/readline/include    -I/usr/local/opt/libtiff/include conftest.c >&5
conftest.c:210:10: fatal error: 'sys/epoll.h' file not found
#include <sys/epoll.h>
         ^~~~~~~~~~~~~
1 error generated.

That seem to indicate that even though it knows to use clang it thinks that I have an M1 chip. Whereas at the top of the log it identifies as clearly an x86_64:

## --------- ##
## Platform. ##
## --------- ##

hostname = localhost
uname -m = x86_64
uname -r = 20.6.0
uname -s = Darwin
uname -v = Darwin Kernel Version 20.6.0: Wed Nov 10 22:23:07 PST 2021

There are also a number of errors around checking for the name choke:

configure:15255: checking whether we are using the IBM xlC C++ compiler
configure:15275: g++ -c -I/usr/local/include    -I/usr/local/opt/tcl-tk/include    -I/usr/local/opt/bzip2/include    -I/usr/local/opt/readline/include    -I/usr/local/opt/libtiff/include    -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/usr/local/opt/openssl@3/include    -I/usr/local/opt/tcl-tk/include    -I/usr/local/opt/bzip2/include    -I/usr/local/opt/readline/include    -I/usr/local/opt/libtiff/include conftest.cpp >&5
conftest.cpp:17:17: error: unknown type name 'choke'
                choke me
                ^
1 error generated.
configure:15275: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "wxWidgets"
| #define PACKAGE_TARNAME "wxwidgets"
| #define PACKAGE_VERSION "3.2.0"
| #define PACKAGE_STRING "wxWidgets 3.2.0"
| #define PACKAGE_BUGREPORT "wx-dev@googlegroups.com"
| #define PACKAGE_URL ""
| #define __BSD__ 1
| #define __DARWIN__ 1
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|              #ifndef __xlC__
|                 choke me
|              #endif
| 
|   ;
|   return 0;
| }
configure:15285: result: no

There will be errors in config.log - it checks for existence of a lot of things, and there will be errors when it doesn’t find something. Those are not necessarily bad. The question is - which error caused it to fail? Did it even fail? I don’t see anything conclusive in the log fragments shown.

Try also setting CXX=clang. CC is for the C compiler, CXX is for C++.

I also build on macOS 11.6 but I’m able to leave the CC and CXX value alone. Maybe the version of Xcode installed has something to do with it (I currently have 12.4 installed) or perhaps something in the way that the pyenv is built.

I have added the C++ and CC commands and it is still failing, but it is certainly getting a lot further in the build. The config.log is now at just over 6k lines. This is the bottom 200 lines from the installation log output:

2022-10-28T08:36:46,509   /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/build/wxbld/src/tiff/libtiff/tif_config.h:286:9: note: previous definition is here
2022-10-28T08:36:46,509   #define TIFF_SSIZE_T signed long
2022-10-28T08:36:46,509           ^
2022-10-28T08:36:46,564   1 warning generated.
2022-10-28T08:36:46,593   In file included from /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tif_fax3.c:25:
2022-10-28T08:36:46,593   In file included from /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tiffiop.h:58:
2022-10-28T08:36:46,593   In file included from /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tiffio.h:31:
2022-10-28T08:36:46,593   In file included from /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tiff.h:28:
2022-10-28T08:36:46,593   /usr/local/opt/libtiff/include/tiffconf.h:42:9: warning: 'TIFF_SSIZE_T' macro redefined [-Wmacro-redefined]
2022-10-28T08:36:46,593   #define TIFF_SSIZE_T int64_t
2022-10-28T08:36:46,594           ^
2022-10-28T08:36:46,594   /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/build/wxbld/src/tiff/libtiff/tif_config.h:286:9: note: previous definition is here
2022-10-28T08:36:46,594   #define TIFF_SSIZE_T signed long
2022-10-28T08:36:46,594           ^
2022-10-28T08:36:46,647   In file included from /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tif_fax3sm.c:3:
2022-10-28T08:36:46,647   /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tiff.h:66:9: error: unknown type name 'TIFF_INT8_T'
2022-10-28T08:36:46,647   typedef TIFF_INT8_T   int8;
2022-10-28T08:36:46,647           ^
2022-10-28T08:36:46,648   /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tiff.h:67:9: error: unknown type name 'TIFF_UINT8_T'
2022-10-28T08:36:46,648   typedef TIFF_UINT8_T  uint8;
2022-10-28T08:36:46,648           ^
2022-10-28T08:36:46,649   /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tiff.h:69:9: error: unknown type name 'TIFF_INT16_T'
2022-10-28T08:36:46,649   typedef TIFF_INT16_T  int16;
2022-10-28T08:36:46,649           ^
2022-10-28T08:36:46,650   /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tiff.h:70:9: error: unknown type name 'TIFF_UINT16_T'
2022-10-28T08:36:46,650   typedef TIFF_UINT16_T uint16;
2022-10-28T08:36:46,650           ^
2022-10-28T08:36:46,651   /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tiff.h:72:9: error: unknown type name 'TIFF_INT32_T'
2022-10-28T08:36:46,651   typedef TIFF_INT32_T  int32;
2022-10-28T08:36:46,651           ^
2022-10-28T08:36:46,652   /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tiff.h:73:9: error: unknown type name 'TIFF_UINT32_T'
2022-10-28T08:36:46,653   typedef TIFF_UINT32_T uint32;
2022-10-28T08:36:46,653           ^
2022-10-28T08:36:46,654   /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tiff.h:75:9: error: unknown type name 'TIFF_INT64_T'
2022-10-28T08:36:46,654   typedef TIFF_INT64_T  int64;
2022-10-28T08:36:46,654           ^
2022-10-28T08:36:46,655   /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tiff.h:76:9: error: unknown type name 'TIFF_UINT64_T'
2022-10-28T08:36:46,655   typedef TIFF_UINT64_T uint64;
2022-10-28T08:36:46,655           ^
2022-10-28T08:36:46,656   In file included from /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tif_extension.c:32:
2022-10-28T08:36:46,656   In file included from /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tiffiop.h:58:
2022-10-28T08:36:46,657   In file included from /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tiffio.h:31:
2022-10-28T08:36:46,657   In file included from /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tiff.h:28:
2022-10-28T08:36:46,657   /usr/local/opt/libtiff/include/tiffconf.h:42:9: warning: 'TIFF_SSIZE_T' macro redefined [-Wmacro-redefined]
2022-10-28T08:36:46,657   #define TIFF_SSIZE_T int64_t
2022-10-28T08:36:46,657           ^
2022-10-28T08:36:46,657   /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/build/wxbld/src/tiff/libtiff/tif_config.h:286:9: note: previous definition is here
2022-10-28T08:36:46,657   #define TIFF_SSIZE_T signed long
2022-10-28T08:36:46,657           ^
2022-10-28T08:36:46,705   1 warning generated.
2022-10-28T08:36:46,721   /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/build/wxbld/bk-deps clang -mmacosx-version-min=10.10 -c -o wxtiff_tif_flush.o -I/private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/build/wxbld/lib/wx/include/osx_cocoa-unicode-3.2 -I/private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/include -I/usr/local/opt/openssl@3/include -I/usr/local/opt/tcl-tk/include -I/usr/local/opt/bzip2/include -I/usr/local/opt/readline/include -I/usr/local/opt/libtiff/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -D_FILE_OFFSET_BITS=64  -DNDEBUG -I/private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/zlib -I/private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/jpeg -I/private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/build/wxbld/src/tiff/libtiff -I/private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff -Wall -Wundef -O2 -arch arm64 -arch x86_64 -I/usr/local/opt/openssl@3/include -I/usr/local/opt/tcl-tk/include -I/usr/local/opt/bzip2/include -I/usr/local/opt/readline/include -I/usr/local/opt/libtiff/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -fno-common  -fvisibility=hidden -dynamic -fPIC -DPIC -I/usr/local/opt/openssl@3/include    -I/usr/local/opt/tcl-tk/include    -I/usr/local/opt/bzip2/include    -I/usr/local/opt/readline/include    -I/usr/local/opt/libtiff/include    -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/usr/local/opt/openssl@3/include    -I/usr/local/opt/tcl-tk/include    -I/usr/local/opt/bzip2/include    -I/usr/local/opt/readline/include    -I/usr/local/opt/libtiff/include    -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tif_flush.c
2022-10-28T08:36:46,800   8 errors generated.
2022-10-28T08:36:46,808   make: *** [wxtiff_tif_fax3sm.o] Error 1
2022-10-28T08:36:46,808   make: *** Waiting for unfinished jobs....
2022-10-28T08:36:46,894   In file included from /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tif_flush.c:28:
2022-10-28T08:36:46,894   In file included from /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tiffiop.h:58:
2022-10-28T08:36:46,894   In file included from /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tiffio.h:31:
2022-10-28T08:36:46,894   In file included from /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tiff.h:28:
2022-10-28T08:36:46,894   /usr/local/opt/libtiff/include/tiffconf.h:42:9: warning: 'TIFF_SSIZE_T' macro redefined [-Wmacro-redefined]
2022-10-28T08:36:46,894   #define TIFF_SSIZE_T int64_t
2022-10-28T08:36:46,895           ^
2022-10-28T08:36:46,895   /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/build/wxbld/src/tiff/libtiff/tif_config.h:286:9: note: previous definition is here
2022-10-28T08:36:46,895   #define TIFF_SSIZE_T signed long
2022-10-28T08:36:46,895           ^
2022-10-28T08:36:46,945   1 warning generated.
2022-10-28T08:36:47,029   In file included from /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tif_flush.c:28:
2022-10-28T08:36:47,029   In file included from /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tiffiop.h:58:
2022-10-28T08:36:47,029   In file included from /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tiffio.h:31:
2022-10-28T08:36:47,030   In file included from /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tiff.h:28:
2022-10-28T08:36:47,030   /usr/local/opt/libtiff/include/tiffconf.h:42:9: warning: 'TIFF_SSIZE_T' macro redefined [-Wmacro-redefined]
2022-10-28T08:36:47,030   #define TIFF_SSIZE_T int64_t
2022-10-28T08:36:47,030           ^
2022-10-28T08:36:47,030   /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/build/wxbld/src/tiff/libtiff/tif_config.h:286:9: note: previous definition is here
2022-10-28T08:36:47,030   #define TIFF_SSIZE_T signed long
2022-10-28T08:36:47,030           ^
2022-10-28T08:36:47,074   1 warning generated.
2022-10-28T08:36:47,193   1 warning generated.
2022-10-28T08:36:47,277   1 warning generated.
2022-10-28T08:36:47,343   In file included from /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tif_dirwrite.c:30:
2022-10-28T08:36:47,344   In file included from /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tiffiop.h:58:
2022-10-28T08:36:47,344   In file included from /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tiffio.h:31:
2022-10-28T08:36:47,344   In file included from /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tiff.h:28:
2022-10-28T08:36:47,344   /usr/local/opt/libtiff/include/tiffconf.h:42:9: warning: 'TIFF_SSIZE_T' macro redefined [-Wmacro-redefined]
2022-10-28T08:36:47,344   #define TIFF_SSIZE_T int64_t
2022-10-28T08:36:47,344           ^
2022-10-28T08:36:47,345   /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/build/wxbld/src/tiff/libtiff/tif_config.h:286:9: note: previous definition is here
2022-10-28T08:36:47,345   #define TIFF_SSIZE_T signed long
2022-10-28T08:36:47,345           ^
2022-10-28T08:36:47,751   1 warning generated.
2022-10-28T08:36:47,816   In file included from /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tif_dirread.c:37:
2022-10-28T08:36:47,816   In file included from /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tiffiop.h:58:
2022-10-28T08:36:47,816   In file included from /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tiffio.h:31:
2022-10-28T08:36:47,816   In file included from /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tiff.h:28:
2022-10-28T08:36:47,817   /usr/local/opt/libtiff/include/tiffconf.h:42:9: warning: 'TIFF_SSIZE_T' macro redefined [-Wmacro-redefined]
2022-10-28T08:36:47,817   #define TIFF_SSIZE_T int64_t
2022-10-28T08:36:47,817           ^
2022-10-28T08:36:47,817   /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/build/wxbld/src/tiff/libtiff/tif_config.h:286:9: note: previous definition is here
2022-10-28T08:36:47,817   #define TIFF_SSIZE_T signed long
2022-10-28T08:36:47,817           ^
2022-10-28T08:36:48,025   1 warning generated.
2022-10-28T08:36:48,089   In file included from /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tif_fax3.c:25:
2022-10-28T08:36:48,089   In file included from /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tiffiop.h:58:
2022-10-28T08:36:48,089   In file included from /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tiffio.h:31:
2022-10-28T08:36:48,089   In file included from /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/ext/wxWidgets/src/tiff/libtiff/tiff.h:28:
2022-10-28T08:36:48,089   /usr/local/opt/libtiff/include/tiffconf.h:42:9: warning: 'TIFF_SSIZE_T' macro redefined [-Wmacro-redefined]
2022-10-28T08:36:48,089   #define TIFF_SSIZE_T int64_t
2022-10-28T08:36:48,089           ^
2022-10-28T08:36:48,090   /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/build/wxbld/src/tiff/libtiff/tif_config.h:286:9: note: previous definition is here
2022-10-28T08:36:48,090   #define TIFF_SSIZE_T signed long
2022-10-28T08:36:48,090           ^
2022-10-28T08:36:48,162   1 warning generated.
2022-10-28T08:36:48,967   1 warning generated.
2022-10-28T08:36:49,100   1 warning generated.
2022-10-28T08:36:49,113   Error building
2022-10-28T08:36:49,113   ERROR: failed building wxWidgets
2022-10-28T08:36:49,115   Traceback (most recent call last):
2022-10-28T08:36:49,115     File "/private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/build.py", line 1563, in cmd_build_wx
2022-10-28T08:36:49,115       wxbuild.main(wxDir(), build_options)
2022-10-28T08:36:49,115     File "/private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/buildtools/build_wxwidgets.py", line 503, in main
2022-10-28T08:36:49,115       exitIfError(wxBuilder.build(dir=buildDir, options=args), "Error building")
2022-10-28T08:36:49,115     File "/private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/buildtools/build_wxwidgets.py", line 72, in exitIfError
2022-10-28T08:36:49,115       raise builder.BuildError(msg)
2022-10-28T08:36:49,116   buildtools.builder.BuildError: Error building
2022-10-28T08:36:49,116   Finished command: build_wx (1m40.570s)
2022-10-28T08:36:49,116   Finished command: build (1m40.570s)
2022-10-28T08:36:49,166   Command '"/Users/mark/.pyenv/versions/3.11.0/envs/test_3110/bin/python3.11" -u build.py build' failed with exit code 1.
2022-10-28T08:36:49,215   ERROR: [present-rich] Running setup.py install for wxPython exited with 1
2022-10-28T08:36:49,220   [bold magenta]full command[/]: [blue]/Users/mark/.pyenv/versions/3.11.0/envs/test_3110/bin/python3.11 -u -c '
2022-10-28T08:36:49,220   exec(compile('"'"''"'"''"'"'
2022-10-28T08:36:49,220   # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
2022-10-28T08:36:49,220   #
2022-10-28T08:36:49,220   # - It imports setuptools before invoking setup.py, to enable projects that directly
2022-10-28T08:36:49,220   #   import from `distutils.core` to work with newer packaging standards.
2022-10-28T08:36:49,220   # - It provides a clear error message when setuptools is not installed.
2022-10-28T08:36:49,220   # - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
2022-10-28T08:36:49,220   #   setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
2022-10-28T08:36:49,220   #     manifest_maker: standard file '"'"'-c'"'"' not found".
2022-10-28T08:36:49,220   # - It generates a shim setup.py, for handling setup.cfg-only projects.
2022-10-28T08:36:49,220   import os, sys, tokenize
2022-10-28T08:36:49,220   
2022-10-28T08:36:49,220   try:
2022-10-28T08:36:49,220       import setuptools
2022-10-28T08:36:49,220   except ImportError as error:
2022-10-28T08:36:49,220       print(
2022-10-28T08:36:49,220           "ERROR: Can not execute `setup.py` since setuptools is not available in "
2022-10-28T08:36:49,220           "the build environment.",
2022-10-28T08:36:49,220           file=sys.stderr,
2022-10-28T08:36:49,220       )
2022-10-28T08:36:49,220       sys.exit(1)
2022-10-28T08:36:49,220   
2022-10-28T08:36:49,220   __file__ = %r
2022-10-28T08:36:49,220   sys.argv[0] = __file__
2022-10-28T08:36:49,220   
2022-10-28T08:36:49,220   if os.path.exists(__file__):
2022-10-28T08:36:49,220       filename = __file__
2022-10-28T08:36:49,220       with tokenize.open(__file__) as f:
2022-10-28T08:36:49,220           setup_py_code = f.read()
2022-10-28T08:36:49,220   else:
2022-10-28T08:36:49,220       filename = "<auto-generated setuptools caller>"
2022-10-28T08:36:49,220       setup_py_code = "from setuptools import setup; setup()"
2022-10-28T08:36:49,220   
2022-10-28T08:36:49,220   exec(compile(setup_py_code, filename, "exec"))
2022-10-28T08:36:49,220   '"'"''"'"''"'"' % ('"'"'/private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' install --record /private/var/folders/f6/<random_string_00>/T/pip-record-lyqvqrdk/install-record.txt --single-version-externally-managed --compile --install-headers /Users/mark/.pyenv/versions/3.11.0/envs/test_3110/include/site/python3.11/wxPython[/]
2022-10-28T08:36:49,220   [bold magenta]cwd[/]: /private/var/folders/f6/<random_string_00>/T/pip-install-8h4fr53y/wxpython_<random_string_01>7adc/
2022-10-28T08:36:49,222 ERROR: [present-rich] <LegacyInstallFailure: legacy-install-failure>
2022-10-28T08:36:49,224 Exception information:
2022-10-28T08:36:49,224 Traceback (most recent call last):
2022-10-28T08:36:49,224   File "/Users/mark/.pyenv/versions/3.11.0/envs/test_3110/lib/python3.11/site-packages/pip/_internal/operations/install/legacy.py", line 97, in install
2022-10-28T08:36:49,224     runner(
2022-10-28T08:36:49,224   File "/Users/mark/.pyenv/versions/3.11.0/envs/test_3110/lib/python3.11/site-packages/pip/_internal/utils/subprocess.py", line 252, in runner
2022-10-28T08:36:49,224     call_subprocess(
2022-10-28T08:36:49,224   File "/Users/mark/.pyenv/versions/3.11.0/envs/test_3110/lib/python3.11/site-packages/pip/_internal/utils/subprocess.py", line 224, in call_subprocess
2022-10-28T08:36:49,224     raise error
2022-10-28T08:36:49,224 pip._internal.exceptions.InstallationSubprocessError: Running setup.py install for wxPython exited with 1
2022-10-28T08:36:49,224 
2022-10-28T08:36:49,224 The above exception was the direct cause of the following exception:
2022-10-28T08:36:49,224 
2022-10-28T08:36:49,224 Traceback (most recent call last):
2022-10-28T08:36:49,224   File "/Users/mark/.pyenv/versions/3.11.0/envs/test_3110/lib/python3.11/site-packages/pip/_internal/cli/base_command.py", line 160, in exc_logging_wrapper
2022-10-28T08:36:49,224     status = run_func(*args)
2022-10-28T08:36:49,224              ^^^^^^^^^^^^^^^
2022-10-28T08:36:49,224   File "/Users/mark/.pyenv/versions/3.11.0/envs/test_3110/lib/python3.11/site-packages/pip/_internal/cli/req_command.py", line 247, in wrapper
2022-10-28T08:36:49,224     return func(self, options, args)
2022-10-28T08:36:49,224            ^^^^^^^^^^^^^^^^^^^^^^^^^
2022-10-28T08:36:49,224   File "/Users/mark/.pyenv/versions/3.11.0/envs/test_3110/lib/python3.11/site-packages/pip/_internal/commands/install.py", line 494, in run
2022-10-28T08:36:49,224     installed = install_given_reqs(
2022-10-28T08:36:49,224                 ^^^^^^^^^^^^^^^^^^^
2022-10-28T08:36:49,224   File "/Users/mark/.pyenv/versions/3.11.0/envs/test_3110/lib/python3.11/site-packages/pip/_internal/req/__init__.py", line 73, in install_given_reqs
2022-10-28T08:36:49,224     requirement.install(
2022-10-28T08:36:49,224   File "/Users/mark/.pyenv/versions/3.11.0/envs/test_3110/lib/python3.11/site-packages/pip/_internal/req/req_install.py", line 839, in install
2022-10-28T08:36:49,224     raise exc
2022-10-28T08:36:49,224   File "/Users/mark/.pyenv/versions/3.11.0/envs/test_3110/lib/python3.11/site-packages/pip/_internal/req/req_install.py", line 821, in install
2022-10-28T08:36:49,224     success = install_legacy(
2022-10-28T08:36:49,224               ^^^^^^^^^^^^^^^
2022-10-28T08:36:49,224   File "/Users/mark/.pyenv/versions/3.11.0/envs/test_3110/lib/python3.11/site-packages/pip/_internal/operations/install/legacy.py", line 109, in install
2022-10-28T08:36:49,224     raise LegacyInstallFailure(package_details=req_name) from e
2022-10-28T08:36:49,224 pip._internal.exceptions.LegacyInstallFailure: <LegacyInstallFailure: legacy-install-failure>
2022-10-28T08:36:49,275 Remote version of pip: 22.3
2022-10-28T08:36:49,275 Local version of pip:  22.3
2022-10-28T08:36:49,280 Was pip installed by pip? True
2022-10-28T08:36:49,280 Removed build tracker: '/private/var/folders/f6/<random_string_00>/T/pip-build-tracker-hj2h5el8'

Looks like my XCode version is 13.2.

Just tried updating libtiff within my brew env and it is still failing with the same issues as in my previous reply.

1 Like