mod_wsgi icon indicating copy to clipboard operation
mod_wsgi copied to clipboard

RuntimeError: Failed to build APR.

Open rjahanbin opened this issue 3 years ago • 8 comments

I am trying to install "pip install -v -v -v mod_wsgi-httpd==2.4.39.1" on my system with macOS Monterey 12.5.1. I get RuntimeError: Failed to build APR. error. I have Xcode installed. We have an application worked before. I upgraded the hardware and software and now I can't install mod_wsgi-httpd.

TerminalSavedOutput.txt

rjahanbin avatar Oct 03 '22 18:10 rjahanbin

The APR package has been broken on macOS for a very long time and doesn't work without patching it. As a consequence, you can't use mod_wsgi-httpd on macOS. Use Apache installed using Homebrew for macOS instead.

GrahamDumpleton avatar Oct 03 '22 19:10 GrahamDumpleton

thanks for your response. I installed apache with "brew install httpd". pip install mod_wsgi
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. Looking in indexes: https://pypi.python.org/simple, https://pypi.apple.com/simple Collecting mod_wsgi Using cached mod_wsgi-4.9.4.tar.gz (497 kB) Building wheels for collected packages: mod-wsgi Building wheel for mod-wsgi (setup.py) ... error ERROR: Command errored out with exit status 1: command: /Users/hedwig/Developer/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/hn/dcj7xn5d2l11bj20h7nqkqhm0000gn/T/pip-install-BOvJ1Q/mod-wsgi/setup.py'"'"'; file='"'"'/private/var/folders/hn/dcj7xn5d2l11bj20h7nqkqhm0000gn/T/pip-install-BOvJ1Q/mod-wsgi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/hn/dcj7xn5d2l11bj20h7nqkqhm0000gn/T/pip-wheel-xyriAN cwd: /private/var/folders/hn/dcj7xn5d2l11bj20h7nqkqhm0000gn/T/pip-install-BOvJ1Q/mod-wsgi/ Complete output (56 lines): running bdist_wheel running build running build_py creating build creating build/lib.macosx-12.5-arm64-2.7 creating build/lib.macosx-12.5-arm64-2.7/mod_wsgi copying src/init.py -> build/lib.macosx-12.5-arm64-2.7/mod_wsgi creating build/lib.macosx-12.5-arm64-2.7/mod_wsgi/server copying src/server/apxs_config.py -> build/lib.macosx-12.5-arm64-2.7/mod_wsgi/server copying src/server/init.py -> build/lib.macosx-12.5-arm64-2.7/mod_wsgi/server copying src/server/environ.py -> build/lib.macosx-12.5-arm64-2.7/mod_wsgi/server creating build/lib.macosx-12.5-arm64-2.7/mod_wsgi/server/management copying src/server/management/init.py -> build/lib.macosx-12.5-arm64-2.7/mod_wsgi/server/management creating build/lib.macosx-12.5-arm64-2.7/mod_wsgi/server/management/commands copying src/server/management/commands/runmodwsgi.py -> build/lib.macosx-12.5-arm64-2.7/mod_wsgi/server/management/commands copying src/server/management/commands/init.py -> build/lib.macosx-12.5-arm64-2.7/mod_wsgi/server/management/commands creating build/lib.macosx-12.5-arm64-2.7/mod_wsgi/docs copying docs/_build/html/init.py -> build/lib.macosx-12.5-arm64-2.7/mod_wsgi/docs creating build/lib.macosx-12.5-arm64-2.7/mod_wsgi/images copying images/init.py -> build/lib.macosx-12.5-arm64-2.7/mod_wsgi/images copying images/snake-whiskey.jpg -> build/lib.macosx-12.5-arm64-2.7/mod_wsgi/images running build_ext building 'mod_wsgi.server.mod_wsgi-py27' extension creating build/temp.macosx-12.5-arm64-2.7 creating build/temp.macosx-12.5-arm64-2.7/src creating build/temp.macosx-12.5-arm64-2.7/src/server cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/opt/homebrew/opt/httpd/include/httpd -I/Users/hedwig/Developer/venv/include/python2.7 -c src/server/wsgi_thread.c -o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_thread.o -I/opt/homebrew/opt/httpd/include/httpd -I. -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/openssl.1/include -I/opt/homebrew/opt/pcre2/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -Wall -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/[email protected]/include cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/opt/homebrew/opt/httpd/include/httpd -I/Users/hedwig/Developer/venv/include/python2.7 -c src/server/mod_wsgi.c -o build/temp.macosx-12.5-arm64-2.7/src/server/mod_wsgi.o -I/opt/homebrew/opt/httpd/include/httpd -I. -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/openssl.1/include -I/opt/homebrew/opt/pcre2/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -Wall -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/[email protected]/include src/server/mod_wsgi.c:10817:45: warning: implicit conversion loses integer precision: 'unsigned long' to 'socklen_t' (aka 'unsigned int') [-Wshorten-64-to-32] + strlen(sa->sun_path) + 1); ~~~~~~~~~~~~~~~~~~~~~~~^~~ src/server/mod_wsgi.c:11009:53: warning: implicit conversion loses integer precision: 'unsigned long' to 'apr_int32_t' (aka 'int') [-Wshorten-64-to-32] rv = apr_socket_sendv(sock, vec+offset, nvec-offset, &n); ~~~~~~~~~~~~~~~~ ~~~~^~~~~~~ 2 warnings generated. cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/opt/homebrew/opt/httpd/include/httpd -I/Users/hedwig/Developer/venv/include/python2.7 -c src/server/wsgi_buckets.c -o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_buckets.o -I/opt/homebrew/opt/httpd/include/httpd -I. -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/openssl.1/include -I/opt/homebrew/opt/pcre2/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -Wall -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/[email protected]/include cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/opt/homebrew/opt/httpd/include/httpd -I/Users/hedwig/Developer/venv/include/python2.7 -c src/server/wsgi_memory.c -o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_memory.o -I/opt/homebrew/opt/httpd/include/httpd -I. -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/openssl.1/include -I/opt/homebrew/opt/pcre2/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -Wall -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/[email protected]/include cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/opt/homebrew/opt/httpd/include/httpd -I/Users/hedwig/Developer/venv/include/python2.7 -c src/server/wsgi_interp.c -o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_interp.o -I/opt/homebrew/opt/httpd/include/httpd -I. -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/openssl.1/include -I/opt/homebrew/opt/pcre2/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -Wall -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/[email protected]/include cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/opt/homebrew/opt/httpd/include/httpd -I/Users/hedwig/Developer/venv/include/python2.7 -c src/server/wsgi_restrict.c -o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_restrict.o -I/opt/homebrew/opt/httpd/include/httpd -I. -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/openssl.1/include -I/opt/homebrew/opt/pcre2/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -Wall -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/[email protected]/include cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/opt/homebrew/opt/httpd/include/httpd -I/Users/hedwig/Developer/venv/include/python2.7 -c src/server/wsgi_logger.c -o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_logger.o -I/opt/homebrew/opt/httpd/include/httpd -I. -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/openssl.1/include -I/opt/homebrew/opt/pcre2/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -Wall -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/[email protected]/include cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/opt/homebrew/opt/httpd/include/httpd -I/Users/hedwig/Developer/venv/include/python2.7 -c src/server/wsgi_server.c -o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_server.o -I/opt/homebrew/opt/httpd/include/httpd -I. -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/openssl.1/include -I/opt/homebrew/opt/pcre2/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -Wall -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/[email protected]/include cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/opt/homebrew/opt/httpd/include/httpd -I/Users/hedwig/Developer/venv/include/python2.7 -c src/server/wsgi_convert.c -o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_convert.o -I/opt/homebrew/opt/httpd/include/httpd -I. -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/openssl.1/include -I/opt/homebrew/opt/pcre2/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -Wall -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/[email protected]/include cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/opt/homebrew/opt/httpd/include/httpd -I/Users/hedwig/Developer/venv/include/python2.7 -c src/server/wsgi_metrics.c -o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_metrics.o -I/opt/homebrew/opt/httpd/include/httpd -I. -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/openssl.1/include -I/opt/homebrew/opt/pcre2/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -Wall -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/[email protected]/include src/server/wsgi_metrics.c:409:12: warning: variable 'total_cpu_time' set but not used [-Wunused-but-set-variable] double total_cpu_time = 0.0; ^ 1 warning generated. cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/opt/homebrew/opt/httpd/include/httpd -I/Users/hedwig/Developer/venv/include/python2.7 -c src/server/wsgi_validate.c -o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_validate.o -I/opt/homebrew/opt/httpd/include/httpd -I. -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/openssl.1/include -I/opt/homebrew/opt/pcre2/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -Wall -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/[email protected]/include cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/opt/homebrew/opt/httpd/include/httpd -I/Users/hedwig/Developer/venv/include/python2.7 -c src/server/wsgi_daemon.c -o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_daemon.o -I/opt/homebrew/opt/httpd/include/httpd -I. -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/openssl.1/include -I/opt/homebrew/opt/pcre2/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -Wall -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/[email protected]/include cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/opt/homebrew/opt/httpd/include/httpd -I/Users/hedwig/Developer/venv/include/python2.7 -c src/server/wsgi_apache.c -o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_apache.o -I/opt/homebrew/opt/httpd/include/httpd -I. -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/openssl.1/include -I/opt/homebrew/opt/pcre2/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -Wall -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/[email protected]/include cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/opt/homebrew/opt/httpd/include/httpd -I/Users/hedwig/Developer/venv/include/python2.7 -c src/server/wsgi_stream.c -o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_stream.o -I/opt/homebrew/opt/httpd/include/httpd -I. -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/openssl.1/include -I/opt/homebrew/opt/pcre2/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -Wall -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/[email protected]/include cc -bundle -undefined dynamic_lookup -Wl,-F. -L/AppleInternal/Library/BuildRoots/20d6c351-ee94-11ec-bcaf-7247572f23b4/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.5.Internal.sdk/usr/local/libressl/lib -allowable_client Accounts -allowable_client accounts_tool -allowable_client appletrace_bindings-python2 -allowable_client ausiss -allowable_client caffeconverter -allowable_client cgdump -allowable_client CoreAnalytics_executables -allowable_client CoreGraphicsBindings -allowable_client coremlpython -allowable_client CoreMLTools -allowable_client CoreNLPFramework -allowable_client CPAN -allowable_client CreateML_tests -allowable_client CreateMLTest -allowable_client DataDetectorsCore_executables -allowable_client disasm -allowable_client duallinkanalyse -allowable_client eoslib -allowable_client fastsim -allowable_client Feldspar -allowable_client GPUDriversIntel -allowable_client gxtools -allowable_client HIDSensingPipeline -allowable_client HSComposer -allowable_client LanguageModeling -allowable_client lldb_host -allowable_client lldbPluginScriptInterpreterPython2 -allowable_client Mica -allowable_client MobileBluetooth_DevTools -allowable_client MobileQuickLook_iosmac -allowable_client mrecfpu -allowable_client pdsasm -allowable_client PencilKit_swiftoverlay_iosmac -allowable_client Photos_Swift -allowable_client Picholine -allowable_client pmrec -allowable_client pmrec.tmp -allowable_client py_dasm -allowable_client pydis -allowable_client pydis-s2a8 -allowable_client pyobjc -allowable_client python.exe -allowable_client python_modules -allowable_client pythonw -allowable_client pytrace -allowable_client quarantine_test -allowable_client Raft -allowable_client RaftFramework -allowable_client RaftFrameworkExternal -allowable_client rogueasm -allowable_client sim -allowable_client sim_bindings-python2 -allowable_client SpeechRecognitionCore_executables -allowable_client Stocks -allowable_client testbotctl -allowable_client testbotd -allowable_client testbotd-base -allowable_client testbottask -allowable_client TimeSync_exec -allowable_client timesyncanalyse -allowable_client timesynclogextract -allowable_client UIKit_swiftoverlay build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_thread.o build/temp.macosx-12.5-arm64-2.7/src/server/mod_wsgi.o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_buckets.o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_memory.o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_interp.o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_restrict.o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_logger.o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_server.o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_convert.o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_metrics.o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_validate.o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_daemon.o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_apache.o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_stream.o -L/AppleInternal/Library/Frameworks/PythonLegacy.framework/Versions/2.7/lib -L/Users/hedwig/Developer/venv/lib/python2.7/config -o build/lib.macosx-12.5-arm64-2.7/mod_wsgi/server/mod_wsgi-py27.so -L/AppleInternal/Library/Frameworks/PythonLegacy.framework/Versions/2.7/lib -L/Users/hedwig/Developer/venv/lib/python2.7/config -lpython2.7 ld: warning: directory not found for option '-L/AppleInternal/Library/BuildRoots/20d6c351-ee94-11ec-bcaf-7247572f23b4/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.5.Internal.sdk/usr/local/libressl/lib' ld: cannot link directly with dylib/framework, your binary is not an allowed client of /AppleInternal/Library/Frameworks/PythonLegacy.framework/Versions/2.7/lib/libpython2.7.dylib for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) error: command 'cc' failed with exit status 1

