zillionare / zillionare

请访问 😄www.jieyu.ai和公众号🫶量化风云

Home Page:https://www.jieyu.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gino.exceptions.UninitializedError: Gino engine is not initialized.

zillionare opened this issue · comments

commented

when calling get_valuation, exception is throwed:

2021-03-21 09:02:43,653 E 51 omega.interfaces.quotes:get_valuation:34 | Gino engine is not initialized.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/omega/interfaces/quotes.py", line 30, in get_valuation
valuation = await aq.get_valuation(secs, date, fields, n)
File "/usr/local/lib/python3.8/dist-packages/omega/fetcher/abstract_quotes_fetcher.py", line 250, in get_valuation
await Valuation.save(valuation)
File "/usr/local/lib/python3.8/dist-packages/omicron/models/valuation.py", line 128, in save
return await (
File "/usr/local/lib/python3.8/dist-packages/gino/api.py", line 127, in all
return await self._query.bind.all(self._query, *multiparams, **params)
File "/usr/local/lib/python3.8/dist-packages/gino/api.py", line 544, in getattribute
raise self._exception
gino.exceptions.UninitializedError: Gino engine is not initialized.