Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RecursionError: maximum recursion depth exceeded while calling a Python object #8

Open
athenabjorg opened this issue Mar 9, 2018 · 0 comments

Comments

@athenabjorg
Copy link

I was having problem with importing HIBP so I just downloaded the file and added it to my directory.
But then I got the error shown in the title. I'm leaving a comment in case it happens to someone else.

To fix it put the gevent import statement above the requests statement, like this:

try:
    import gevent
    from gevent import monkey
    from gevent.pool import Pool
except ImportError:
    raise RuntimeError('Gevent is required for hibp.')

monkey.patch_all(thread=False, select=False)

try:
    import requests
except ImportError:
    raise RuntimeError('Requests is required for hibp.')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant