Comments (5)
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.
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.
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.
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.
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)
- yaml.parser.ParserError HOT 1
- Problem with insecure https HOT 1
- Question: Downloading files addition HOT 3
- lambda_function.py example times out HOT 1
- not able to install package chromedriver-installer HOT 4
- Problem with running JavaScript and HTML DOM rendering...? HOT 2
- ElementNotVisibleException from clean run of repo HOT 2
- aws lambda error: 'chromedriver' executable may have wrong permissions. HOT 2
- ERR_CONNECTION_RESET
- Error Deploying on AWS Lamnda HOT 2
- Setting up debugging in Pycharm
- Update to Python 3.9
- Doesn't work anymore HOT 1
- "exec: \"src.lambda_function.lambda_handler\": executable file not found in $PATH" HOT 2
- Couldn't connect to Docker at http+docker://localunixsocket HOT 1
- WebDriverWrapper Subclass HOT 1
- Boto3 HOT 3
- Question: geolocation HOT 3
- How to send Event Data HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pychromeless.