bndr / pipreqs

pipreqs - Generate pip requirements.txt file based on imports of any project. Looking for maintainers to move this project forward.
Apache License 2.0
6.38k stars 388 forks source link

UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 10761: character maps to <undefined> #266

Closed ickqy closed 3 years ago

ickqy commented 3 years ago

Im trying to create a requirements.txt file, but every single time ive tried ive gotten this output

UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 10761: character maps to <undefined>

Ive tried every single way i could fix this but nothing, can someone help? thx :)

wasi-master commented 3 years ago

Same error

jvherck commented 3 years ago

I get the same error too.

UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 4844: character maps to <undefined>

JonasHach commented 3 years ago

Similar error for me

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb1 in position 81: invalid start byte

isaac43 commented 3 years ago

Use --encoding utf-8 in the command

alan-barzilay commented 3 years ago

I believe this is a duplicate from #241, I have already devised a fix that enforces utf-8 as the default but I havent had the time to implement it yet. I will be closing this issue since it seems to be solved given the number of likes isaac43 received. Feel free to reopen the issue if the problem persists