Skip to content
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

PermissionError. #31

Open
enegronjr opened this issue Mar 13, 2018 · 3 comments
Open

PermissionError. #31

enegronjr opened this issue Mar 13, 2018 · 3 comments

Comments

@enegronjr
Copy link

enegronjr commented Mar 13, 2018

File "answer_bot.py", line 267, in
get_points_live()
File "answer_bot.py", line 245, in get_points_live
question,options=parse_question()
File "answer_bot.py", line 102, in parse_question
text = read_screen()
File "answer_bot.py", line 84, in read_screen
text = pytesseract.image_to_string(Image.open(filename))
File "C:\Python36\lib\site-packages\pytesseract\pytesseract.py", line 193, in image_to_string
return run_and_get_output(image, 'txt', lang, config, nice)
File "C:\Python36\lib\site-packages\pytesseract\pytesseract.py", line 140, in run_and_get_output
run_tesseract(**kwargs)
File "C:\Python36\lib\site-packages\pytesseract\pytesseract.py", line 111, in run_tesseract
proc = subprocess.Popen(command, stderr=subprocess.PIPE, shell=True)
File "C:\Python36\lib\subprocess.py", line 709, in init
restore_signals, start_new_session)
File "C:\Python36\lib\subprocess.py", line 998, in _execute_child
startupinfo)
PermissionError: [WinError 5] Access is denied

I've tried running cmd as an admin and still no luck

@U-r-Unknown
Copy link

bro u set variable path to diectory not till tesseract.exe
like : C:\Program Files\Tesseract-OCR;

@U-r-Unknown
Copy link

U-r-Unknown commented Mar 17, 2018

but now the program is able to read the snap but giving 0 results to every option

@enegronjr
Copy link
Author

That doesn't work for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants