I am seeing this in my propman_error log on my apache2 server:
[Sat Jun 08 15:31:58.095611 2024] [wsgi:error] [pid 49889:tid 124114425611968] [remote 13.64.211.38:41818] mod_wsgi (pid=49889): Exception occurred processing WSGI script '/var/www/propman/propman.wsgi'.
[Sat Jun 08 15:31:58.095917 2024] [wsgi:error] [pid 49889:tid 124114425611968] [remote 13.64.211.38:41818] TypeError: 'NoneType' object is not callable
It is occuring in my wsgi file:
import logging
import sys
logging.basicConfig(format='%(asctime)s - %(levelname)s - %(message)s - %(pathname)s:%(lineno)d', level=logging.DEBUG)
logging.basicConfig(stream=sys.stderr)
sys.path.insert(0, '/var/www/propman/')
activate_this = '/var/www/propman/.venv/bin/activate_this.py'
with open(activate_this) as file:
exec(file.read(), dict(__file__=activate_this))
# noinspection PyUnresolvedReferences
from main import app as application # noqa: E402
but there is no line number. I am just starting out with apache and python flask integration and hopefully there is better error reporting!
BTW, This code works fine when running from the venv and I am not seeing any errors or warnings in the apache error log itself