Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while working with instapy: "ModuleNotFoundError: No module named 'clarifai.rest'"

from instapy import InstaPy


session = InstaPy(username='name', password='password')
session.login()

(I use VSC) my code breaks at the first line with error: from clarifai.rest import ClarifaiApp, Workflow ModuleNotFoundError: No module named 'clarifai.rest'

I tried reinstalling instapy, that specific module, but nothing changed.

Edit: Yes, I have tried reinstalling clarifai and it didn't help.

like image 445
Once4thewin Avatar asked Oct 14 '25 11:10

Once4thewin


1 Answers

The solution is here I tested Franchen Bao's comment and it worked for me. I had this error after the emoji error. Looks like this project is a little unstable and can only handle certain versions of each package, like Franchen Bao said.

pip uninstall clarifai
pip install clarifai==2.6.2
like image 125
Michael Hearn Avatar answered Oct 17 '25 01:10

Michael Hearn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!