raise_fastai_import_error

1620
14
Jump to solution
02-10-2020 10:43 AM
JingyiHu
New Contributor

When I try to follow the steps in one ESRI sample notebook. It indicated that I don't have the required packages which I have already installed. Does anyone encounter this issue before? Any feedbacks would be appreciated. Thanks!

0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable

I would suggest you to create a new cloned environment from default environment, it might be better to start on  a clean environment.

and use this command to install the required packages

conda install -c esri arcgis fastai scikit-image pillow --no-pin

View solution in original post

14 Replies
by Anonymous User
Not applicable

Can you paste the output of the command "conda list" here.

0 Kudos
by Anonymous User
Not applicable

On a clean environment try 

"conda install -c esri arcgis fastai scikit-image pillow"

JingyiHu
New Contributor

Sandeep Kumar Thank you for your reply! I tried "conda install -c esri arcgis fastai scikit-image pillow" in a new environment; however, it turns out into the same error.

0 Kudos
by Anonymous User
Not applicable

Downgrade your fastprogress version 

conda install -c esri fastprogress=0.1.21 --no-pin

0 Kudos
JingyiHu
New Contributor

I just downgraded the fastprogress and rerun the jupyter notebook. It seems the same issue still appear.

0 Kudos
JingyiHu
New Contributor

Thanks!

0 Kudos
by Anonymous User
Not applicable

your pytorch package is not from esri channel, can you import torch. If you are not able to import torch try to install pytorch from esri channel 

use this command to uninstall existing one :

conda remove pytorch torchvision --force --no-pin

then install it back using this command

conda install -c esri arcgis fastai pytorch --no-pin

0 Kudos
JingyiHu
New Contributor

I just reinstalled the esri version pytorch. Restarted the Jupyter and Kernel, and then rerun the code. Still, it pop up the same error.

0 Kudos
by Anonymous User
Not applicable

You have installed an outdated version of arcgis, use the following command to update

conda install -c esri arcgis=1.7.1 --no-pin

your torchvision package is from pytorch channel you need to change it to arcgis channel 

conda remove pytorch torchvision --force --no-pin

conda install -c esri pytorch torchvision --no-pin

also try to import torch and check if it works

in your notebook execute this command in a cell

import torch

0 Kudos