fastai / fastai

The fastai deep learning library
http://docs.fast.ai
Apache License 2.0
26.23k stars 7.56k forks source link

fastai 2.2.7-No module named 'fastai.column_data' #3293

Closed Angel-Wei closed 3 years ago

Angel-Wei commented 3 years ago

Hi, I installed fastai 2.2.7. Other info are provided here for reference: pytorch 1.7.1 conda 4.9.2 Python 3.6.12 I got the error ModuleNotFoundError: No module named 'fastai.column_data' when I run from fastai.column_data import *. However when I tried to uninstall and downgrade the fastai to 1.0.61. I got errors No module named 'fastai.learner' together with ModuleNotFoundError: No module named 'fastai.column_data'. when I run from fastai.learner import * from fastai.column_data import * I have no clue what causes these errors and wonder if these problems can be fixed. Really need the help and thanks in advance!

muellerzr commented 3 years ago

You're trying to use extremely outdated code. It would help to know the source of the article or the rough time period in which it came out. As it clearly isn't using fastai v2, nor fastai v1.0.0

Angel-Wei commented 3 years ago

Thanks for the clarification! That's what I thought. I was reading a paper published in 2019 and looked at their code to construct the collab learner and I have checked the tutorials of the updated fastai and sorted it out. Thanks again.