Error while setting instagram python

I am trying to setup instabot on Cloudflare but when I am trying to run the example.py file, I am getting the following error msg. can you plz tell me how to fix this?

file “/home/pinkpinnacle/instabot.py/example.py”, line 6 in <module>

from src import instabot

file “/home/pinkpinnacle/instabot.py/src/_init_.py”, line 1 in <module>

from .instabot import instabot

file “/home/pinkpinnacle/instabot.py/src/instabot.py”, line 22 in <module>

from fake_useragent import useragent

importerror: No module name fake_useragent

>>>

Hi @pinkpinnacle,

This post was moved to a different board that fits your topic of discussion a bit better. This means you’ll get better engagement on your post, and it keeps our Community organized so users can more easily find information.

As you’ll notice, your Topic is now in the Project Development Help and Advice board. No action is needed on your part; you can continue the conversation as normal here.

Let me know if you have any other questions or if I can help with anything else.

Cheers!

Hi @pinkpinnacle ,

Could I see the code in example.py or at least the link to your GitHub files? That would help.

But for now, my suggestion is you maybe missed something or did a typo with the files. Have you even created (or have) a module called fake_useragent? Or could it be that it’s in the wrong folder or something?

And then again, sometimes it could be the editor itself malfunctioning. You could also try creating a new project in that editor and then putting all your files and code there again. Sometimes when I have a problem like that, that’s my solution. :grinning:

  • Zoe K.
1 Like