pylakey/aiotdlib

ModuleNotFoundError: No module named 'api'

swimmwatch opened this issue · 0 comments

Hi, @pylakey! I updated to 0.19.0 and found bug:

2022-07-10T13:04:15.832878223Z Traceback (most recent call last):
2022-07-10T13:04:15.832970562Z   File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main
2022-07-10T13:04:15.833316811Z     return _run_code(code, main_globals, None,
2022-07-10T13:04:15.833370906Z   File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code
2022-07-10T13:04:15.833671677Z     exec(code, run_globals)
2022-07-10T13:04:15.833726799Z   File "/app/services/assistant/main.py", line 4, in <module>
2022-07-10T13:04:15.833897127Z     import aiotdlib
2022-07-10T13:04:15.833937764Z   File "/root/.cache/pypoetry/virtualenvs/telegram-assistant-9TtSrW0h-py3.9/lib/python3.9/site-packages/aiotdlib/__init__.py", line 3, in <module>
2022-07-10T13:04:15.834145408Z     from .client import (
2022-07-10T13:04:15.834371747Z   File "/root/.cache/pypoetry/virtualenvs/telegram-assistant-9TtSrW0h-py3.9/lib/python3.9/site-packages/aiotdlib/client.py", line 86, in <module>
2022-07-10T13:04:15.834614988Z     from .client_cache import ClientCache
2022-07-10T13:04:15.834688156Z   File "/root/.cache/pypoetry/virtualenvs/telegram-assistant-9TtSrW0h-py3.9/lib/python3.9/site-packages/aiotdlib/client_cache.py", line 8, in <module>
2022-07-10T13:04:15.834882030Z     from api import (
2022-07-10T13:04:15.834914004Z ModuleNotFoundError: No module named 'api'

I think you need to fix this import:

from api import (