Quantcast
Channel: FastCGI Module
Viewing all articles
Browse latest Browse all 205

Error Flask/IIS "%" Could not be imported (solved!)

$
0
0

Hi there.

I'm trying to replicate a IIS/Flask configuration/app on another laptop, but a problem is displayed when i try to call the website.

For example i did this app test http://netdot.co/2015/03/09/flask-on-iis/ and works ok.

but when i trying to replicate all my settings and call the website this error is displayed:

Error occurred while reading WSGI handler:

Traceback (most recent call last):
  File "C:\inetpub\wwwroot\MyWebSite\wfastcgi.py", line 711, in main
    env, handler = read_wsgi_handler(response.physical_path)
  File "C:\inetpub\wwwroot\MyWebSite\wfastcgi.py", line 568, in read_wsgi_handler
    return env, get_wsgi_handler(handler_name)
  File "C:\inetpub\wwwroot\MyWebSite\wfastcgi.py", line 551, in get_wsgi_handler
    raise ValueError('"%s" could not be imported' % handler_name)
ValueError: "runserver.app" could not be imported


StdOut: 

StdErr: 

and works on another pc and the people can access to the website allocated on my laptop(win 8.1), but on this new pc (win 7) i cant access.

here's the runserver.py

from os import environ

from QPX_Test import app

if __name__ == "__main__":
    app.run()

on the handler i added 

handler mappings

I don't know what  can i do for solve these. :S

Thanks in advance!


Viewing all articles
Browse latest Browse all 205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>