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

Issues with Python 3.8 #22

Open
barunmishra13 opened this issue Oct 1, 2020 · 5 comments
Open

Issues with Python 3.8 #22

barunmishra13 opened this issue Oct 1, 2020 · 5 comments

Comments

@barunmishra13
Copy link

barunmishra13 commented Oct 1, 2020

Hi - if I setup pychromeless on a lambda instance with Python 3.6 or 3.7 runtimes it works fine. However, on 3.8 it errors out with a message saying that Chrome exited with status 127.

Do not need a fix for it but wanted to document this issue just in case other people have problems with it since for new Lambda machines the default is Python 3.8.

@jairovadillo jairovadillo self-assigned this Jan 21, 2021
@yannip1234
Copy link

Thanks for posting this, I did a lot of debugging and setting my runtime to 3.7 fixed. Any idea why it is breaking?

@jairovadillo jairovadillo removed their assignment Apr 9, 2021
@jairovadillo
Copy link
Owner

Thanks for posting this, I did a lot of debugging and setting my runtime to 3.7 fixed. Any idea why it is breaking?

I've been trying to solve this on #27 by directly using containers with no luck :( AWS Lambda does not provide a lot of information of the error so I don't know how to proceed, if you have any clue please share! :)

@umihico
Copy link

umihico commented Apr 16, 2021

I use serverless-chrome with Python 3.8 in AWS Lambda. In my case, I needed to install dependencies, and installing the latest official chrome solves the task.

https://github.com/umihico/docker-selenium-lambda

@jweissko
Copy link

Using Python3.8, I get the following error:

{
  "errorMessage": "Message: Can not connect to the Service chromedriver\n",
  "errorType": "WebDriverException",
  "stackTrace": [
    "  File \"/var/task/src/lambda_function.py\", line 8, in lambda_handler\n    driver = WebDriverWrapper()\n",
    "  File \"/var/task/src/webdriver_wrapper.py\", line 55, in __init__\n    self._driver = webdriver.Chrome(chrome_options=chrome_options)\n",
    "  File \"/var/task/lib/selenium/webdriver/chrome/webdriver.py\", line 61, in __init__\n    self.service.start()\n",
    "  File \"/var/task/lib/selenium/webdriver/common/service.py\", line 88, in start\n    raise WebDriverException(\"Can not connect to the Service %s\" % self.path)\n"
  ]
}

Solution: Use Python 3.7

@meagher43
Copy link

Hey, I was hoping to setup code profiling and more in depth monitoring of my lambda but that requires a python version >3.7., pychromeless is breaking over 3.7, Just adding this comment for visibility.

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

6 participants