Ask coding questions

← Back to all posts
Recursion error when importing instabot module
ZoutigeWolf (2)

when i try to import instabot with import instabot I get a recursion error.

The line is located in cogs/ Updating package configuration

--> python3 -m poetry add instabot
Using version ^0.117.0 for instabot

Updating dependencies
Resolving dependencies...

maximum recursion depth exceeded while calling a Python object
exit status 1 Package operation failed.
DynamicSquid (4922)

You can only recuse a function a limited number of times in Python. To change that, do this:

import sys