Cannot find fastai2 on crestle + import error


(Angelina Yang) #1

hi,

I have errors running: I didnt see fastai2 folder as shown in lesson1, I intent to run lesson 10 on crestle but also didn’t find the dl2 on crestle. Did I miss something?
**from fastai.text import ***
import html


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

~/courses/fastai/courses/dl1/fastai/text.py in ()
----> 1 from .core import *
2 from .learner import *
3 from .lm_rnn import *
4 from torch.utils.data.sampler import Sampler
5 import spacy

~/courses/fastai/courses/dl1/fastai/core.py in ()
1 from .imports import *
----> 2 from .torch_imports import *
3
4 def sum_geom(a,r,n): return an if r==1 else math.ceil(a(1-r**n)/(1-r))
5

~/courses/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

~/.local/lib/python3.6/site-packages/torch/init.py in ()
78 pass
79
—> 80 from torch._C import *
81
82 all += [name for name in dir(_C)

ImportError: libshm.so: cannot open shared object file: No such file or directory


(Aashish Gangwani) #2

Hey can you do
!pip3 install fastai
in a new notebook cell and post what it says?