"ImportError: cannot import name 'BatchSampler'"

It is working now. Thank you so much @jakelong for your support.

Thanks,
Ritika

1 Like

I had the same issue a while ago, the old/fastai folder just wouldn’t sync with the repo. I ended up removing the local copy and doing a git clone again. Synced everything up pretty nicely.

yep. i did it a couple of hours ago and it worked.
so for anyone who has the fastai.imports module error:
check that the fastai\old\fastai folder is identical as the repo (fastai git) version.
after conda env update my “old\fastai” folder would have missing files eg. imports.py and the rest/
solution: i cloned the fastai git repo and manually replaced the old\fastai folder with the cloned old\fastai folder (which has all the required files).
now the lesson 1 jupyter notebook works.

1 Like