Import error on ubuntu local machine


(WA) #1

Hi,
I tried to run the following code from lesson1.ipynb but I am getting errors.
from fastai.transforms import *
how can I fix this?
Best,


ImportError Traceback (most recent call last)
in ()
----> 1 from fastai.transforms import *

~/fastai/courses/dl1/fastai/transforms.py in ()
1 from .imports import *
----> 2 from .layer_optimizer import *
3 from enum import IntEnum
4
5 def scale_min(im, targ):

~/fastai/courses/dl1/fastai/layer_optimizer.py in ()
1 from .imports import *
----> 2 from .torch_imports import *
3 from .core import *
4
5 def opt_params(parm, lr, wd):

~/fastai/courses/dl1/fastai/torch_imports.py in ()
1 import os
----> 2 import torch, torchvision, torchtext
3 from torch import nn, cuda, backends, FloatTensor, LongTensor, optim
4 import torch.nn.functional as F
5 from torch.autograd import Variable

/opt/anaconda3/envs/fastai/lib/python3.6/site-packages/torch/init.py in ()
54 except ImportError:
55 pass
—> 56 from torch._C import *
57
58 all += [name for name in dir(_C)

ImportError: dlopen: cannot load any more object with static TLS