Closed futuremotiondev closed 11 months ago
You have to figure out your file encoding to fix this issue, it is using a character not recognized by the default encoding. A good first attempt is to try utf-8
I don't exactly understand how to do that. Do you mean use the --encoding
flag for pipreqs
and set it to UTF-8?
Or is there another setting for python itself that I need to change? I thought I was using UTF-8 for everything.
Also, how can I find out exactly what character is not being recognized?
I apologize, but can you give me just a little more information?
Do you mean use the --encoding flag for pipreqs and set it to UTF-8?
yes, --encoding="utf-8". No idea why this isnt the default but it will be starting from next release
Also, how can I find out exactly what character is not being recognized?
Sadly this error message wasnt that helpful, the character is this one: byte 0x81 in position 24359
. But that doesn't really help us haha maybe if you knew the file that is raising this issue.
btw, from your output I guess you are using this encoding at the moment: cp1252
Sorry I cant be of more help :/ maybe running with skip-errors could give you at least a partial requirements file if changing the encoding doesn't work? I'm out of ideas haha but good luck
Here are my commands and output:
The VENV is using:
Python 3.11.6 (tags/v3.11.6:8b6ee5b, Oct 2 2023, 14:57:12) [MSC v.1935 64 bit (AMD64)] on win32
Here are the dependencies from running
pip list
:Any way to get this working properly? Can I help with reproducing this error? Any assistance would be warmly welcomed.
Thanks, Jay