-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
charmap error! #30
Comments
So I'm not sure which of these work, or if they worked together.
|
Any luck? |
hello, yes! the second one worked (to get rid of that line). sorry it took me awhile, we're from different time zones. |
I had the same issue, I believe I just added "shell=True" into the parentheses on line 111 of pytesseract.py |
I had to edit my environmental variables. edit the variable path, then add "C:\Program Files (86x)\Tesseract-OCR\tesseract.exe" I've been getting tons of errors so glad to hear I'm not alone |
yeah I have no idea where to put that exactly :? oh lol, I have no idea what I'm doing just trying my best! |
type in your search bar "evnironmental varibles" and select the first thing that pops up. Then select Environment Variables on the bottom of the window. In the bottom half of the next window, find the varible path in the left column. Select it then click edit. In the next window click add then copy and paste I would attach pictures but I am currently using a school computer and I don't have access to it. |
I somehow don't have 'environmental variables' folders or files anywhere. only three environment python files. I must have done something wrong somewhere else, unless I'm just stupid!! |
It's not a folder, its a setting on the computer |
ahhh I am stupid. I don't have tesseract installed in that location? like tesseract isn't even located in Program Files (86x) at all. Do I need it installed there? |
No just find where it's located and paste that |
ahhhh... I'm giving up for today but, thanks! I feel like I'm getting closer but then another error occurs. Have you used this yet or do you have errors? |
I still have an error on mine. I've had so many and you're running into the
same ones I am and luckily I still remember what I did
…On Mar 13, 2018 4:31 PM, "tombets2424" ***@***.***> wrote:
ahhhh... I'm giving up for today but, thanks! I feel like I'm getting
closer but then another error occurs. Have you used this yet or do you have
errors?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#30 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AjgmpbYgWFwCrej-_irMvcF_xCz_sa_qks5teCyqgaJpZM4SnOZs>
.
|
@sushant10 bro, can you help fixing this error? |
@0bytedna if you give me more info on your case I'll help |
All good now, commented out the line containing 0x9d, and added shell=True in line 111. But, the script runs very slowly. |
Probably tesseract or PIL package issue |
@IanNS333 did you add the tessdata to your environment variables hope it works you need to add it to make the tesseract fully functional |
any help resolving this appreciated...
python answer_bot.py
Traceback (most recent call last):
File "answer_bot.py", line 276, in
load_json()
File "answer_bot.py", line 63, in load_json
sample_questions = json.loads(open("Data/questions.json").read())
File "C:\Users\user\AppData\Local\Programs\Python\Python36-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 94: character maps to
The text was updated successfully, but these errors were encountered: