Hello,
When using Windows IIS to deploy my Flask app using Plotly with Orca I receive the following error. This error does not happen when running the program using the VS Code editor via werkzeug. I have no idea what might be wrong or how to fix it and I do not know how to save the plotly chart to image any other way or how to access the chart via the matplotlib and save to BytesIO etc. All help appreciated!
Error occurred:
Traceback (most recent call last):
File β.\app\report\views.pyβ, line 2227, in generate_technical_availability_report
pio.write_image(fig[βfigβ], os.path.join(os.path.dirname(file), βstatic\images{}.pngβ).format(fig[βtitleβ]))
File βc:\python36\lib\site-packages\plotly\io_orca.pyβ, line 1513, in write_image
validate=validate)
File βc:\python36\lib\site-packages\plotly\io_orca.pyβ, line 1295, in to_image
ensure_server()
File βc:\python36\lib\site-packages\plotly\io_orca.pyβ, line 1202, in ensure_server
stdout=DEVNULL)
File βc:\python36\lib\subprocess.pyβ, line 665, in init
errread, errwrite) = self._get_handles(stdin, stdout, stderr)
File βc:\python36\lib\subprocess.pyβ, line 919, in _get_handles
errwrite = _winapi.GetStdHandle(_winapi.STD_ERROR_HANDLE)
OSError: [WinError 6] The handle is invalid