Edit from Jeremy: The information below is now obsolete, because fastai v2 has been modified to work with python 3.6.
Ran into this issue in nb 01_core and figured if anybody else does, this may help.
Problem:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-111-838e064ec70f> in <module>
18 setattr(TensorBase, fn, get_f(fn))
19
---> 20 _patch_tb()
<ipython-input-111-838e064ec70f> in _patch_tb()
15 if fn in skips: continue
16 f = getattr(t, fn)
---> 17 if isinstance(f, (types.MethodWrapperType, types.BuiltinFunctionType, types.BuiltinMethodType, types.MethodType, types.FunctionType)):
18 setattr(TensorBase, fn, get_f(fn))
19
AttributeError: module 'types' has no attribute 'MethodWrapperType'
Solution:
Upgrade Python to 3.7+