You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Under windows with Chinese, python will try to read the file with GBK when encoding is not assigned., but the README.md file is created under UTF-8. That caused the error you mentioned.
Please download the source file, try changing the setup.py in the root folder
And avoid installing them into a folder with Chinese character.
You may install under the README.md's instruction, which is pip3 install .
If this worked, you can create a pull request.
When you edited the README.md, setup.py or any other codes, please save it with Unicode, not GBK 18030.
PS C:\Users\eshion>pip3 install dpt-rp1-py
Collecting dpt-rp1-py
Using cached dpt-rp1-py-0.1.11.tar.gz (28 kB)
ERROR: Command errored out with exit status 1:
command: 'C:\Users\eshion\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\eshion\AppData\Local\Temp\pip-install-svitqk_8\dpt-rp1-py\setup.py'"'"'; file='"'"'C:\Users\eshion\AppData\Local\Temp\pip-install-svitqk_8\dpt-rp1-py\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\eshion\AppData\Local\Temp\pip-pip-egg-info-f7qtiap4'
cwd: C:\Users\eshion\AppData\Local\Temp\pip-install-svitqk_8\dpt-rp1-py
Complete output (7 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\eshion\AppData\Local\Temp\pip-install-svitqk_8\dpt-rp1-py\setup.py", line 51, in
long_description=readme(),
File "C:\Users\eshion\AppData\Local\Temp\pip-install-svitqk_8\dpt-rp1-py\setup.py", line 27, in readme
return f.read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa6 in position 1950: illegal multibyte sequence
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
The text was updated successfully, but these errors were encountered: