1👍
You can try adding:
WSGIApplicationGroup %{GLOBAL}
but I suspect the problem is that since the web application runs as special Apache user, without inheriting anything from your personal user environment, it knows nothing about how to interact with your UI session.
Source:stackexchange.com