Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem saving gant diagram #132

Open
JonAlvarezOgiza opened this issue Oct 11, 2023 · 4 comments
Open

Problem saving gant diagram #132

JonAlvarezOgiza opened this issue Oct 11, 2023 · 4 comments
Labels
question Further information is requested

Comments

@JonAlvarezOgiza
Copy link

JonAlvarezOgiza commented Oct 11, 2023

Hi, I am trying to save the gantt diagram generated by the function render_gantt_plotly in a folder of the project. The problem I am encountering is that if i specify the fig_filename and the format to png in the fig.write_image function and i get the following error:

raise ValueError(startup_response.get("message", "Failed to start Kaleido subprocess"))
ValueError: --plotlyjs argument is not a valid URL or file path: 

No matter what i change that i keep getting this error all the time and i can't figure out how to fix it.
Any help would be appreciated.
Thanks

@tpaviot
Copy link
Owner

tpaviot commented Oct 11, 2023

You need the kaleido package, see https://github.com/tpaviot/ProcessScheduler/blob/master/requirements.txt

@tpaviot tpaviot added the question Further information is requested label Oct 11, 2023
@JonAlvarezOgiza
Copy link
Author

I already have it, and it still shows the same error

@tpaviot
Copy link
Owner

tpaviot commented Oct 12, 2023

I cannot reproduce the issue. Are you on Windows or Linux? Googling around points to the same issue here: plotly/Kaleido#57

Do you have spaces or accents in your paths/filenames?

@JonAlvarezOgiza
Copy link
Author

JonAlvarezOgiza commented Oct 16, 2023

I did, when i replaced the accents it didn´t show the error anymore but it gets stuck on the render_gantt_plotly function as it was iterating over it forever. It only happens when i add the fig_filename parameter while calling the function. Using html_filename parameter it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants