Ask coding questions

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

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

The line is located in cogs/insta.py

Repl.it: Updating package configuration

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

Updating dependencies
Resolving dependencies...

[RecursionError]
maximum recursion depth exceeded while calling a Python object
exit status 1


Repl.it: Package operation failed.
Comments
hotnewtop
DynamicSquid (4922)

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

import sys
sys.setrecursionlimit(9**9)