Getting when trying to import 1 from fastai.structured import *

!pip install fastai

Getting error as below when trying to import
from fastai.structured import *
from fastai.column_data import *
np.set_printoptions(threshold=50, edgeitems=20)

ImportError Traceback (most recent call last)
in ()
----> 1 from fastai.structured import *
2 from fastai.column_data import *
3 np.set_printoptions(threshold=50, edgeitems=20)
4
5 PATH=‘data/rossmann/’

/usr/local/lib/python3.6/dist-packages/fastai/init.py in ()
----> 1 from .basic_train import *
2 from .callback import *
3 from .callbacks import *
4 from .core import *
5 from .data import *

/usr/local/lib/python3.6/dist-packages/fastai/basic_train.py in ()
1 "Provides basic training and validation with Learner"
----> 2 from .torch_core import *
3 from .data import *
4 from .callback import *
5

/usr/local/lib/python3.6/dist-packages/fastai/torch_core.py in ()
1 “Utility functions to help deal with tensors”
----> 2 from .imports.torch import *
3 from .core import *
4
5 AffineMatrix = Tensor

/usr/local/lib/python3.6/dist-packages/fastai/imports/init.py in ()
1 from .core import *
----> 2 from .torch import *

/usr/local/lib/python3.6/dist-packages/fastai/imports/torch.py in ()
2 from torch import ByteTensor, DoubleTensor, FloatTensor, HalfTensor, LongTensor, ShortTensor, Tensor
3 from torch import nn, optim

Your question is too generic. Please don’t just dump the error log. Its difficult for us to help you out when you are holding information with you.

Please provide more info like:

  • What OS (Windows or Linux)?
  • If Linux, what is the distro? (Ubuntu or Debian or Red Hat or others)
  • Local machine or Cloud? (if Cloud, which one? AWS, Google Cloud?)
  • Which Jupyter notebook?
  • What is the fastai version? (0.7 or 1.0)
  • What kind of hardware? (CPU, GPU or TPU)
    In case of GPU
    • What is NVIDIA Driver version?
    • What is CUDA version?
    • What is GPU model?

Hi ,
I am on windows 10. Using Google collab Jupyter notebook . fastai==1.0.3.

Sorry for not sharing full details

Regards
Suresh