0

Error occurred while reading WSGI handler: Traceback (most recent call last):File "C:\ProgramData\Anaconda3\envs\Dashboard\lib\site-packages\wfastcgi.py", line 791, in mainenv, handler = read_wsgi_handler(response.physical_path)File "C:\ProgramData\Anaconda3\envs\Dashboard\lib\site-packages\wfastcgi.py", line 633, in read_wsgi_handlerhandler = get_wsgi_handler(os.getenv("WSGI_HANDLER"))File "C:\ProgramData\Anaconda3\envs\Dashboard\lib\site-packages\wfastcgi.py", line 603, in get_wsgi_handlerhandler = getattr(handler, name) AttributeError: module 'main' has no attribute 'app' StdOut: StdErr

I have successfully deployed a Flask application on the same server by the help of this resource. But now I am getting the above error. Serving on local machine the code runs fine. Please suggest if their is other way around for deploying panel application on IIS Server

My code for Panel Dashboard is as follows:( I have only included the important part of the code)

template3 = pn.template.FastListTemplate(
    title='Production Dashboard',
    logo='logo.jpg',
    sidebar=[pn.pane.JPG('logo.jpg', sizing_mode='scale_both'),
             pn.pane.Markdown("# "),
             pn.pane.Markdown(
                 "  "),
             pn.pane.Markdown("### Settings"), month_slider, plant_selection],
      main=[pn.Row(pn.Column(yaxis_section4, params_line_plot1.panel(width=700), margin=(0, 25)),
                 pn.Column(yaxis_params, params_table.panel(width=500))),
          pn.Row(pn.Column(yaxis_params2, yaxis_section2, params_bar_plot.panel(width=300), margin=(0,     25))),
          pn.Row(pn.Column(yaxis_section7, spc_plot1.panel(width=700), margin=(0, 25)),
                 pn.Column(yaxis_section6, spc_bar_plot.panel(width=300), margin=(0, 35)))],
    accent_base_color="#0E4474",
    header_background="#0E4474",
)
template3.servable();

if __name__ == "__main__":
    template3.show()`
James Z
  • 12,209
  • 10
  • 24
  • 44
  • May [this answer](https://stackoverflow.com/questions/55708257/flask-attributeerror-module-object-has-no-attribute-app) could help you. – TengFeiXie Feb 07 '23 at 03:22

0 Answers0