#582 AssertionError: assert sys.modules[modname] is old_mod

open
Mark Hammond
pythonwin (176)
5
2012-06-07
2012-03-02
honyczek
No

This problem is opened at ID #2905909.

I want to attach file, which tells what is in old_mod and mod variables.

This problem has been described by me at: http://stackoverflow.com/questions/9479239/running-two-django-apps-on-apache-with-mod-auth-sspi-and-mod-wsgi

Discussion

  • honyczek
    honyczek
    2012-03-02

    Log file and modified pywintypes.py

     
    Attachments
  • honyczek
    honyczek
    2012-06-07

    • assigned_to: nobody --> mhammond
     
  • Roger Upole
    Roger Upole
    2012-10-02

    It appears mod-wsgi is using multiple python interpreters, which pywin32 doesn't support.
    Just commenting out the assert may lead to a number of problems when the second
    interpreter uses objects created in the first.

    However, this same error can also happen when reloading pywintypes in python 3.
    I'll see if I can find a way to make sure reloading works.