Captcha Response Code: 200 maximum recursion depth exceeded
detkartik opened this issue · 5 comments
Getting following error -
AUTO-BOOKING IS ENABLED. PROCEEDING WITH FIRST CENTRE, DATE, and RANDOM SLOT.
============> Got Choice: Center #1, Slot #1
================================= GETTING CAPTCHA ==================================================
Captcha Response Code: 200
maximum recursion depth exceeded
====================================
================================= GETTING CAPTCHA ==================================================
Captcha Response Code: 200
colinear!
colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
colinear!
colinear!
colinear!
colinear!
x_order_2: colinear!
colinear!
colinear!
colinear!
colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
colinear!
colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
colinear!
colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
colinear!
colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
x_order_2: colinear!
no display name and no $DISPLAY environment variable
which os? please note it wont work over just ssh it require UI
I found the same issue with my Mac.
Line 14 in captcha.py
fails to load image.
WorkAround:
Changed captcha.py
to the following:
`from svglib.svglib import svg2rlg
from reportlab.graphics import renderPM
import PySimpleGUI as sg
import re
from PIL import Image
def captcha_builder(resp):
with open('captcha.svg', 'w') as f:
f.write(re.sub('(<path d=)(.*?)(fill="none"/>)', '', resp['captcha']))
drawing = svg2rlg('captcha.svg')
renderPM.drawToFile(drawing, "captcha.png", fmt="PNG")
im = Image.open('captcha.png')
im.show()
layout = [[sg.Text("Enter Captcha Below")],
[sg.Input(key='inp')],
[sg.Button('Submit', bind_return_key=True)]]
window = sg.Window('Enter Captcha', layout, finalize=True)
window.TKroot.focus_force() # focus on window
window.Element('inp').SetFocus() # focus on field
event, values = window.read()
window.close()
return values['inp']`
Thanks it is same Mac OS
Thanks a lot it worked