Python Flask App Stuck in Waiting for localhost RRS feed

  • Question

  • User2118594139 posted

    I'm trying to run a flask app on a Server 2016 machine with IIS v10 and the httpplatformhander, here's my web.config:

    <?xml version="1.0" encoding="utf-8"?>
          <add name="PythonHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified" requireAccess="Script" />
        <httpPlatform processPath="C:\ProgramData\Anaconda3\python.exe" 
            <environmentVariable name="SERVER_PORT" value="%HTTP_PLATFORM_PORT%" />

    When I run `python application.py` in cmd it correctly opens my 'Hello, World!' app, but I can't seem to get it to work through the httpPlatformHandler.  I added IIS_IUSRS to the security options for my test_app folder and the anaconda3 folder.  Is there a location where I can see more detailed logs for diagnostics?

    Monday, January 27, 2020 10:14 PM

All replies

  • User-1388099643 posted

    I have the same problem.

    You can see error in log file. I got this:

    AttributeError: 'NoneType' object has no attribute 'isatty': sys.stdin.isatty()

    Traceback is in this line:


    Does flask needs something additional except httpPlatformHandler to run on IIS?

    Friday, January 31, 2020 11:42 AM