You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.')
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: