Code Monkey home page Code Monkey logo

Comments (5)

jweissko avatar jweissko commented on August 26, 2024 4

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

from pychromeless.

yannip1234 avatar yannip1234 commented on August 26, 2024 1

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

from pychromeless.

jairovadillo avatar jairovadillo commented on August 26, 2024

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! :)

from pychromeless.

umihico avatar umihico commented on August 26, 2024

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

from pychromeless.

meagher43 avatar meagher43 commented on August 26, 2024

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.

from pychromeless.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.