Failed to install fastai after cloning an environment

I just install the anaconda and created a clone of the base env and called it fastai via the following command:

conda create --name fastai --clone base

And then

conda activate fastai

And then:

conda install -v -c fastai fastai

But I getting the following error:>

Collecting package metadata (current_repodata.json): …working… Unable to retrieve repodata (response: 404) for https://conda.anaconda.org/fastai/linux-64/current_repodata.json

done
Solving environment: …working… failed with initial frozen solve. Retrying with flexible solve.
Solving environment: …working… failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): …working… done
Solving environment: …working… failed with initial frozen solve. Retrying with flexible solve.
Solving environment: …working…
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
Examining wrapt: 83%|████████████████████████████████████████████████████████████████████████████████████████████▏ | 318/383 [09:48<02:12, 2.04s/it]
Comparing specs that have this dependency: 57%|████████████████████████████████████████████████████ | 4/7 [08:16<06:12, 124.11s/Comparing specs that have this dependency: 71%|█████████████████████████████████████████████████████████████████▋ | 5/7 [08:17<03:19, 99.50s/Comparing specs that have this dependency: 100%|████████████████████████████████████████████████████████████████████████████████████████████| 7/7 [09:11<00:00, 78.79s/failed Traceback (most recent call last):
File “/home/bigicecream/.conda/envs/fastai/lib/python3.7/site-packages/conda/cli/install.py”, line 265, in install
should_retry_solve=(_should_retry_unfrozen or repodata_fn != repodata_fns[-1]),
File “/home/bigicecream/.conda/envs/fastai/lib/python3.7/site-packages/conda/core/solve.py”, line 116, in solve_for_transaction
should_retry_solve)
File “/home/bigicecream/.conda/envs/fastai/lib/python3.7/site-packages/conda/core/solve.py”, line 157, in solve_for_diff
force_remove, should_retry_solve)
File “/home/bigicecream/.conda/envs/fastai/lib/python3.7/site-packages/conda/core/solve.py”, line 280, in solve_final_state
ssc = self._run_sat(ssc)
File “/home/bigicecream/.conda/envs/fastai/lib/python3.7/site-packages/conda/common/io.py”, line 88, in decorated
return f(*args, **kwds)
File “/home/bigicecream/.conda/envs/fastai/lib/python3.7/site-packages/conda/core/solve.py”, line 804, in _run_sat
should_retry_solve=ssc.should_retry_solve
File “/home/bigicecream/.conda/envs/fastai/lib/python3.7/site-packages/conda/common/io.py”, line 88, in decorated
return f(*args, **kwds)
File “/home/bigicecream/.conda/envs/fastai/lib/python3.7/site-packages/conda/resolve.py”, line 1266, in solve
raise UnsatisfiableError({})
conda.exceptions.UnsatisfiableError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/home/bigicecream/.conda/envs/fastai/lib/python3.7/site-packages/conda/exceptions.py”, line 1062, in call
return func(*args, **kwargs)
File “/home/bigicecream/.conda/envs/fastai/lib/python3.7/site-packages/conda/cli/main.py”, line 84, in _main
exit_code = do_call(args, p)
File “/home/bigicecream/.conda/envs/fastai/lib/python3.7/site-packages/conda/cli/conda_argparse.py”, line 82, in do_call
exit_code = getattr(module, func_name)(args, parser)
File “/home/bigicecream/.conda/envs/fastai/lib/python3.7/site-packages/conda/cli/main_install.py”, line 20, in execute
install(args, parser, ‘install’)
File “/home/bigicecream/.conda/envs/fastai/lib/python3.7/site-packages/conda/cli/install.py”, line 308, in install
raise e
File “/home/bigicecream/.conda/envs/fastai/lib/python3.7/site-packages/conda/cli/install.py”, line 299, in install
should_retry_solve=(repodata_fn != repodata_fns[-1]),
File “/home/bigicecream/.conda/envs/fastai/lib/python3.7/site-packages/conda/core/solve.py”, line 116, in solve_for_transaction
should_retry_solve)
File “/home/bigicecream/.conda/envs/fastai/lib/python3.7/site-packages/conda/core/solve.py”, line 157, in solve_for_diff
force_remove, should_retry_solve)
File “/home/bigicecream/.conda/envs/fastai/lib/python3.7/site-packages/conda/core/solve.py”, line 280, in solve_final_state
ssc = self._run_sat(ssc)
File “/home/bigicecream/.conda/envs/fastai/lib/python3.7/site-packages/conda/common/io.py”, line 88, in decorated
return f(*args, **kwds)
File “/home/bigicecream/.conda/envs/fastai/lib/python3.7/site-packages/conda/core/solve.py”, line 804, in _run_sat
should_retry_solve=ssc.should_retry_solve
File “/home/bigicecream/.conda/envs/fastai/lib/python3.7/site-packages/conda/common/io.py”, line 88, in decorated
return f(*args, **kwds)
File “/home/bigicecream/.conda/envs/fastai/lib/python3.7/site-packages/conda/resolve.py”, line 1268, in solve
self.find_conflicts(specs, specs_to_add, history_specs)
File “/home/bigicecream/.conda/envs/fastai/lib/python3.7/site-packages/conda/resolve.py”, line 340, in find_conflicts
raise UnsatisfiableError(bad_deps, strict=strict_channel_priority)
conda.exceptions.UnsatisfiableError: The following specifications were found to be incompatible with a past
explicit spec that is not an explicit spec in this operation (cytoolz):

  • fastai -> thinc==6.12.0 -> cytoolz[version=’>=0.9.0,<0.10’]
  • fastai -> thinc==6.12.0 -> wrapt[version=’>=1.10.0,<1.11.0|>=1.10.10,<1.11.0’]

