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]> 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] 
> <mailto:[email protected]>.
> 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/modwsgi/5F40CFF0-DE3D-4066-BA55-69B13C49FF45%40gmail.com.

Reply via email to