Y
Y
Yzurgzd2020-09-22 10:35:09
Python
Yzurgzd, 2020-09-22 10:35:09

Why is there an error with the aiogram library on Heroku?

2020-09-22T07:25:52.012303+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/aiogram/bot/api.py", line 7, in <module>
2020-09-22T07:25:52.012411+00:00 app[worker.1]:     from .. import types
2020-09-22T07:25:52.012412+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/aiogram/types/__init__.py", line 1, in <module>
2020-09-22T07:25:52.012523+00:00 app[worker.1]:     from . import base
2020-09-22T07:25:52.012525+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/aiogram/types/base.py", line 1
2020-09-22T07:25:52.012535+00:00 app[worker.1]:     from __future__ import annotations
2020-09-22T07:25:52.012536+00:00 app[worker.1]:     ^
2020-09-22T07:25:52.012560+00:00 app[worker.1]: SyntaxError: future feature annotations is not defined
2020-09-22T07:25:52.082465+00:00 heroku[worker.1]: Process exited with status 1
2020-09-22T07:25:52.118341+00:00 heroku[worker.1]: State changed from up to crashed


All libraries installed without errors.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kirillinyakin, 2020-09-22
@kirillinyakin

Based on the error, Python 3.6 is being used, although __future__ is only available sort of as of Python 3.7

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question