2👍
It seem to be a pywin32 error, answered here:
Multiple django sites on Apache / Windows / mod_wsgi – problem with win32
There is some python version check, which does something with modules and raises:
AssertionError: assert sys.modules[modname] is old_mod
Bug is reported, but not resolved:
https://sourceforge.net/tracker/?func=detail&aid=2905909&group_id=78018&atid=551954
https://sourceforge.net/tracker/?func=detail&aid=3496224&group_id=78018&atid=551954
Temporary solution is comment out two lines in win32/lib/pywintypes.py:
if sys.version_info < (3,0):
#next two lines are problematic!!!!!
#assert sys.modules[modname] is old_mod
#assert mod is old_mod
pass
else:
assert sys.modules[modname] is not old_mod
assert sys.modules[modname] is mod
# as above - re-reset to the *old* module object then update globs.
sys.modules[modname] = old_mod
globs.update(mod.__dict__)
Source:stackexchange.com