Replies: 1 comment 1 reply
-
Since you're on Windows, you'll need to initialize the SQLite storage with another path, see https://github.com/gsong/python-epo-ops-client/blob/develop/epo_ops/middlewares/throttle/storages/sqlite.py#L32 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I got this error when I tried to login via client. May I ask how to solve this issue, please? I checked on OPS test website, and my key and secret work fine. Thank you very much!
client = epo_ops.Client(key='mykey', secret='mysecret')
Traceback (most recent call last):
File "
\AppData\Local\Programs\Python\Python39\lib\site-packages\IPython\core\interactiveshell.py", line 3441, in run_code\AppData\Local\Programs\Python\Python39\lib\site-packages\epo_ops\api.py", line 32, in initexec(code_obj, self.user_global_ns, self.user_ns)
File "", line 1, in
client = epo_ops.Client(key='mykey', secret=''mysecret')
File "
self.middlewares = [Throttler()]
File "
\AppData\Local\Programs\Python\Python39\lib\site-packages\epo_ops\middlewares\throttle\throttler.py", line 15, in init\AppData\Local\Programs\Python\Python39\lib\site-packages\epo_ops\middlewares\throttle\storages\sqlite.py", line 35, in initself.history = history_storage or SQLite()
File "
self.db = sqlite3.connect(db_path, detect_types=sqlite3.PARSE_DECLTYPES)
sqlite3.OperationalError: unable to open database file
Beta Was this translation helpful? Give feedback.
All reactions