Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
Description
I wrote a small microservice in which I was getting images in HTTP POST requests and I was trying to recognize them and save their encodings into the database so that no existing face comes again.
It was working fine in my local Mac book environment with the versions written above. The code snippet is given below.
But when I dockerize it and use it in docker, first of all, docker took about 20 mins to build on a server with bandwidth speed of 100MB/s, it starts breaking at line
and started giving me errors
RuntimeError: Expected writable numpy.ndarray with shape set.Docker file
My questions are
First of all why did it give me that error, when it was running perfectly on local system
When I changed it a little bit, it fixed in docker too. I need to know what was the main issue behind this.
What I Did
First of all, I tried setting flag (write=true) in numpy array but it didn't work.
I saw the issue #174, he said he needed to load the file first, I then loaded files and it started working. below is my changed code.
Please tell me, as the issue is fixed but what was the issue here. If file loading is really required then how is it working in my local environment.