-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Description
I am running this example on a Ubuntu18 on AWS. I am able to build it without errors, but when I run the dockerfile it exits.
$docker build . --tag fc
Successfully built 9b501a367521
Successfully tagged fc:latest
$docker run -d -p 8084:8084 --name=fc fc
3c25112508ac7b4ac154710f215fb1fc09db8550e29b3ed53e1fa4a3e3bd0eec
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3c25112508ac fc "python3 src/web/fac…" 12 seconds ago Exited (1) 9 seconds ago fc
I check out the log file and find the following ImportError:
$ docker logs 3c25112508ac
Using TensorFlow backend.
Traceback (most recent call last):
File "src/web/faces.py", line 4, in <module>
import emotion_gender_processor as eg_processor
File "/ekholabs/face-classifier/src/web/emotion_gender_processor.py", line 16, in <module>
from utils.preprocessor import preprocess_input
File "/ekholabs/face-classifier/src/utils/preprocessor.py", line 2, in <module>
from scipy.misc import imread, imresize
ImportError: cannot import name 'imread'
How do I go about correctly running the Dockerfile?
I haven't changed anything so I don't know why I would have an ImportError. I googled it and it looks like the issue is with including Pillow, but when I check the Dockerfile I think it is being included.
Metadata
Metadata
Assignees
Labels
No labels