> On 5 Jan 2018, at 3:16 pm, Gnarlodious <[email protected]> wrote:
>
> Excellent, its finally working. Thank you for your quick help!
>
> I would just add that the file
> mod_wsgi-py36.cpython-36m-darwin.so
> MUST reside in the folder where its written, so the import statement is the
> rather bulky:
> LoadModule wsgi_module
> /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/mod_wsgi/server/mod_wsgi-py36.cpython-36m-darwin.so
> Probably a symlink would be more manageable, but I'm just happy to have it
> working.
It doesn't have to be.
The:
mod_wsgi-express install-module
command will copy it into the Apache modules directory and it can then be used
from there, usually by using:
LoadModule wsgi_module modules/mod_wsgi-py36.cpython-36m-darwin.so
but the 'install-module' command will tell you what to use.
The problem is that the Security Integrity Protections (SIP) in MacOS prevent
you from writing anything to the Apache modules directory (unless they have
relaxed that restriction), so easier to use it from the Python installation.
That is where the:
mod_wsgi-express module-config
command comes into play to tell you the config to add to the Apache
configuration file to import it.
Finding somewhere else to copy it to just to symlink to it could be just as
painful on MacOS.
Graham
> I'll look into the “virtual environment” thing.
>
> -- Gnarlie
>
>
>
>
>
> -- Gnarlie
>
> On Thursday, January 4, 2018 at 8:42:49 PM UTC-7, Graham Dumpleton wrote:
> What do you get if you run 'python' and do:
>
> import mod_wsgi
> mod_wsgi.__file__
>
> Graham
>
>> On 5 Jan 2018, at 2:28 pm, Gnarlodious <gnarl...@ <>gmail.com
>> <http://gmail.com/>> wrote:
>>
>> It says it installed it but I don’t know where. Can’t find it in Python 2.7,
>> not in Python 3.6 and not in Apache.
>>
>> Weird. A lot about 10.13 seems broken in the innards.
>>
>> — Gnarlie
>>
>>
>> On Thursday, January 4, 2018 at 7:24:49 PM UTC-7, Gnarlodious wrote:
>> Hello. Upgraded to OSX 10.13.2 and having extreme difficulty getting my
>> websites running.
>> Python 3.6.4
>> Apache 2.4.29 built for daemon mode (worker MPM).
>> mod_wsgi installed using the sudo pip3 install mod_wsgi command
>> Error I get:
>> Cannot load mod_wsgi.so into server: dlopen(mod_wsgi.so, 10): image not found
>> otool -L reports:
>> /Library/Frameworks/Python.framework/Versions/3.6/Python (compatibility
>> version 3.6.0, current version 3.6.0)
>> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
>> 1252.0.0)
>>
>> Just guessing that libSystem.B.dylib is not compatible with mod_wsgi and so
>> it won’t load.
>>
>> Any solution?
>>
>> — Gnarlie
>>
>>
>> --
>> 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 <http://googlegroups.com/>.
>> To post to this group, send email to mod...@ <>googlegroups.com
>> <http://googlegroups.com/>.
>> Visit this group at https://groups.google.com/group/modwsgi
>> <https://groups.google.com/group/modwsgi>.
>> For more options, visit https://groups.google.com/d/optout
>> <https://groups.google.com/d/optout>.
>
>
> --
> 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 [email protected]
> <mailto:[email protected]>.
> To post to this group, send email to [email protected]
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/modwsgi
> <https://groups.google.com/group/modwsgi>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.