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

Feedback: Running OpenCV as an AWS Lambda Function #14

Closed
iandow opened this issue Apr 15, 2019 · 7 comments
Closed

Feedback: Running OpenCV as an AWS Lambda Function #14

iandow opened this issue Apr 15, 2019 · 7 comments

Comments

@iandow
Copy link
Owner

@iandow iandow commented Apr 15, 2019

No description provided.

iandow pushed a commit that referenced this issue Oct 11, 2019
update drawing
@arynh
Copy link

@arynh arynh commented Dec 6, 2019

Hello, when I attempt to build the docker image lambda-layer-factory, I get the following error: docker: Error response from daemon: pull access denied for lambda-layer-factory, repository does not exist or may require 'docker login': denied: requested access to the resource is denied. I'm logged in on the docker daemon, so is this image private, or should I be looking for another issue?

@iandow
Copy link
Owner Author

@iandow iandow commented Dec 6, 2019

I'm not sure what's up there. Make sure you're following the instructions on https://github.com/iandow/opencv_aws_lambda instead of the blog post, and if you still get that error then try building another amazonlinux docker image from a simplified Dockerfile.

@arutaki
Copy link

@arutaki arutaki commented Dec 9, 2019

Hi, I get the error file /usr/lib64/libpython3.so from install of python36-libs-3.6.8-2.el7.ius.x86_64 conflicts with file from package python3-libs-3.7.4-1.amzn2.0.3.x86_64 when I wanted to build the docker file. Do you have any advise for this issue?

@iandow
Copy link
Owner Author

@iandow iandow commented Dec 9, 2019

@arutaki I was able to reproduce your issue. I think I fixed it with an update to the Dockerfile. Can you see if this update fixes your issue?

@arutaki
Copy link

@arutaki arutaki commented Dec 9, 2019

Yes, I can now build the Dockerfile just fine. Thanks.

@h3nryh3nry
Copy link

@h3nryh3nry h3nryh3nry commented Jun 27, 2020

Hi! Thanks for the great article.

Just to let you know - the command to copy generated zip file can fail under Windows + git-bash console:

$ docker run --rm -it -v $(pwd):/data python-opencv-factory cp /packages/cv2-python36.zip /data
the input device is not a TTY.  If you are using mintty, try prefixing the command with 'winpty'

I've managed to get it working with a small workaround (will copy to C:/data):

$ winpty docker run -v C:\\data:/data --rm -it python-opencv-factory bash
             # (runs bash inside container)
bash-4.2# cp cv2-python37.zip /data/
bash-4.2# cp cv2-python38.zip /data/
bash-4.2# exit

@Adoom666
Copy link

@Adoom666 Adoom666 commented Aug 10, 2021

just a quick note, wrap quotes around the "$(pwd):/data" part if there's spaces in your path 🤦🏻‍♂️

docker run --rm -it -v "$(pwd):/data" python-opencv-factory cp /packages/cv2-python36.zip /data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants