I am trying to run the workbooks from …fastai/fastbook/clean on a server at Datacrunch.io using the fastai environment.
The Python code always returns errors of various elements not found; her is an example from the first entry:
---- Start of example -----
fastai 2.3.0 requires fastcore<1.4,>=1.3.8, but you’ll have fastcore 1.0.13 which is incompatible.
NameError Traceback (most recent call last)
in
1 #hide
2 get_ipython().system(‘pip install -Uqq fastbook’)
----> 3 import fastbook
4 fastbook.setup_book()
~/anaconda3/envs/fastai/lib/python3.8/site-packages/fastbook/init.py in
1 version = “0.0.16”
2 import matplotlib as mpl, pkgutil, requests, time
----> 3 from fastai.vision.all import *
4 from pandas.api.types import CategoricalDtype
5 from scipy.cluster import hierarchy as hc
~/anaconda3/envs/fastai/lib/python3.8/site-packages/fastai/vision/all.py in
----> 1 from . import models
2 from …basics import *
3 from …callback.all import *
4 from .augment import *
5 from .core import *
~/anaconda3/envs/fastai/lib/python3.8/site-packages/fastai/vision/models/init.py in
1 from . import xresnet
----> 2 from . import unet
3 from .tvm import *
~/anaconda3/envs/fastai/lib/python3.8/site-packages/fastai/vision/models/unet.py in
5 # Cell
6 from …torch_basics import *
----> 7 from …callback.hook import *
8
9 # Cell
~/anaconda3/envs/fastai/lib/python3.8/site-packages/fastai/callback/hook.py in
5
6 # Cell
----> 7 from …basics import *
8
9 # Cell
~/anaconda3/envs/fastai/lib/python3.8/site-packages/fastai/basics.py in
1 from .data.all import *
2 from .optimizer import *
----> 3 from .callback.core import *
4 from .learner import *
5 from .metrics import *
~/anaconda3/envs/fastai/lib/python3.8/site-packages/fastai/callback/core.py in
29 # Cell
30 @funcs_kwargs(as_method=True)
—> 31 class Callback(Stateful,GetAttr):
32 “Basic class handling tweaks of the training loop by changing a Learner
in various events”
33 order,_default,learn,run,run_train,run_valid = 0,‘learn’,None,True,True,True
NameError: name ‘Stateful’ is not defined
#hide
from fastbook import *
---- End of example —
Has anybody tried that before?
Regards,
J.M.