i’m getting the following error while importing from fastai.vision import *
local variable ‘arith_flex’ referenced before assignment
i’m getting the following error while importing from fastai.vision import *
local variable ‘arith_flex’ referenced before assignment
What version are you on? Is that the only line in the notebook?
I have the same problem. Fresh install of fastai and jupyter using conda. The problem is related to pandas v0.25.0 and appears even if I just try to import pandas: import pandas as pd
Same problem also reported on Stackoverflow https://stackoverflow.com/questions/57226917/unboundlocalerror-local-variable-arith-flex-referenced-before-assignment
Any ideas how to work around this particular bug?
Okay, I have a workaround. Create new Conda environment and install fastai again.
conda create -n fastai python=3.7
conda activate fastai
conda install -c conda-forge jupyterlab
conda install -c pytorch -c fastai fastai
Now I can import fastai (and pandas too). Hope it helps.
It worked for me. Thanks Konstantin!