ERROR: Failed building wheel for mod-wsgi Running setup.py clean for mod-wsgi Failed to build mod-wsgi Installing collected packages: mod-wsgi Running setup.py install for mod-wsgi ... error ERROR: Command errored out with exit status 1: command: /Users/hedwig/Developer/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/hn/dcj7xn5d2l11bj20h7nqkqhm0000gn/T/pip-install-BOvJ1Q/mod-wsgi/setup.py'"'"'; file='"'"'/private/var/folders/hn/dcj7xn5d2l11bj20h7nqkqhm0000gn/T/pip-install-BOvJ1Q/mod-wsgi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/hn/dcj7xn5d2l11bj20h7nqkqhm0000gn/T/pip-record-_b23rD/install-record.txt --single-version-externally-managed --compile --install-headers /Users/hedwig/Developer/venv/include/site/python2.7/mod-wsgi cwd: /private/var/folders/hn/dcj7xn5d2l11bj20h7nqkqhm0000gn/T/pip-install-BOvJ1Q/mod-wsgi/ Complete output (56 lines): running install running build running build_py creating build creating build/lib.macosx-12.5-arm64-2.7 creating build/lib.macosx-12.5-arm64-2.7/mod_wsgi copying src/init.py -> build/lib.macosx-12.5-arm64-2.7/mod_wsgi creating build/lib.macosx-12.5-arm64-2.7/mod_wsgi/server copying src/server/apxs_config.py -> build/lib.macosx-12.5-arm64-2.7/mod_wsgi/server copying src/server/init.py -> build/lib.macosx-12.5-arm64-2.7/mod_wsgi/server copying src/server/environ.py -> build/lib.macosx-12.5-arm64-2.7/mod_wsgi/server creating build/lib.macosx-12.5-arm64-2.7/mod_wsgi/server/management copying src/server/management/init.py -> build/lib.macosx-12.5-arm64-2.7/mod_wsgi/server/management creating build/lib.macosx-12.5-arm64-2.7/mod_wsgi/server/management/commands copying src/server/management/commands/runmodwsgi.py -> build/lib.macosx-12.5-arm64-2.7/mod_wsgi/server/management/commands copying src/server/management/commands/init.py -> build/lib.macosx-12.5-arm64-2.7/mod_wsgi/server/management/commands creating build/lib.macosx-12.5-arm64-2.7/mod_wsgi/docs copying docs/_build/html/init.py -> build/lib.macosx-12.5-arm64-2.7/mod_wsgi/docs creating build/lib.macosx-12.5-arm64-2.7/mod_wsgi/images copying images/init.py -> build/lib.macosx-12.5-arm64-2.7/mod_wsgi/images copying images/snake-whiskey.jpg -> build/lib.macosx-12.5-arm64-2.7/mod_wsgi/images running build_ext building 'mod_wsgi.server.mod_wsgi-py27' extension creating build/temp.macosx-12.5-arm64-2.7 creating build/temp.macosx-12.5-arm64-2.7/src creating build/temp.macosx-12.5-arm64-2.7/src/server cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/opt/homebrew/opt/httpd/include/httpd -I/Users/hedwig/Developer/venv/include/python2.7 -c src/server/wsgi_thread.c -o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_thread.o -I/opt/homebrew/opt/httpd/include/httpd -I. -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/openssl.1/include -I/opt/homebrew/opt/pcre2/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -Wall -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/[email protected]/include cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/opt/homebrew/opt/httpd/include/httpd -I/Users/hedwig/Developer/venv/include/python2.7 -c src/server/mod_wsgi.c -o build/temp.macosx-12.5-arm64-2.7/src/server/mod_wsgi.o -I/opt/homebrew/opt/httpd/include/httpd -I. -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/openssl.1/include -I/opt/homebrew/opt/pcre2/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -Wall -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/[email protected]/include src/server/mod_wsgi.c:10817:45: warning: implicit conversion loses integer precision: 'unsigned long' to 'socklen_t' (aka 'unsigned int') [-Wshorten-64-to-32] + strlen(sa->sun_path) + 1); ~~~~~~~~~~~~~~~~~~~~~~~^~~ src/server/mod_wsgi.c:11009:53: warning: implicit conversion loses integer precision: 'unsigned long' to 'apr_int32_t' (aka 'int') [-Wshorten-64-to-32] rv = apr_socket_sendv(sock, vec+offset, nvec-offset, &n); ~~~~~~~~~~~~~~~~ ~~~~^~~~~~~ 2 warnings generated. cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/opt/homebrew/opt/httpd/include/httpd -I/Users/hedwig/Developer/venv/include/python2.7 -c src/server/wsgi_buckets.c -o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_buckets.o -I/opt/homebrew/opt/httpd/include/httpd -I. -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/openssl.1/include -I/opt/homebrew/opt/pcre2/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -Wall -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/[email protected]/include cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/opt/homebrew/opt/httpd/include/httpd -I/Users/hedwig/Developer/venv/include/python2.7 -c src/server/wsgi_memory.c -o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_memory.o -I/opt/homebrew/opt/httpd/include/httpd -I. -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/openssl.1/include -I/opt/homebrew/opt/pcre2/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -Wall -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/[email protected]/include cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/opt/homebrew/opt/httpd/include/httpd -I/Users/hedwig/Developer/venv/include/python2.7 -c src/server/wsgi_interp.c -o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_interp.o -I/opt/homebrew/opt/httpd/include/httpd -I. -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/openssl.1/include -I/opt/homebrew/opt/pcre2/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -Wall -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/[email protected]/include cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/opt/homebrew/opt/httpd/include/httpd -I/Users/hedwig/Developer/venv/include/python2.7 -c src/server/wsgi_restrict.c -o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_restrict.o -I/opt/homebrew/opt/httpd/include/httpd -I. -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/openssl.1/include -I/opt/homebrew/opt/pcre2/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -Wall -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/[email protected]/include cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/opt/homebrew/opt/httpd/include/httpd -I/Users/hedwig/Developer/venv/include/python2.7 -c src/server/wsgi_logger.c -o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_logger.o -I/opt/homebrew/opt/httpd/include/httpd -I. -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/openssl.1/include -I/opt/homebrew/opt/pcre2/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -Wall -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/[email protected]/include cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/opt/homebrew/opt/httpd/include/httpd -I/Users/hedwig/Developer/venv/include/python2.7 -c src/server/wsgi_server.c -o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_server.o -I/opt/homebrew/opt/httpd/include/httpd -I. -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/openssl.1/include -I/opt/homebrew/opt/pcre2/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -Wall -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/[email protected]/include cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/opt/homebrew/opt/httpd/include/httpd -I/Users/hedwig/Developer/venv/include/python2.7 -c src/server/wsgi_convert.c -o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_convert.o -I/opt/homebrew/opt/httpd/include/httpd -I. -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/openssl.1/include -I/opt/homebrew/opt/pcre2/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -Wall -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/[email protected]/include cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/opt/homebrew/opt/httpd/include/httpd -I/Users/hedwig/Developer/venv/include/python2.7 -c src/server/wsgi_metrics.c -o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_metrics.o -I/opt/homebrew/opt/httpd/include/httpd -I. -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/openssl.1/include -I/opt/homebrew/opt/pcre2/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -Wall -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/[email protected]/include src/server/wsgi_metrics.c:409:12: warning: variable 'total_cpu_time' set but not used [-Wunused-but-set-variable] double total_cpu_time = 0.0; ^ 1 warning generated. cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/opt/homebrew/opt/httpd/include/httpd -I/Users/hedwig/Developer/venv/include/python2.7 -c src/server/wsgi_validate.c -o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_validate.o -I/opt/homebrew/opt/httpd/include/httpd -I. -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/openssl.1/include -I/opt/homebrew/opt/pcre2/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -Wall -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/[email protected]/include cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/opt/homebrew/opt/httpd/include/httpd -I/Users/hedwig/Developer/venv/include/python2.7 -c src/server/wsgi_daemon.c -o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_daemon.o -I/opt/homebrew/opt/httpd/include/httpd -I. -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/openssl.1/include -I/opt/homebrew/opt/pcre2/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -Wall -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/[email protected]/include cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/opt/homebrew/opt/httpd/include/httpd -I/Users/hedwig/Developer/venv/include/python2.7 -c src/server/wsgi_apache.c -o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_apache.o -I/opt/homebrew/opt/httpd/include/httpd -I. -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/openssl.1/include -I/opt/homebrew/opt/pcre2/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -Wall -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/[email protected]/include cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -I/opt/homebrew/opt/httpd/include/httpd -I/Users/hedwig/Developer/venv/include/python2.7 -c src/server/wsgi_stream.c -o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_stream.o -I/opt/homebrew/opt/httpd/include/httpd -I. -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/openssl.1/include -I/opt/homebrew/opt/pcre2/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -g -O2 -Wall -I/opt/homebrew/opt/apr/include/apr-1 -I/opt/homebrew/opt/apr-util/include/apr-1 -I/opt/homebrew/opt/[email protected]/include cc -bundle -undefined dynamic_lookup -Wl,-F. -L/AppleInternal/Library/BuildRoots/20d6c351-ee94-11ec-bcaf-7247572f23b4/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.5.Internal.sdk/usr/local/libressl/lib -allowable_client Accounts -allowable_client accounts_tool -allowable_client appletrace_bindings-python2 -allowable_client ausiss -allowable_client caffeconverter -allowable_client cgdump -allowable_client CoreAnalytics_executables -allowable_client CoreGraphicsBindings -allowable_client coremlpython -allowable_client CoreMLTools -allowable_client CoreNLPFramework -allowable_client CPAN -allowable_client CreateML_tests -allowable_client CreateMLTest -allowable_client DataDetectorsCore_executables -allowable_client disasm -allowable_client duallinkanalyse -allowable_client eoslib -allowable_client fastsim -allowable_client Feldspar -allowable_client GPUDriversIntel -allowable_client gxtools -allowable_client HIDSensingPipeline -allowable_client HSComposer -allowable_client LanguageModeling -allowable_client lldb_host -allowable_client lldbPluginScriptInterpreterPython2 -allowable_client Mica -allowable_client MobileBluetooth_DevTools -allowable_client MobileQuickLook_iosmac -allowable_client mrecfpu -allowable_client pdsasm -allowable_client PencilKit_swiftoverlay_iosmac -allowable_client Photos_Swift -allowable_client Picholine -allowable_client pmrec -allowable_client pmrec.tmp -allowable_client py_dasm -allowable_client pydis -allowable_client pydis-s2a8 -allowable_client pyobjc -allowable_client python.exe -allowable_client python_modules -allowable_client pythonw -allowable_client pytrace -allowable_client quarantine_test -allowable_client Raft -allowable_client RaftFramework -allowable_client RaftFrameworkExternal -allowable_client rogueasm -allowable_client sim -allowable_client sim_bindings-python2 -allowable_client SpeechRecognitionCore_executables -allowable_client Stocks -allowable_client testbotctl -allowable_client testbotd -allowable_client testbotd-base -allowable_client testbottask -allowable_client TimeSync_exec -allowable_client timesyncanalyse -allowable_client timesynclogextract -allowable_client UIKit_swiftoverlay build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_thread.o build/temp.macosx-12.5-arm64-2.7/src/server/mod_wsgi.o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_buckets.o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_memory.o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_interp.o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_restrict.o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_logger.o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_server.o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_convert.o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_metrics.o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_validate.o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_daemon.o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_apache.o build/temp.macosx-12.5-arm64-2.7/src/server/wsgi_stream.o -L/AppleInternal/Library/Frameworks/PythonLegacy.framework/Versions/2.7/lib -L/Users/hedwig/Developer/venv/lib/python2.7/config -o build/lib.macosx-12.5-arm64-2.7/mod_wsgi/server/mod_wsgi-py27.so -L/AppleInternal/Library/Frameworks/PythonLegacy.framework/Versions/2.7/lib -L/Users/hedwig/Developer/venv/lib/python2.7/config -lpython2.7 ld: warning: directory not found for option '-L/AppleInternal/Library/BuildRoots/20d6c351-ee94-11ec-bcaf-7247572f23b4/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.5.Internal.sdk/usr/local/libressl/lib' ld: cannot link directly with dylib/framework, your binary is not an allowed client of /AppleInternal/Library/Frameworks/PythonLegacy.framework/Versions/2.7/lib/libpython2.7.dylib for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) error: command 'cc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /Users/hedwig/Developer/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/hn/dcj7xn5d2l11bj20h7nqkqhm0000gn/T/pip-install-BOvJ1Q/mod-wsgi/setup.py'"'"'; file='"'"'/private/var/folders/hn/dcj7xn5d2l11bj20h7nqkqhm0000gn/T/pip-install-BOvJ1Q/mod-wsgi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/hn/dcj7xn5d2l11bj20h7nqkqhm0000gn/T/pip-record-_b23rD/install-record.txt --single-version-externally-managed --compile --install-headers /Users/hedwig/Developer/venv/include/site/python2.7/mod-wsgi Check the logs for full command output.

