You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to build Docker image but I got the following error:
Step 9/11 : RUN python cougar.py
---> Running in e2f64e470329
Traceback (most recent call last):
File "cougar.py", line 3, in
from fastai.vision import (
File "/usr/local/lib/python3.6/site-packages/fastai/vision/init.py", line 3, in
from .learner import *
File "/usr/local/lib/python3.6/site-packages/fastai/vision/learner.py", line 6, in
from . import models
File "/usr/local/lib/python3.6/site-packages/fastai/vision/models/init.py", line 2, in
from torchvision.models import ResNet,resnet18,resnet34,resnet50,resnet101,resnet152
File "/usr/local/lib/python3.6/site-packages/torchvision/init.py", line 4, in
from torchvision import datasets
File "/usr/local/lib/python3.6/site-packages/torchvision/datasets/init.py", line 9, in
from .fakedata import FakeData
File "/usr/local/lib/python3.6/site-packages/torchvision/datasets/fakedata.py", line 3, in
from .. import transforms
File "/usr/local/lib/python3.6/site-packages/torchvision/transforms/init.py", line 1, in
from .transforms import *
File "/usr/local/lib/python3.6/site-packages/torchvision/transforms/transforms.py", line 17, in
from . import functional as F
File "/usr/local/lib/python3.6/site-packages/torchvision/transforms/functional.py", line 5, in
from PIL import Image, ImageOps, ImageEnhance, PILLOW_VERSION
ImportError: cannot import name 'PILLOW_VERSION'
The command '/bin/sh -c python cougar.py' returned a non-zero code: 1
The text was updated successfully, but these errors were encountered:
@hugovk thank you for the reply. Sorry I may be wrong but I thought that Docker build is supposed to install all required packages into image. Where should I run "pip install torchvision>=0.5.0"?
I'm trying to build Docker image but I got the following error:
Step 9/11 : RUN python cougar.py
---> Running in e2f64e470329
Traceback (most recent call last):
File "cougar.py", line 3, in
from fastai.vision import (
File "/usr/local/lib/python3.6/site-packages/fastai/vision/init.py", line 3, in
from .learner import *
File "/usr/local/lib/python3.6/site-packages/fastai/vision/learner.py", line 6, in
from . import models
File "/usr/local/lib/python3.6/site-packages/fastai/vision/models/init.py", line 2, in
from torchvision.models import ResNet,resnet18,resnet34,resnet50,resnet101,resnet152
File "/usr/local/lib/python3.6/site-packages/torchvision/init.py", line 4, in
from torchvision import datasets
File "/usr/local/lib/python3.6/site-packages/torchvision/datasets/init.py", line 9, in
from .fakedata import FakeData
File "/usr/local/lib/python3.6/site-packages/torchvision/datasets/fakedata.py", line 3, in
from .. import transforms
File "/usr/local/lib/python3.6/site-packages/torchvision/transforms/init.py", line 1, in
from .transforms import *
File "/usr/local/lib/python3.6/site-packages/torchvision/transforms/transforms.py", line 17, in
from . import functional as F
File "/usr/local/lib/python3.6/site-packages/torchvision/transforms/functional.py", line 5, in
from PIL import Image, ImageOps, ImageEnhance, PILLOW_VERSION
ImportError: cannot import name 'PILLOW_VERSION'
The command '/bin/sh -c python cougar.py' returned a non-zero code: 1
The text was updated successfully, but these errors were encountered: