Skip to content
Sign upLog in
← Back to Community

Recursion error when importing instabot module

Profile icon
ZoutigeWolf

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.
Voters
Profile icon
GodlyGoat
Profile icon
DynamicSquid
Profile icon
ZoutigeWolf
Comments
hotnewtop
Profile icon
DynamicSquid

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

import sys sys.setrecursionlimit(9**9)