FWIW, you shouldn't need the 'develop' version if on Linux as there are no 
changes in it that would make any difference compared to installing the latest 
official tagged version from PyPi.

> On 19 Oct 2020, at 5:23 pm, Paul White <[email protected]> wrote:
> 
> Hi Graham,
> 
> Thanks very much for your answer.
> I found a solution; I used your answer here 
> https://github.com/GrahamDumpleton/mod_wsgi/issues/559 
> <https://github.com/GrahamDumpleton/mod_wsgi/issues/559> by installing your 
> develop.zip and then copied the result of `mod_wsgi-express module-config` 
> into wsgi.so.
> This fixed the problem.
> 
> Being Debian, there are two versions of python on the server, but using 
> WSGIPythonHome only worked once I installed develop.zip.
> 
> Thanks for getting back to me, and thanks for all the work you put into this.
> 
> On Monday, 19 October 2020 at 00:03:37 UTC+2 Graham Dumpleton wrote:
> What is you mod_wsgi configuration?
> 
> Are you using a Python virtual environment, or pointing explicitly at a per 
> user site packages directory?
> 
> How are you specifying the location of the Python virtual environment?
> 
> It looks like you are perhaps mixing things from different Python versions 
> still.
> 
> When changing Python version used by mod_wsgi, it can also sometimes help to 
> do a complete stop and start of Apache, not just a reload or restart.
> 
> Graham 
> 
> 
>> On 19 Oct 2020, at 12:26 am, Paul White <[email protected] 
>> <applewebdata://E43090CB-0DAE-47A0-8061-EB7ADEB861D6>> wrote:
>> 
> 
>> 
>> Good Morning,
>> 
>> I recently upgraded my server from Debian Stretch to Debian Buster, which 
>> changed the version of Python to 3.7. This broke the installation of 
>> mod-wsgi, which I knew would happen.
>> I have now installed mod_wsgi 4.7.1 and successfully ran a minimal python 
>> script to prove the installation.
>> 
>> Adding the following to the script causes it to fail:-
>> 
>> import math
>> 
>> 
>> This causes the error in the title.
>> I can successfully import other built in modules such as sys.
>> I can successfully import math in the python shell and in a script run 
>> directly by python3.
>> 
>> Does anybody have any idea what could be going on here?
>> 
>> Thanks
>> Paul
>> 
> 
>> -- 
>> 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] 
>> <applewebdata://E43090CB-0DAE-47A0-8061-EB7ADEB861D6>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/modwsgi/550f9094-74d3-4e49-9c75-81ce2ea12317n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/modwsgi/550f9094-74d3-4e49-9c75-81ce2ea12317n%40googlegroups.com?utm_medium=email&utm_source=footer>.
> 
> 
> -- 
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/modwsgi/aa6d1402-9d09-4dbd-a2e3-1340e9d9df5en%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/modwsgi/aa6d1402-9d09-4dbd-a2e3-1340e9d9df5en%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/modwsgi/6FC44F64-F2C0-48CA-8CFA-20D94890A0C9%40gmail.com.

Reply via email to