Fastprogress version conflict in colab

In Colab if you run
from fastai.vision import *
after running the code block :
!curl -s https://course.fast.ai/setup/colab | bash

it says


VersionConflict Traceback (most recent call last)
in ()
----> 1 from fastai.vision import *

7 frames
/usr/local/lib/python3.6/dist-packages/pkg_resources/init.py in resolve(self, requirements, env, installer, replace_conflicting, extras)
789 # Oops, the “best” so far conflicts with a dependency
790 dependent_req = required_by[req]
–> 791 raise VersionConflict(dist, req).with_context(dependent_req)
792
793 # push the new requirements onto the stack

VersionConflict: (fastprogress 0.1.22 (/usr/local/lib/python3.6/dist-packages), Requirement.parse(‘fastprogress>=0.2.1’))

do anyone know solution to this problem.

You can do !pip install fastprogress —upgrade to get the latest version. @sgugger I think the requirements uml needs to be updated for the script?

It says requirement already satisfied and still gives the version conflict error.

Thank you for trying to assist but it is not working, further help would be appreciated.

I have no idea what the colab script executes, so I’m not sure what you suggest should be updated. The conda env and pip requirements are all updated to the latest version (but of course colab being colab, that might not be enough…)

It looks like it just installs/updates fastai and not fastprogress:

#!/bin/bash
if [ ! -e /content/models ]; then
        mkdir -p /root/.torch/models
        mkdir -p /root/.fastai/data
        ln -s /root/.torch/models /content
        ln -s /root/.fastai/data /content
        rm -rf /content/sample_data/
fi

echo Updating fastai...
pip install fastai --upgrade > /dev/null

echo Done.

I do know that it takes a bit of lag for colab to update it’s regular dependencies though (like fastprogress etc)

Can you suggest a PR to add the fastprogress update? Thanks!

1 Like

waiting for the solution :slight_smile:

After updating fast.ai library and first import try to “Runtime” -> “Restart Runtime…” and import library again