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

file stopwords is missing in the final wheel #764

Open
hubutui opened this issue May 14, 2024 · 0 comments
Open

file stopwords is missing in the final wheel #764

hubutui opened this issue May 14, 2024 · 0 comments

Comments

@hubutui
Copy link

hubutui commented May 14, 2024

I build and install word_cloud 1.9.3 with:

python -m build --wheel --no-isolation
python -m installer dist/*.whl

and I got this error:

  File "/usr/lib/python3.12/site-packages/wordcloud/wordcloud.py", line 35, in <module>
    STOPWORDS = set(map(str.strip, open(os.path.join(FILE, 'stopwords')).readlines()))
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.12/site-packages/wordcloud/stopwords'

quick fix, add these lines to MANIFEST.in:

include wordcloud/DroidSansMono.ttf
include wordcloud/stopwords
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant