Git Product home page Git Product logo

Comments (9)

actioncorp3 avatar actioncorp3 commented on July 24, 2024

I read that I must give "chmod 777 chromedriver" permissions, the zip project is in s3. By cloud9 I can't find bucket s3 to give permissions to "\bin\chromedriver". How should I do it?

from selenium-python-aws-lambda.

alejandroalffer avatar alejandroalffer commented on July 24, 2024

Try to use these variables in Lambda config:

PATH:/var/task/bin
PYTHONPATH:/var/task/lib

Best regards!

from selenium-python-aws-lambda.

actioncorp3 avatar actioncorp3 commented on July 24, 2024

Hi @ManivannanMurugavel alejandroalffer,
I already have those environment variables in lambda, the error seems to be not to have permissions in chromedriver, but I don't know how to give those permissions to that file from lambda or cloud9.

I have associated the "AmazonS3FullAccess" policy with the IAM role related to Lambda, but I am still unsuccessful...

from selenium-python-aws-lambda.

ManivannanMurugavel avatar ManivannanMurugavel commented on July 24, 2024

from selenium-python-aws-lambda.

actioncorp3 avatar actioncorp3 commented on July 24, 2024

Ok, I'll try from a virtual machine with ubuntu

from selenium-python-aws-lambda.

actioncorp3 avatar actioncorp3 commented on July 24, 2024

Hi @ManivannanMurugavel !

Perform the step indicated from Ubuntu, changing the permissions to 777 of "bin / chromedriver" and "bin / headless-chromium", but now I throw the following error:

{
"errorMessage": "Unable to import module 'lambda_function'"
}

Verify the controller and it is correct. Any ideas?

from selenium-python-aws-lambda.

ManivannanIkomet avatar ManivannanIkomet commented on July 24, 2024

Hi @actioncorp3 ,
I forgot to add this line.
Set the executable permission to chromedrive not 777 permission
Download the chrome driver and set the executable permission using below command

sudo chmod a+x chromedriver

from selenium-python-aws-lambda.

actioncorp3 avatar actioncorp3 commented on July 24, 2024

Thanks @ManivannanMurugavel , it worked

from selenium-python-aws-lambda.

actioncorp3 avatar actioncorp3 commented on July 24, 2024

@ManivannanMurugavel have you thought about transferring it to serverless to deploy it in Cloud9? It would be a great improvement! Congratulations on the project, interesting.

from selenium-python-aws-lambda.

Related Issues (12)

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.