Ran into the same error. I think it’s got to do with the move to the rewritten fastai library.
What fixed it for me was just reverting to an earlier, working commit by issuing: git checkout 2e1ccb58121dc648751e2109fc0fbf6925aa8887
That puts the repo back to an earlier stage which gets everything working for me again. Note that this isn’t a resilient fix: if you intend to work on the fastai library code, this definitely wouldn’t be the way to go. Then again, if that’s the case, you probably know enough to fix the underlying root cause.
I reset the symbolic link to point to …/fastai/old/fastai/ (old library). Then, it works again. I also have the latest library for the upcoming course.
It seems to be the best option for now as they changed a lot to the fastai repo to use pytorch 0.4.1 features, but the setup process still using 0.3.1. Installing 0.4.1 is an option but in the future who knows what might break.
It seems like you already had your fastai conda env set up. In the step 8 of the howto you can see the instruction as: cd courses\dl1 del fastai mklink /d fastai ..\..\fastai cd ..\..
If you already did the above things, open an anaconda prompt, cd into fastai folder, activate fastai env and run these cd courses\dl1 rmdir fastai mklink /d fastai ..\..\old\fastai cd ..\..
Don’t try to import fastai from python started in the command line, run jupyter notebook and open lession1.ipynb in courses/dl1 and run the first 6 blocks of code. It should run without problem and torch.cuda.is_available() and torch.backends.cudnn.enabled should both return True.
Hoping to be helpful here I shared a Google Colab notebook ready to go, in order to make fast.ai course ready to go to anyone.
It has comments about common issues I solved too.
You are free to comment or fork it and let me/us know if/how you’ll improve it.
In my case I enabled Developer mode in windows by opening start menu and search for developers settings, however I’m using windows 10 pro and not sure if you have the same. Also I saw that you ran del fastai, which doesn’t remove the symlink but rather delete files in fastai folder, instead of rmdir fastai. You should check to see if you had deleted any files in that folder and revert changes made to it, then run only the second bunch of code in my previous post, not the first one.
Thanks, that was my issue. I had tried making a new folder for all Kaggle competitions and I had it as fastai/kaggle/fastai(symlink) I had to add another layer to the structure so now I have fastai/kaggle/competitions/fastai(symlink)
it seems like you are using windows 10, then try open start menu and search for ‘developers settings’ and switch to developer mode, that should allow you to perform mklink command