rjahanbin avatar Oct 04 '22 21:10 rjahanbin

Don't use Python 2.7, use Python 3.X.

GrahamDumpleton avatar Oct 04 '22 22:10 GrahamDumpleton

Our application is written in python2 unfortunately. Anyways I can install with python2?

rjahanbin avatar Oct 04 '22 22:10 rjahanbin

Where did you get your Python 2.7 install from? M1 (arm64) macOS doesn't have Python 2.7.

Where ever it came from it hasn't been setup correctly and has a broken bundled configuration it.

GrahamDumpleton avatar Oct 04 '22 22:10 GrahamDumpleton

It came with the OS. I didn't install it myself. I was able to build latest version of mod_wsgi with python3 but can't do it with python2.

rjahanbin avatar Oct 04 '22 22:10 rjahanbin

What version of macOS are you running? Python 2.7 was removed from macOS in 12.3. https://developer.apple.com/documentation/macos-release-notes/macos-12_3-release-notes#Python

If you go to Preferences in Xcode and look at Platforms, what macOS version support is shown there? On macOS 12.6 this will show macOS 12.3 as builtin version. Do you have an older version still inherited across upgrades?

GrahamDumpleton avatar Oct 04 '22 23:10 GrahamDumpleton

Only suggestion can make is to install pyenv from HomeBrew and use it to install Python 2.7.X. Do note that when you do this you must customize the pyenv configuration for the install so it creates shared libraries for Python as it doesn't do that by default.

  • https://github.com/pyenv/pyenv/wiki#how-to-build-cpython-with---enable-shared

GrahamDumpleton avatar Oct 04 '22 23:10 GrahamDumpleton