Closed kotikschmotik closed 9 months ago
You are using a version of greenlet that is too old and incompatible with Python 3.11. Either use a recent version of greenlet, or else downgrade your Python.
Thanks so much for the quick response - really appreciate it!
I added a runtime.txt file to the document root folder and added one of the compatible python versions from Heroku and it worked. I also increased the version of "greenlet" to a newer version.
Hi, first of all, thanks for the amazing tutorial!
I have an issue when deploying on Heroko: I'm using your v0.18 code. When I deploy, I get the following error message connected to the greenlet package:
I would really appreciate your help - thank you!
Here is the entire log:
-----> Building on the Heroku-22 stack -----> Determining which buildpack to use for this app -----> Python app detected -----> No Python version was specified. Using the buildpack default: python-3.11.2 To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes -----> Installing python-3.11.2 -----> Installing pip 23.0.1, setuptools 63.4.3 and wheel 0.38.4 -----> Installing SQLite3 -----> Installing requirements with pip Collecting alembic==1.6.5 Downloading alembic-1.6.5-py2.py3-none-any.whl (164 kB) Collecting Babel==2.9.1 Downloading Babel-2.9.1-py2.py3-none-any.whl (8.8 MB) Collecting blinker==1.4 Downloading blinker-1.4.tar.gz (111 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting certifi==2021.5.30 Downloading certifi-2021.5.30-py2.py3-none-any.whl (145 kB) Collecting chardet==4.0.0 Downloading chardet-4.0.0-py2.py3-none-any.whl (178 kB) Collecting click==8.0.1 Downloading click-8.0.1-py3-none-any.whl (97 kB) Collecting dnspython==2.1.0 Downloading dnspython-2.1.0-py3-none-any.whl (241 kB) Collecting dominate==2.6.0 Downloading dominate-2.6.0-py2.py3-none-any.whl (29 kB) Collecting elasticsearch==7.13.3 Downloading elasticsearch-7.13.3-py2.py3-none-any.whl (356 kB) Collecting email-validator==1.1.3 Downloading email_validator-1.1.3-py2.py3-none-any.whl (18 kB) Collecting Flask==2.0.1 Downloading Flask-2.0.1-py3-none-any.whl (94 kB) Collecting Flask-Babel==2.0.0 Downloading Flask_Babel-2.0.0-py3-none-any.whl (9.3 kB) Collecting Flask-Bootstrap==3.3.7.1 Downloading Flask-Bootstrap-3.3.7.1.tar.gz (456 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting Flask-Login==0.5.0 Downloading Flask_Login-0.5.0-py2.py3-none-any.whl (16 kB) Collecting Flask-Mail==0.9.1 Downloading Flask-Mail-0.9.1.tar.gz (45 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting Flask-Migrate==3.0.1 Downloading Flask_Migrate-3.0.1-py2.py3-none-any.whl (12 kB) Collecting Flask-Moment==1.0.1 Downloading Flask_Moment-1.0.1-py3-none-any.whl (5.7 kB) Collecting Flask-SQLAlchemy==2.5.1 Downloading Flask_SQLAlchemy-2.5.1-py2.py3-none-any.whl (17 kB) Collecting Flask-WTF==0.15.1 Downloading Flask_WTF-0.15.1-py2.py3-none-any.whl (13 kB) Collecting greenlet==1.1.0 Downloading greenlet-1.1.0.tar.gz (85 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting idna==2.10 Downloading idna-2.10-py2.py3-none-any.whl (58 kB) Collecting itsdangerous==2.0.1 Downloading itsdangerous-2.0.1-py3-none-any.whl (18 kB) Collecting Jinja2==3.0.1 Downloading Jinja2-3.0.1-py3-none-any.whl (133 kB) Collecting langdetect==1.0.9 Downloading langdetect-1.0.9.tar.gz (981 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting Mako==1.1.4 Downloading Mako-1.1.4-py2.py3-none-any.whl (75 kB) Collecting MarkupSafe==2.0.1 Downloading MarkupSafe-2.0.1.tar.gz (18 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting PyJWT==2.1.0 Downloading PyJWT-2.1.0-py3-none-any.whl (16 kB) Collecting python-dateutil==2.8.1 Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB) Collecting python-dotenv==0.18.0 Downloading python_dotenv-0.18.0-py2.py3-none-any.whl (18 kB) Collecting python-editor==1.0.4 Downloading python_editor-1.0.4-py3-none-any.whl (4.9 kB) Collecting pytz==2021.1 Downloading pytz-2021.1-py2.py3-none-any.whl (510 kB) Collecting requests==2.25.1 Downloading requests-2.25.1-py2.py3-none-any.whl (61 kB) Collecting six==1.16.0 Downloading six-1.16.0-py2.py3-none-any.whl (11 kB) Collecting SQLAlchemy==1.4.20 Downloading SQLAlchemy-1.4.20.tar.gz (7.7 MB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting urllib3==1.26.6 Downloading urllib3-1.26.6-py2.py3-none-any.whl (138 kB) Collecting visitor==0.1.3 Downloading visitor-0.1.3.tar.gz (3.3 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting Werkzeug==2.0.1 Downloading Werkzeug-2.0.1-py3-none-any.whl (288 kB) Collecting WTForms==2.3.3 Downloading WTForms-2.3.3-py2.py3-none-any.whl (169 kB) Collecting psycopg2==2.9.1 Downloading psycopg2-2.9.1.tar.gz (379 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting gunicorn==20.1.0 Downloading gunicorn-20.1.0-py3-none-any.whl (79 kB) Building wheels for collected packages: blinker, Flask-Bootstrap, Flask-Mail, greenlet, langdetect, MarkupSafe, SQLAlchemy, visitor, psycopg2 Building wheel for blinker (setup.py): started Building wheel for blinker (setup.py): finished with status 'done' Created wheel for blinker: filename=blinker-1.4-py3-none-any.whl size=13458 sha256=6f61d2ef6022e0b39bdb695d1f1cbd16c2f2e881a11516c5af04aef92b2d654a Stored in directory: /tmp/pip-ephem-wheel-cache-doghuvev/wheels/b7/41/21/a7ebaaf2b82cf18d33ae217e6bbafd3fc82ca8b469f9f71d2a Building wheel for Flask-Bootstrap (setup.py): started Building wheel for Flask-Bootstrap (setup.py): finished with status 'done' Created wheel for Flask-Bootstrap: filename=Flask_Bootstrap-3.3.7.1-py3-none-any.whl size=460122 sha256=bca65a3f4886176942a70571279b1f7af7a5acbd772593987fdf00b870100560 Stored in directory: /tmp/pip-ephem-wheel-cache-doghuvev/wheels/3a/a2/90/8d658b1e875f36bdad71cdece9598b08c465d44bea13b9f74c Building wheel for Flask-Mail (setup.py): started Building wheel for Flask-Mail (setup.py): finished with status 'done' Created wheel for Flask-Mail: filename=Flask_Mail-0.9.1-py3-none-any.whl size=7579 sha256=aaa0a15963d29751f73120e54cb556d63d4f4bc02511f10c959b52d0ea1b7f84 Stored in directory: /tmp/pip-ephem-wheel-cache-doghuvev/wheels/f6/38/ab/b955b60e85ca451344be85d42bd267ef32311bd61cb21e5a1c Building wheel for greenlet (setup.py): started Building wheel for greenlet (setup.py): finished with status 'error' error: subprocess-exited-with-error
! Push rejected, failed to compile Python app. ! Push failed