C:\Users\14497\PycharmProjects\pythonProject\venv\Scripts\python.exe C:\Users\14497\PycharmProjects\pythonProject\4.py
Building prefix dict from the default dictionary ...
Loading model from cache C:\Users\14497\AppData\Local\Temp\jieba.cache
Loading model cost 0.611 seconds.
Prefix dict has been built successfully.
Traceback (most recent call last):
File "C:\Users\14497\PycharmProjects\pythonProject\4.py", line 46, in <module>
generate_wordcloud(text_path, image_path)
File "C:\Users\14497\PycharmProjects\pythonProject\4.py", line 28, in generate_wordcloud
wordcloud.generate(word_string)
File "C:\Users\14497\PycharmProjects\pythonProject\venv\lib\site-packages\wordcloud\wordcloud.py", line 639, in generate
return self.generate_from_text(text)
File "C:\Users\14497\PycharmProjects\pythonProject\venv\lib\site-packages\wordcloud\wordcloud.py", line 621, in generate_from_text
self.generate_from_frequencies(words)
File "C:\Users\14497\PycharmProjects\pythonProject\venv\lib\site-packages\wordcloud\wordcloud.py", line 454, in generate_from_frequencies
max_font_size=self.height)
File "C:\Users\14497\PycharmProjects\pythonProject\venv\lib\site-packages\wordcloud\wordcloud.py", line 508, in generate_from_frequencies
box_size = draw.textbbox((0, 0), word, font=transposed_font, anchor="lt")
File "C:\Users\14497\PycharmProjects\pythonProject\venv\lib\site-packages\PIL\ImageDraw.py", line 651, in textbbox
raise ValueError("Only supported for TrueType fonts")
ValueError: Only supported for TrueType fonts