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

Issue when using the "Lancer l'analyse des IFs" feature #1

Closed
BaptisteRefalo opened this issue May 24, 2024 · 4 comments
Closed

Issue when using the "Lancer l'analyse des IFs" feature #1

BaptisteRefalo opened this issue May 24, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@BaptisteRefalo
Copy link
Collaborator

Using this feature does not give any result and the app seems to continuously working without doing anything.

Issue origin in code:
BM_PubAnalysis.py -> if_analysis() -> _plot_if_analysis() -> _create_save_barchart() -> _save_dept_barchart()

dept_png_file_path = Path(if_analysis_folder_path) / Path(file_name + ".png")
barchart.write_image(dept_png_file_path)
-> this issue seems to come from the line above: saving the barchart in a png file. The rest of the code is never executed
-> commenting those 2 lines removes the issue

@BaptisteRefalo
Copy link
Collaborator Author

Solution to this issue found:
https://stackoverflow.com/questions/69016568/unable-to-export-plotly-images-to-png-with-kaleido

-> This is a "kaleido 0.2" problem

@BaptisteRefalo
Copy link
Collaborator Author

I tested using the kaleido v0.1.* and it worked

@BaptisteRefalo
Copy link
Collaborator Author

plotly/Kaleido#170

TickyWill pushed a commit that referenced this issue May 26, 2024
@TickyWill
Copy link
Owner

Requirements.txt updated by changing kaleido version from v0.2.# to v0.1.*
Thanks for reporting the issue and its solution !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants