Skip to content

install script can silently fail to retrieve all apt packages #3

Description

@stachurr

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:

  1. 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
  1. 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
  1. 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.
  2. ran the install process manually and saw that a handful of packages were not being found, thus not being installed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions