diffuzers: "UnicodeDecodeError: 'charmap' codec can't decode..." setup.py
Error message: “subprocess-exited-with-error”
The error message “subprocess-exited-with-error” indicates that a subprocess being run by pip has failed. Specifically, in this case, it seems to be related to an issue with the metadata generation of a Python package.
The error message further explains that when attempting to read the long_description element in the setup.py file, a UnicodeDecodeError occurred. This usually happens when the character encoding is not specified correctly.
To resolve this issue, make sure that the character encoding is specified correctly when reading the long_description element in the setup.py file. For instance, if your file is assumed to be encoded with UTF-8, you can use the following code:
with open('README.md', encoding='utf-8') as f: long_description = f.read()
About this issue
- Original URL
- State: open
- Created a year ago
- Comments: 15 (2 by maintainers)
Ok, so I just figured it out. For some weird reason, the command prompt/powershell window isn’t allowed to be admin. If I run the command from a normal cmd prompt it appears to work…