Closed MinuteswithMetrics closed 5 years ago
fastai v1 is very incompatible with v0.7. You will need to either rewrite your code to use the v1 API (https://docs.fast.ai/) or to carry both versions and load v0.7 for the old kernels and v1 for the new ones.
Thank you. Is it possible to clone v0.7? Tried doing pip install, but that doesn't work.
If you want it on the fly, this may do the trick (installing a subdir old
, where v0.7 currently lives - in the same repo as v1.0):
pip install git+https://github.com/fastai/fastai.git#subdirectory=old
but otherwise you follow the normal instructions: https://forums.fast.ai/t/fastai-v0-7-install-issues-thread/24652
the problem is that currently it's not setup for having both versions in the same environment, so probably some path manipulation will be required. so if you switch to fastai-v1 as normal, then install fastai v0.7 into a hidden path, and prepend it onto sys.path before loading it in kernels that rely on fastai-0.7:
sys.path.insert(0, "/path/to/fastai/v.0.7")
import fastai
Thank you stas00. It worked.
fastai.conv_learner is available in old version of fastai. install old version using pip install fastai==0.7.0 --no-deps
Describe the bug
Was conv_learner replaced in v1?
from fastai.conv_learner import *
produces the following error:To Reproduce
from fastai.conv_learner import *
Expected behavior
Myself and other Kagglers are experiencing
ModuleNotFoundError
when Kaggle updated fastai to v1. I was wondering if conv_learner was replaced in the new version. If so, what cmd replaces the line of code mentioned above. I was able to figure out thatfrom fastai.dataset import *
is nowfrom fastai.datasets import *
Any assistance would be helpful. Thank you for an awesome library!`--------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last)