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

fail to when launchin "Lancer l'analyse des mots clefs" #2

Open
Bertin-fap opened this issue May 26, 2024 · 2 comments
Open

fail to when launchin "Lancer l'analyse des mots clefs" #2

Bertin-fap opened this issue May 26, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Bertin-fap
Copy link
Collaborator

When launching "Lancer l'analyse des mots clefs" the following error occurs in the wordcloud package:

File "C:\Users\franc\PyVenv\BiblioMeter\venv\lib\site-packages\wordcloud\wordcloud.py", line 106, in init
self.colormap = plt.cm.get_cmap(colormap)

This issue is due to the release of matplotlib 3.9.0 on 16-05-2024. This version is no more compatible with wordcloud. For more detail
see : fix AttributeError when using matplotlib>=3.9.0 by gly11 · Pull Request #57 · luciddreamer-cvlab/LucidDreamer (github.com)](luciddreamer-cvlab/LucidDreamer@bb777f4)

To fix this bug I raise the following issue:
amueller/word_cloud#765

Before the bug is fixed we have to use the version 3.8.0 of matplotlib so the requirements.txt should read:
auto_py_to_exe==2.42.0
kaleido==0.2.1
plotly==5.17.0
screeninfo==0.8.1
matplotlib==3.8.4
wordcloud==1.9.2

@TickyWill
Copy link
Owner

requirements.txt updated by adding matplotlib==3.8.4 before wordcloud==1.9.2 to force matplotlib version to wordcloud.
This is a temporary solution untill the incompatibility between wordcloud v1.9.2 and matplotlib v3.9.0 is solved by owners.
Please take care of kaleido version (see https://github.com/TickyWill/BiblioMeter/issues/1).
Thanks for reporting this issue and its solution.

@BaptisteRefalo
Copy link
Collaborator

The wordcloud version 1.9.3 works well with the version 3.9.0 of matplotlib -> I no longer have this issue with that fix

@BaptisteRefalo BaptisteRefalo added the bug Something isn't working label May 27, 2024
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

3 participants