Problem impoetin fast-bert on colab and kaggle notebook

I am not able to import the module fast-bert.
I used this library several times during the last days but today i am having some problems to import it…

i am having this error when i run pip install fast-bert :

ERROR: Could not find a version that satisfies the requirement itertools (from fast-bert) (from versions: none)
ERROR: No matching distribution found for itertools (from fast-bert)

please guide me

Hi MedBou hope all is well!

it looks like the PyPi version of fast-bert 1.9.2 is not working or broken at the moment, as it gives the following error with pip install.

Collecting fast-bert==1.9.2
  Using cached https://files.pythonhosted.org/packages/f6/81/e8bcd6ae4fd8dfd925f5ce8fc0aad88c31a136c58cd0f6986b3216626a7a/fast_bert-1.9.2-py3-none-any.whl
Collecting pytorch-lamb
  Using cached https://files.pythonhosted.org/packages/43/98/3bce14a319317a2856db722f2542d329baf42845fa53563d0d749c5a2d40/pytorch_lamb-1.0.0-py3-none-any.whl
Collecting python-box
  Downloading https://files.pythonhosted.org/packages/fe/33/d6c02b9e5a3021d409c20da59e383bc9a3737a3e632de99a6251f5f9f22d/python_box-5.1.1-py3-none-any.whl
Requirement already satisfied: pandas in /usr/local/lib/python3.6/dist-packages (from fast-bert==1.9.2) (1.1.2)
ERROR: Could not find a version that satisfies the requirement itertools (from fast-bert==1.9.2) (from versions: none)
ERROR: No matching distribution found for itertools (from fast-bert==1.9.2)

However you can install version 1.9.1
!pip install fast-bert==1.9.1

As this appears to be working.
Hope this helps.
Cheers mrfabulous1 :smiley: :smiley:

Hi @mrfabulous1, hope you’re doing well!
Thank you so much for explaining the problem.
The 1.9.1 version works perfectly for me.
Cheers MedBou :smiling_face_with_three_hearts:

1 Like