question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unknown encoding error (cp65001) in windows exe version

See original GitHub issue

DVC version: dvc-0.41.3.exe windows exe

Error message:

C:\Users\LexSong> dvc

C:\PROGRA~2\DATAVE~1\aliyunsdkcore\vendored\requests\packages\urllib3\contrib\socks.py:37: DependencyWarning: SOCKS support in urllib3 requires the installation of optional dependencies: specifically, PySocks.  For more information, see https://urllib3.readthedocs.io/en/latest/contrib.html#socks-proxies
Traceback (most recent call last):
  File "logging\__init__.py", line 868, in emit
  File "logging\__init__.py", line 741, in format
  File "dvc\logger.py", line 51, in format
  File "dvc\logger.py", line 149, in _progress_aware
  File "dvc\progress.py", line 36, in clearln
  File "dvc\progress.py", line 117, in _print
  File "site-packages\colorama\ansitowin32.py", line 41, in write
  File "site-packages\colorama\ansitowin32.py", line 162, in write
  File "site-packages\colorama\ansitowin32.py", line 187, in write_and_convert
  File "site-packages\colorama\ansitowin32.py", line 195, in write_plain_text
LookupError: unknown encoding: cp65001
Logged from file cli.py, line 83
Traceback (most recent call last):
  File "logging\__init__.py", line 868, in emit
  File "logging\__init__.py", line 741, in format
  File "dvc\logger.py", line 51, in format
  File "dvc\logger.py", line 149, in _progress_aware
  File "dvc\progress.py", line 36, in clearln
  File "dvc\progress.py", line 117, in _print
  File "site-packages\colorama\ansitowin32.py", line 41, in write
  File "site-packages\colorama\ansitowin32.py", line 162, in write
  File "site-packages\colorama\ansitowin32.py", line 187, in write_and_convert
  File "site-packages\colorama\ansitowin32.py", line 195, in write_plain_text
LookupError: unknown encoding: cp65001
Logged from file main.py, line 48

There is an encoding error in colorama when the code page is cp65001(UTF-8). There is no issue when I install with pip install on Anaconda.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
LexSongcommented, Jun 28, 2019

Thank you! I can confirm this issue have been fixed in 0.50.1 released exe.

1reaction
LexSongcommented, Jun 21, 2019

By the way, my anaconda environment is here:

name: dvc
channels:
  - defaults
  - conda-forge
dependencies:
  - asn1crypto=0.24.0=py37_0
  - ca-certificates=2019.5.15=0
  - certifi=2019.6.16=py37_0
  - cffi=1.12.3=py37h7a1dbc1_0
  - cryptography=2.7=py37h7a1dbc1_0
  - dulwich=0.19.11=py37hfa6e2cd_0
  - idna=2.8=py37_0
  - openssl=1.1.1c=he774522_1
  - pip=19.1.1=py37_0
  - pycparser=2.19=py37_0
  - pyopenssl=19.0.0=py37_0
  - pysocks=1.7.0=py37_0
  - python=3.7.3=h8c8aaf0_1
  - setuptools=41.0.1=py37_0
  - six=1.12.0=py37_0
  - sqlite=3.28.0=he774522_0
  - urllib3=1.25.3=py37_0
  - vc=14.1=h0510ff6_4
  - vs2015_runtime=14.15.26706=h3a45250_4
  - wheel=0.33.4=py37_0
  - win_inet_pton=1.1.0=py37_0
  - wincertstore=0.2=py37_0
  - pip:
    - appdirs==1.4.3
    - asciimatics==1.11.0
    - chardet==3.0.4
    - colorama==0.4.1
    - configobj==5.0.6
    - configparser==3.7.4
    - contextlib2==0.5.5
    - decorator==4.4.0
    - distro==1.4.0
    - dvc==0.41.3
    - future==0.17.1
    - gitdb2==2.0.5
    - gitpython==2.1.11
    - grandalf==0.6
    - humanize==0.5.1
    - inflect==2.1.0
    - jsonpath-ng==1.4.3
    - nanotime==0.5.2
    - networkx==2.3
    - pillow==6.0.0
    - ply==3.11
    - pyasn1==0.4.5
    - pyfiglet==0.8.post1
    - pyparsing==2.4.0
    - pypiwin32==223
    - pywin32==224
    - requests==2.22.0
    - ruamel-yaml==0.15.97
    - schema==0.7.0
    - smmap2==2.0.5
    - treelib==1.5.5
    - wcwidth==0.1.7
    - zc-lockfile==1.4
prefix: C:\Miniconda3\envs\dvc

Maybe it will be helpful.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix “LookupError: unknown encoding: cp65001” error in Python
If you're getting this error, you are probably running a legacy version of Python (usually Python 2.x) on Windows. But first, what is...
Read more >
Plesk Migrator fails to copy website data: unknown encoding
Failed to copy web files for subscription 'example.com' Migration tools tried to perform operation in 3 attempts: unknown encoding: cp65001. Error in Plesk ......
Read more >
Python 3 doesn't support cp65001 as the OEM code page
The following scenario GPFs on Windows Vista using cmd.exe. ... sys standard streams LookupError: unknown encoding: cp65001 This application ...
Read more >
Out of date embedded esptool.py on Windows - Bitbucket
When I do the update manually, the version that executes is ... The error message “ unknown encoding: cp65001” is caused by Python...
Read more >
Python - unknown encoding: cp65001 [duplicate] - DevPress
Answer a question I have installed python 2(64 bit), on windows 8.1 (64 bit) and wanted to know pip version and for that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found