I am using the following configuration.I have installed mod_wsgi using pip command.I am using macos bigSur(11.6.2).
mod-wsgi==4.9.0
Server version: Apache/2.4.51 (Unix) - Apple Version
I am getting the following error
httpd: Syntax error on line 191 of /private/etc/apache2/httpd.conf: Cannot load /Users/apple/.virtualenvs/djangodev/lib/python3.8/site-packages/mod_wsgi/server/mod_wsgi-py38.cpython-38-darwin.so into server: dlopen(/Users/apple/.virtualenvs/djangodev/lib/python3.8/site-packages/mod_wsgi/server/mod_wsgi-py38.cpython-38-darwin.so, 10): Library not loaded: @rpath/Python3.framework/Versions/3.8/Python3\n Referenced from: /Users/apple/.virtualenvs/djangodev/lib/python3.8/site-packages/mod_wsgi/server/mod_wsgi-py38.cpython-38-darwin.so\n Reason: image not found
Could anyone please guide me on this.
Thanks and Regards
Suraj
--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/a5b75dca-04da-423c-abcd-9464fd19088en%40googlegroups.com.
/Users/apple/.virtualenvs/djangodev/lib/python3.8/site-packages/mod_wsgi/server/mod_wsgi-py38.cpython-38-darwin.so: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit bundle x86_64] [arm64:Mach-O 64-bit bundle arm64]
/Users/apple/.virtualenvs/djangodev/lib/python3.8/site-packages/mod_wsgi/server/mod_wsgi-py38.cpython-38-darwin.so (for architecture x86_64): Mach-O 64-bit bundle x86_64
/Users/apple/.virtualenvs/djangodev/lib/python3.8/site-packages/mod_wsgi/server/mod_wsgi-py38.cpython-38-darwin.so (for architecture arm64): Mach-O 64-bit bundle arm64
file /usr/sbin/httpd
/usr/sbin/httpd: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64e:Mach-O 64-bit executable arm64e]
/usr/sbin/httpd (for architecture x86_64): Mach-O 64-bit executable x86_64
/usr/sbin/httpd (for architecture arm64e): Mach-O 64-bit executable arm64e
which apxs
apxs not found
apxs -q BINDIR
zsh: command not found: apxs
I have installed mod_wsgi using the command - > pip install mod_wsgi
Thanks
Suraj
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/87edc051-6ee1-4971-b010-fe6c71b0412cn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/baebca73-546f-4bf0-8e66-225e22c3ad2fn%40googlegroups.com.
ls -ls /usr/bin/python*
Output for the above command is this. this shows all the pythons installed .
0 lrwxr-xr-x 1 root wheel 75 Jan 1 2020 /usr/bin/python -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
0 lrwxr-xr-x 1 root wheel 82 Jan 1 2020 /usr/bin/python-config -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config
0 lrwxr-xr-x 1 root wheel 75 Jan 1 2020 /usr/bin/python2 -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
0 lrwxr-xr-x 1 root wheel 75 Jan 1 2020 /usr/bin/python2.7 -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
0 lrwxr-xr-x 1 root wheel 82 Jan 1 2020 /usr/bin/python2.7-config -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config
24 -rwxr-xr-x 1 root wheel 137616 Jan 1 2020 /usr/bin/python3
0 lrwxr-xr-x 1 root wheel 76 Jan 1 2020 /usr/bin/pythonw -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7
0 lrwxr-xr-x 1 root wheel 76 Jan 1 2020 /usr/bin/pythonw2.7 -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/0be873e6-d54a-44cd-8c0b-0f1940f82d62n%40googlegroups.com.