was getting the following error:
selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.
by installing manually, i found that some packages (including firefox and the like) were not getting installed (404 not found).
updating apt solved this.
discovery process:
- while trying to get the bot to process a game screenshot, i was getting the following error:
File "/usr/lib/python3.8/multiprocessing/connection.py", line 251, in recv
return _ForkingPickler.loads(buf.getbuffer())
TypeError: __init__() takes 1 positional argument but 2 were given
- some quick web searches led me to believe pytesseract may be the underlying issue, so i removed the pytesseract call in
wordle_image_processing.py and had the function return 'a' instead. when running again, i got the selenium error listed at the beginning of this post.
# ORIGINAL
def _try_blurs(img):
for blur in BLURS:
blurred_img = cv2.blur( img, blur )
char = pytesseract.image_to_string( blurred_img, lang="eng", config=CONFIG ).strip()
if char != "":
return char.lower()
return None
# EDITED
def _try_blurs(img):
for blur in BLURS:
blurred_img = cv2.blur( img, blur )
return 'a'
return None
- searched for geckodriver via
apt list --installed | grep gecko and got no hits. tried multiple search variants including searching for firefox this time and noticed that not even firefox was installed.
- ran the install process manually and saw that a handful of packages were not being found, thus not being installed.
was getting the following error:
by installing manually, i found that some packages (including firefox and the like) were not getting installed (404 not found).
updating apt solved this.
discovery process:
wordle_image_processing.pyand had the function return 'a' instead. when running again, i got the selenium error listed at the beginning of this post.apt list --installed | grep geckoand got no hits. tried multiple search variants including searching for firefox this time and noticed that not even firefox was installed.