elchicodepython / elchicodepython/python-nocodb
"UnicodeDecodeError" during Pip install on certain Environments
- Dominant language
- Python
- Stars
- 78
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Description
Just wanted to bring this issue up - on certain environments, it seems that running "pip install nocodb" failes with an error that looks something like:
`UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 2436: character maps to `
Tracing it back, it seems the issue has to do with this line in setup.py lacking deliberate encoding:
`long_description=open('README.md').read(),`
I was able to resolve the issue by simply specifying UTF-8 encoding like so:
`long_description=open('README.md', encoding='utf-8').read(),`
And the pip install worked fine. Just wanted to let you know!
Contributor guide
No contributing guide indexed for this repository
Research direction
Inspect setup.py and the README.md loading used for long_description, then reproduce the pip install failure in an environment using a non-UTF-8 default encoding. Done means installation succeeds without the reported UnicodeDecodeError while preserving the package's long description.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100