Fastprogress version conflict in colab

In Colab if you run
from import *
after running the code block :
!curl -s | bash

it says

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

7 frames
/usr/local/lib/python3.6/dist-packages/pkg_resources/ 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)
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:

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/

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 library and first import try to “Runtime” -> “Restart Runtime…” and import library again