The following specifications were found to be incompatible with each other:

Package wrapt conflicts for:
_anaconda_depends -> wrapt
defaults/linux-64::anaconda==2019.07=py37_0 -> astroid==2.2.5=py37_0 -> wrapt
defaults/linux-64::pylint==2.3.1=py37_0 -> astroid[version=’>=2.2.0’] -> wrapt
wrapt==1.11.2
defaults/linux-64::astroid==2.2.5=py37_0 -> wrapt
defaults/linux-64::spyder==3.3.6=py37_0 -> pylint -> astroid[version=’>=2.2.0’] -> wrapt
defaults/linux-64::anaconda==2019.07=py37_0 -> wrapt==1.11.2=py37h7b6447c_0
Package cytoolz conflicts for:
defaults/linux-64::anaconda==2019.07=py37_0 -> dask==2.1.0=py_0 -> cytoolz[version=’>=0.7.3|>=0.7.4’]
cytoolz==0.10.0
defaults/linux-64::anaconda==2019.07=py37_0 -> cytoolz==0.10.0=py37h7b6447c_0
defaults/noarch::distributed==2.1.0=py_0 -> cytoolz[version=’>=0.7.4’]
defaults/linux-64::scikit-image==0.15.0=py37he6710b0_0 -> cytoolz[version=’>=0.7.3’]
defaults/noarch::dask==2.1.0=py_0 -> distributed[version=’>=2’] -> cytoolz[version=’>=0.7.4’]
defaults/noarch::dask==2.1.0=py_0 -> cytoolz[version=’>=0.7.3’]
_anaconda_depends -> dask -> cytoolz[version=’>=0.7.3|>=0.7.4’]
_anaconda_depends -> cytoolz

But when I am trying it in the base env it works.

I am using Arch Linux.

Did someone know why it is happening?

I’m having similar issues after a clean install of Anaconda3-2019.07. The json file doesn’t exist at https://conda.anaconda.org/fastai/linux-64/current_repodata.json, but repodata.json loads fine. Is there an issue with this package and workaround for this?

1 Like

I just created clean new environments with python 3.6 in it, then install fastai in it.
I followed this https://docs.fast.ai/install.html#virtual-environment

Thanks, that did help. I was also cloning the older notebooks instead of course-v3, but am up and running now. Thanks again!

Hey @juliuso @Bigicecream, I’ve run into similar issue. The problem is neither a downgrade or an upgrade seem to work. The issue is closed but I don’t think the fix is available in the latest conda version. Any help? Or has anyone else run into similar issue?

I’m dealing w/ this too. Noticed it after switching to zsh from bash for my Terminal after upgrading MacOS. I got it to work the first time by running conda update --all but that’s not working now: I’m trying to clone a fastai environment to install an extra package. I’ll update if I find a solution.


update:
I got things working by downgrading conda, and to do that I had to downgrade python from 3.8 to 3.7:

In the cloned environment:

conda config --set allow_conda_downgrades true # ← unsure if needed
conda install python=3.7
conda install conda=4.6.14
conda install -c pytorch -c fastai fastai

What’s weird is running conda --version returns 4.7.12 (in my cloned, fastai, and base environments), even though the downgrade apparently went through in the clone. I’m going to keep duct-taping Conda until I get around to reinstalling it completely.