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

fix: setup.py to read README.md with UTF-8 encoding #59 #60

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

aaryan182
Copy link

This fix addresses a UnicodeDecodeError that occurred while running pip install -e ".[dev]" --verbose. The issue was caused by Python using the default system encoding when reading README.md in setup.py which led to decoding failures on certain systems (especially Windows).

Fix Details

Explicitly specify encoding="utf-8" when reading README.md in setup.py.
This ensures the file is correctly read on all operating systems preventing installation failures.

Testing

Verified the fix by running pip install -e ".[dev]" --verbose ensuring the installation completes successfully.

Related Issue

Fixes #59

Copy link
Contributor

@shivam-singhal shivam-singhal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aaryan182 great work here! had some changes in the project structure, can you rebase and confirm that everything works?

Also, could you include screenshots of the error + fixed run, as well as the logo rounded edges visuals?

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

Successfully merging this pull request may close these issues.

UnicodeDecodeError while reading README.md in setup.py
2 participants