Made some changes to resolve issue #195 on our end:
Changed pyproject.toml to install kaleido version 0.1.0.post1 when istalling pyroll-core[plotly] on Windows.
this could also be changed to also check wether it is Windows 11, as its supposedly only an issue with that, but i cant confirm/ test, wheter or not this isnt also occuring on other windows versions.
Changed __init__.py to, when checking for available plotting backend, also raise an error on windows machines, if the wrong kaleido version is installed:
if the wrong kaleido version is installed this will now raise ValueError("Kaleido Version 0.1.0.post1 is required to use plotly on Windows machines") when importing pyroll-core
if plotly but no kaleido is installed the message print("The kaleido package is required if plotly is to be used") is output when importing pyroll-core
this could also be changed to raise an error here, as otherwise the error will occur when trying to export a image from plotly using to_image
Made some changes to resolve issue #195 on our end:
Changed
pyproject.toml
to install kaleido version 0.1.0.post1 when istallingpyroll-core[plotly]
on Windows.Changed
__init__.py
to, when checking for available plotting backend, also raise an error on windows machines, if the wrong kaleido version is installed:ValueError("Kaleido Version 0.1.0.post1 is required to use plotly on Windows machines")
when importing pyroll-coreprint("The kaleido package is required if plotly is to be used")
is output when importing pyroll-coreto_image