Skip to content
This repository has been archived by the owner on Oct 2, 2020. It is now read-only.

UnicodeDecodeError: 'charmap' #25

Closed
cdrakke opened this issue Mar 21, 2020 · 2 comments · Fixed by #26
Closed

UnicodeDecodeError: 'charmap' #25

cdrakke opened this issue Mar 21, 2020 · 2 comments · Fixed by #26

Comments

@cdrakke
Copy link

cdrakke commented Mar 21, 2020

C:\Users\Calvi>pip install horrible-downloader
Collecting horrible-downloader
Using cached horrible-downloader-1.0.4.tar.gz (11 kB)
ERROR: Command errored out with exit status 1:
command: 'c:\users\calvi\appdata\local\programs\python\python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Calvi\AppData\Local\Temp\pip-install-3348u_dx\horrible-downloader\setup.py'"'"'; file='"'"'C:\Users\Calvi\AppData\Local\Temp\pip-install-3348u_dx\horrible-downloader\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\Calvi\AppData\Local\Temp\pip-install-3348u_dx\horrible-downloader\pip-egg-info'
cwd: C:\Users\Calvi\AppData\Local\Temp\pip-install-3348u_dx\horrible-downloader
Complete output (7 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Calvi\AppData\Local\Temp\pip-install-3348u_dx\horrible-downloader\setup.py", line 7, in
long_description = f.read()
File "c:\users\calvi\appdata\local\programs\python\python38-32\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 5415: character maps to
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

@cdrakke
Copy link
Author

cdrakke commented Mar 21, 2020

I found a solution myself but idk if its even decent or just plain bad lmao

! Make sure you have node installed.

-> Clone or download the repo
-> Extract it and open cmd then cd to that directory
-> Edit setup.py

FROM:

with open("README.md", 'r') as f:
    long_description = f.read()

TO:

with open("README.md", 'r', encoding='utf-8') as f:
    long_description = f.read()

-> Now go back to the cmd. Be sure that its directory is where you can access setup.py
-> Run python setup.py install

It will have an error: Warning: 'classifiers' should be a list, got type 'tuple'
But it will still install.
I think the creator should update it.

@mtshrmn
Copy link
Owner

mtshrmn commented Mar 21, 2020

Thank you for submitting this issue. It's already a known issue. (see #22).
I've been working on this today, please expect a new version to come out today and fix the problem.

@mtshrmn mtshrmn closed this as completed Mar 21, 2020
@mtshrmn mtshrmn linked a pull request Mar 21, 2020 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants