Create_config when !pip install -Uqq fastbook

Anyone can help me with this issue?

Right now i cannot install in COLAB the library for FAST AI

3 Likes

I’m receiving this issue as well. I was able to execute without this issue earlier today, but something changed within the last few hours.

Yeah! for the last 2 hours…im working without problem, but not now…i thing it can be adjustment.

1 Like

yeah, I too got the exact same problem. Till yesterday the same notebook was working alright.

1 Like

I am also getting same problem

Really sorry everyone,

I know what this is - i’ve created https://github.com/fastai/nbdev/pull/238 to fix nbdev.

Pete

I temporarily got around this by grabbing a copy of the settings.ini from the fastbook github repo and putting it in my pwd. It worked okay then for me, but I’m just a beginner!

I think we have a few temporary workarounds. Nick made a good suggestion above. 1 is a bit fiddly, but you can see exactly what’s going on. 2 is easy, but you might not want to trust the code in my github branch.

Note: remember to “change runtime type” to use a GPU (o:

  1. Follow these steps in any of the course notebooks

    • Split the first cell into 2 cells
      image

    • Run the 1st cell

    • Go to files …
      image

    • … and up one level
      image

    • Navigate to usr/local/lib/python3.6/dist-packages/nbdev

    • Open flags.py and comment out the last line
      image

    • Run the second cell to import and setup fastbook

  2. Or you can, install nbdev from my branch after installing fastbook

#hide
!pip install -Uqq fastbook
!pip install git+https://github.com/pete88b/nbdev.git@nbdev-import-no-config
import fastbook
fastbook.setup_book()

Please be careful when trusting this kind of advice - I am trying to help (o: but … this kind of thing could easily be used to run malicious code

Thank you this works

I’ve made a new release with the fix, so it should work fine now.

4 Likes

Thanks!!! @jeremy

import fastbook dies with IN_NOTEBOOK not defined, on Paperspace / Gradient free GPU account.