Answer the question
In order to leave comments, you need to log in
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
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question