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
{{ message }}
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.
I am using Windows 10, and the language is set to Chinese. The default encoding for Python opening files is gbk, but it should be specified as utf8.
Output
➜ dephell deps convert
ERROR UnicodeDecodeError: 'gbk' codec can't decode byte 0x82 in position 553: illegal multibyte sequence
Steps to reproduce
$ git clone https://github.com/abersheeran/websocks
$ cd websocks
$ git checkout dev
$ dephell deps convert
Traceback
➜ dephell deps convert --traceback
ERROR UnicodeDecodeError: 'gbk' codec can't decode byte 0x82 in position 553: illegal multibyte sequence
Traceback (most recent call last):
File "c:\users\abers\.local\pipx\venvs\dephell\lib\site-packages\dephell\cli.py", line 66, in main
result = handler()
File "c:\users\abers\.local\pipx\venvs\dephell\lib\site-packages\dephell\commands\deps_convert.py", line 91, in __call__
dumper.dump(path=self.config['to']['path'], **dumper_kwargs)
File "c:\users\abers\.local\pipx\venvs\dephell\lib\site-packages\dephell\converters\base.py", line 74, in dump
content = self.dumps(reqs=reqs, content=content, project=project)
File "c:\users\abers\.local\pipx\venvs\dephell\lib\site-packages\dephell\converters\setuppy.py", line 230, in dumps
readme = project.readme.to_rst().as_code()
File "c:\users\abers\.local\pipx\venvs\dephell\lib\site-packages\dephell\controllers\_readme.py", line 87, in to_rst
new_path.write_text(self.as_rst())
File "c:\users\abers\.local\pipx\venvs\dephell\lib\site-packages\dephell\controllers\_readme.py", line 76, in as_rst
content = convert(self.path.read_text())
File "c:\users\abers\appdata\local\programs\python\python37\lib\pathlib.py", line 1207, in read_text
return f.read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0x82 in position 553: illegal multibyte sequence
Config
[tool.dephell.main]
from = {format = "poetry", path = "pyproject.toml"}
to = {format = "setuppy", path = "setup.py"}
Short description
I am using Windows 10, and the language is set to Chinese. The default encoding for Python opening files is gbk, but it should be specified as utf8.
Output
Steps to reproduce
$ git clone https://github.com/abersheeran/websocks $ cd websocks $ git checkout dev $ dephell deps convert
Traceback
Config
Versions
The text was updated successfully, but these errors were encountered: