what could be the build failure reason? I tried different versions of MarkupSafe but still its getting failed. Tried running different branches too, all builds are getting failed.
Does it has any version issues? Are there any other libraries required? Using postgres for db.
-----> Python app detected
! Python has released a security update! Please consider upgrading to python-3.6.12
Learn More: https://devcenter.heroku.com/articles/python-runtimes
-----> Requirements file has been changed, clearing cached dependencies
-----> Installing python-3.6.4
-----> Installing pip 20.1.1, setuptools 47.1.1 and wheel 0.34.2
-----> Installing SQLite3
-----> Installing requirements with pip
Collecting alembic==0.9.6
Downloading alembic-0.9.6.tar.gz (998 kB)
Collecting arrow==0.12.0
Downloading arrow-0.12.0.tar.gz (89 kB)
Collecting blinker==1.4
Downloading blinker-1.4.tar.gz (111 kB)
Collecting click==6.7
Downloading click-6.7-py2.py3-none-any.whl (71 kB)
Collecting dateparser==0.6.0
Downloading dateparser-0.6.0-py2.py3-none-any.whl (68 kB)
Collecting dominate==2.3.1
Downloading dominate-2.3.1.tar.gz (27 kB)
Collecting feedparser==5.2.1
Downloading feedparser-5.2.1.tar.bz2 (192 kB)
Collecting Flask==0.12.2
Downloading Flask-0.12.2-py2.py3-none-any.whl (83 kB)
Collecting Flask-Bootstrap==3.3.7.1
Downloading Flask-Bootstrap-3.3.7.1.tar.gz (456 kB)
Collecting Flask-Login==0.4.1
Downloading Flask-Login-0.4.1.tar.gz (14 kB)
Collecting Flask-Mail==0.9.1
Downloading Flask-Mail-0.9.1.tar.gz (45 kB)
Collecting Flask-Migrate==2.1.1
Downloading Flask_Migrate-2.1.1-py2.py3-none-any.whl (13 kB)
Collecting Flask-PyMongo==0.5.1
Downloading Flask_PyMongo-0.5.1-py3-none-any.whl (10.0 kB)
Collecting Flask-Script==2.0.6
Downloading Flask-Script-2.0.6.tar.gz (43 kB)
Collecting Flask-SQLAlchemy==2.3.2
Downloading Flask_SQLAlchemy-2.3.2-py2.py3-none-any.whl (16 kB)
Collecting Flask-WTF==0.14.2
Downloading Flask_WTF-0.14.2-py2.py3-none-any.whl (14 kB)
Collecting gunicorn==19.7.1
Downloading gunicorn-19.7.1-py2.py3-none-any.whl (111 kB)
Collecting itsdangerous==0.24
Downloading itsdangerous-0.24.tar.gz (46 kB)
Collecting Jinja2==2.10
Downloading Jinja2-2.10-py2.py3-none-any.whl (126 kB)
Collecting Mako==1.0.7
Downloading Mako-1.0.7.tar.gz (564 kB)
Collecting MarkupSafe==1.0
Downloading MarkupSafe-1.0.tar.gz (14 kB)
ERROR: Command errored out with exit status 1:
command: /app/.heroku/python/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-uzscpaqz/MarkupSafe/setup.py'"'"'; __file__='"'"'/tmp/pip-install-uzscpaqz/MarkupSafe/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-jupo_kuh
cwd: /tmp/pip-install-uzscpaqz/MarkupSafe/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-uzscpaqz/MarkupSafe/setup.py", line 6, in <module>
from setuptools import setup, Extension, Feature
ImportError: cannot import name 'Feature'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
! Push rejected, failed to compile Python app.
! Push failed
Try upgrading MarkupSafe to the latest release:
$ pip install --upgrade MarkupSafe
Related
I am trying to deplow a django project to heroku but i am getting this error.
ERROR: Command errored out with exit status 1: /app/.heroku/python/bin/python /app/.heroku/python/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmp5mrz1adn Check the logs for full command output.
! Push rejected, failed to compile Python app.
! Push failed
This is the entire log
ctivity Feed Build LogID 314cb820-4652-417b-9486-61d629e4a6a9
-----> Building on the Heroku-20 stack
-----> Using buildpack: heroku/python
-----> Python app detected
-----> Using Python version specified in runtime.txt
-----> Installing python-3.8.12
-----> Installing pip 20.2.4, setuptools 57.5.0 and wheel 0.37.0
-----> Installing SQLite3
-----> Installing requirements with pip
Collecting alembic==1.6.5
Downloading alembic-1.6.5-py2.py3-none-any.whl (164 kB)
Collecting asgiref==3.3.4
Downloading asgiref-3.3.4-py3-none-any.whl (22 kB)
Collecting Babel==2.9.1
Downloading Babel-2.9.1-py2.py3-none-any.whl (8.8 MB)
Collecting bcrypt==3.2.0
Downloading bcrypt-3.2.0-cp36-abi3-manylinux2010_x86_64.whl (63 kB)
Collecting bidict==0.21.2
Downloading bidict-0.21.2-py2.py3-none-any.whl (37 kB)
Collecting blinker==1.4
Downloading blinker-1.4.tar.gz (111 kB)
Collecting Brotli==1.0.9
Downloading Brotli-1.0.9-cp38-cp38-manylinux1_x86_64.whl (357 kB)
Collecting cffi==1.14.6
Downloading cffi-1.14.6-cp38-cp38-manylinux1_x86_64.whl (411 kB)
Collecting cheroot==8.5.2
Downloading cheroot-8.5.2-py2.py3-none-any.whl (97 kB)
Collecting click==7.1.2
Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting cryptography==3.4.7
Downloading cryptography-3.4.7-cp36-abi3-manylinux2014_x86_64.whl (3.2 MB)
Collecting Django==3.2.8
Downloading Django-3.2.8-py3-none-any.whl (7.9 MB)
Collecting django-ckeditor==6.1.0
Downloading django_ckeditor-6.1.0-py2.py3-none-any.whl (2.4 MB)
Collecting django-filter==2.4.0
Downloading django_filter-2.4.0-py3-none-any.whl (73 kB)
Collecting django-js-asset==1.2.2
Downloading django_js_asset-1.2.2-py2.py3-none-any.whl (5.8 kB)
Collecting django-multiselectfield==0.1.12
Downloading django_multiselectfield-0.1.12-py3-none-any.whl (15 kB)
Collecting dnspython==1.16.0
Downloading dnspython-1.16.0-py2.py3-none-any.whl (188 kB)
Collecting email-validator==1.1.3
Downloading email_validator-1.1.3-py2.py3-none-any.whl (18 kB)
Collecting eventlet==0.31.0
Downloading eventlet-0.31.0-py2.py3-none-any.whl (224 kB)
Collecting Flask==1.1.4
Downloading Flask-1.1.4-py2.py3-none-any.whl (94 kB)
Collecting Flask-BabelEx==0.9.4
Downloading Flask_BabelEx-0.9.4-py3-none-any.whl (8.7 kB)
Collecting Flask-Compress==1.10.1
Downloading Flask_Compress-1.10.1-py3-none-any.whl (7.9 kB)
Collecting Flask-Gravatar==0.5.0
Downloading Flask_Gravatar-0.5.0-py2.py3-none-any.whl (7.5 kB)
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)
Collecting Flask-Migrate==2.7.0
Downloading Flask_Migrate-2.7.0-py2.py3-none-any.whl (13 kB)
Collecting Flask-Paranoid==0.2.0
Downloading Flask_Paranoid-0.2.0-py2.py3-none-any.whl (4.1 kB)
Collecting Flask-Principal==0.4.0
Downloading Flask-Principal-0.4.0.tar.gz (5.5 kB)
Collecting Flask-Security-Too==4.0.1
Downloading Flask_Security_Too-4.0.1-py2.py3-none-any.whl (244 kB)
Collecting Flask-SocketIO==5.1.0
Downloading Flask_SocketIO-5.1.0-py2.py3-none-any.whl (16 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-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (164 kB)
Collecting gunicorn==20.1.0
Downloading gunicorn-20.1.0-py3-none-any.whl (79 kB)
Collecting httpagentparser==1.9.1
Downloading httpagentparser-1.9.1.tar.gz (7.9 kB)
Collecting idna==3.2
Downloading idna-3.2-py3-none-any.whl (59 kB)
Collecting importlib-resources==5.2.2
Downloading importlib_resources-5.2.2-py3-none-any.whl (27 kB)
Collecting itsdangerous==1.1.0
Downloading itsdangerous-1.1.0-py2.py3-none-any.whl (16 kB)
Collecting jaraco.functools==3.3.0
Downloading jaraco.functools-3.3.0-py3-none-any.whl (6.8 kB)
Collecting Jinja2==2.11.3
Downloading Jinja2-2.11.3-py2.py3-none-any.whl (125 kB)
Collecting ldap3==2.9
Downloading ldap3-2.9-py2.py3-none-any.whl (430 kB)
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-cp38-cp38-manylinux2010_x86_64.whl (30 kB)
Collecting more-itertools==8.8.0
Downloading more_itertools-8.8.0-py3-none-any.whl (48 kB)
Collecting paramiko==2.7.2
Downloading paramiko-2.7.2-py2.py3-none-any.whl (206 kB)
Collecting passlib==1.7.4
Downloading passlib-1.7.4-py2.py3-none-any.whl (525 kB)
Collecting pgadmin4==5.4
Downloading pgadmin4-5.4-py3-none-any.whl (99.6 MB)
Collecting Pillow==8.3.1
Downloading Pillow-8.3.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (3.0 MB)
Collecting postgres==4.0
Downloading postgres-4.0-py2.py3-none-any.whl (21 kB)
Collecting psutil==5.8.0
Downloading psutil-5.8.0-cp38-cp38-manylinux2010_x86_64.whl (296 kB)
Collecting psycopg2==2.9.1
Downloading psycopg2-2.9.1.tar.gz (379 kB)
Collecting psycopg2-binary==2.8.6
Downloading psycopg2_binary-2.8.6-cp38-cp38-manylinux1_x86_64.whl (3.0 MB)
Collecting psycopg2-pool==1.1
Downloading psycopg2_pool-1.1-py2.py3-none-any.whl (7.3 kB)
Collecting pyasn1==0.4.8
Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Collecting pycparser==2.20
Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB)
Collecting PyNaCl==1.4.0
Downloading PyNaCl-1.4.0-cp35-abi3-manylinux1_x86_64.whl (961 kB)
Collecting python-dateutil==2.8.1
Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting python-editor==1.0.4
Downloading python_editor-1.0.4-py3-none-any.whl (4.9 kB)
Collecting python-engineio==4.2.0
Downloading python_engineio-4.2.0-py2.py3-none-any.whl (51 kB)
Collecting python-socketio==5.3.0
Downloading python_socketio-5.3.0-py2.py3-none-any.whl (53 kB)
Collecting pytz==2021.1
Downloading pytz-2021.1-py2.py3-none-any.whl (510 kB)
Collecting pywinpty==1.1.1
Downloading pywinpty-1.1.1.tar.gz (48 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /app/.heroku/python/bin/python /app/.heroku/python/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmp5mrz1adn
cwd: /tmp/pip-install-19xig8s3/pywinpty
Complete output (6 lines):
Checking for Rust toolchain...
Cargo, the Rust package manager, is not installed or is not on PATH.
This package requires Rust and Cargo to compile extensions. Install it through
the system's package manager or via https://rustup.rs/
----------------------------------------
ERROR: Command errored out with exit status 1: /app/.heroku/python/bin/python /app/.heroku/python/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmp5mrz1adn Check the logs for full command output.
! Push rejected, failed to compile Python app.
! Push failed
my runtime.txt contains the python version 3.8.12 which is supported by heroku.
Please suggest me what should I do to resolve this error.
After carefully reading log file, here's what I recommend to do for clean deploy.
While venv is activated and you're in project directory (where manage.py live), do the following:
Open requirements.txt
Delete unneeded modules from requirements.txt
Uninstall unneeded modules with pip uninstall module
Now run pip freeze requirements.txt
Deactivate venv
Then add requirements.txt to source control git add -A
Commit your changes git commit -m "deleted unneeded modules"
If you have existed Heroku app, connect to it with
heroku git:remote -a myapp, else pass this step
Deploy, git push heroku master
If you are unsure which modules your project need and I can't determin exactly the project's requirements but if you have basic project, you only need 3 modules which are Django, psycopg2-binary, gunicorn, so do the following for clean deploy:
Delete venv
Outside project directory, create new one
Activate venv
Install the modules you need, probably Django, psycopg2-binary, gunicorn
Now run pip freeze requirements.txt
Deactivate venv
Then add requirements.txt to source control git add -A
Commit your changes git commit -m "deleted unneeded modules"
If you have existed Heroku app, connect to it with
heroku git:remote -a myapp, else pass this step
Deploy, git push heroku master
I am trying to deploy my flask application on the Heroku platform. I am completely new to this platform. I have made my requirements.txt using the command pip freeze > requirements.txt also created a Procfile that contain web: gunicorn app:app
When I am trying to deploy the code on Heroku the same error is showing (Preparing wheel metadata: finished with status 'error') I have gone through the error message and as per the instruction I tried to install the rust package manager through the given link https://rustup.rs/ but still the same error is showing.
Please help me to figure out what I am missing here.
Thanks in advance
-----> Building on the Heroku-20 stack
-----> Determining which buildpack to use for this app
-----> Python app detected
-----> No Python version was specified. Using the buildpack default: python-3.9.6
To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes
-----> Installing python-3.9.6
-----> Installing pip 20.2.4, setuptools 47.1.1 and wheel 0.36.2
-----> Installing SQLite3
-----> Installing requirements with pip
Collecting absl-py==0.12.0
Downloading absl_py-0.12.0-py3-none-any.whl (129 kB)
Collecting altgraph==0.17
Downloading altgraph-0.17-py2.py3-none-any.whl (21 kB)
Collecting anyio==2.2.0
Downloading anyio-2.2.0-py3-none-any.whl (65 kB)
Collecting argon2-cffi==20.1.0
Downloading argon2_cffi-20.1.0-cp35-abi3-manylinux1_x86_64.whl (97 kB)
Collecting async-generator==1.10
Downloading async_generator-1.10-py3-none-any.whl (18 kB)
Collecting attrs==20.3.0
Downloading attrs-20.3.0-py2.py3-none-any.whl (49 kB)
Collecting autopep8==1.5.7
Downloading autopep8-1.5.7-py2.py3-none-any.whl (45 kB)
Collecting Babel==2.9.1
Downloading Babel-2.9.1-py2.py3-none-any.whl (8.8 MB)
Collecting backcall==0.2.0
Downloading backcall-0.2.0-py2.py3-none-any.whl (11 kB)
Collecting beautifulsoup4==4.9.3
Downloading beautifulsoup4-4.9.3-py3-none-any.whl (115 kB)
Collecting bleach==3.3.0
Downloading bleach-3.3.0-py2.py3-none-any.whl (283 kB)
Collecting blinker==1.4
Downloading blinker-1.4.tar.gz (111 kB)
Collecting cachetools==4.2.2
Downloading cachetools-4.2.2-py3-none-any.whl (11 kB)
Collecting catboost==0.25.1
Downloading catboost-0.25.1-cp39-none-manylinux1_x86_64.whl (67.3 MB)
Collecting category-encoders==2.2.2
Downloading category_encoders-2.2.2-py2.py3-none-any.whl (80 kB)
Collecting certifi==2020.12.5
Downloading certifi-2020.12.5-py2.py3-none-any.whl (147 kB)
Collecting cffi==1.14.5
Downloading cffi-1.14.5-cp39-cp39-manylinux1_x86_64.whl (406 kB)
Collecting chardet==4.0.0
Downloading chardet-4.0.0-py2.py3-none-any.whl (178 kB)
Collecting click==7.1.2
Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting colorama==0.4.4
Downloading colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Collecting comtypes==1.1.10
Downloading comtypes-1.1.10.tar.gz (145 kB)
Collecting cycler==0.10.0
Downloading cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
Collecting decorator==5.0.7
Downloading decorator-5.0.7-py3-none-any.whl (8.8 kB)
Collecting defusedxml==0.7.1
Downloading defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)
Collecting deprecation==2.1.0
Downloading deprecation-2.1.0-py2.py3-none-any.whl (11 kB)
Collecting dnspython==2.1.0
Downloading dnspython-2.1.0-py3-none-any.whl (241 kB)
Collecting docopt==0.6.2
Downloading docopt-0.6.2.tar.gz (25 kB)
Collecting email-validator==1.1.3
Downloading email_validator-1.1.3-py2.py3-none-any.whl (18 kB)
Collecting entrypoints==0.3
Downloading entrypoints-0.3-py2.py3-none-any.whl (11 kB)
Collecting et-xmlfile==1.1.0
Downloading et_xmlfile-1.1.0-py3-none-any.whl (4.7 kB)
Collecting Flask==1.1.2
Downloading Flask-1.1.2-py2.py3-none-any.whl (94 kB)
Collecting Flask-Mail==0.9.1
Downloading Flask-Mail-0.9.1.tar.gz (45 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 future==0.18.2
Downloading future-0.18.2.tar.gz (829 kB)
Collecting fuzzywuzzy==0.18.0
Downloading fuzzywuzzy-0.18.0-py2.py3-none-any.whl (18 kB)
Collecting gevent==21.1.2
Downloading gevent-21.1.2-cp39-cp39-manylinux2010_x86_64.whl (6.0 MB)
Collecting google-auth==1.30.0
Downloading google_auth-1.30.0-py2.py3-none-any.whl (146 kB)
Collecting google-auth-oauthlib==0.4.4
Downloading google_auth_oauthlib-0.4.4-py2.py3-none-any.whl (18 kB)
Collecting graphviz==0.16
Downloading graphviz-0.16-py2.py3-none-any.whl (19 kB)
Collecting greenlet==1.0.0
Downloading greenlet-1.0.0-cp39-cp39-manylinux2010_x86_64.whl (163 kB)
Collecting grpcio==1.34.1
Downloading grpcio-1.34.1-cp39-cp39-manylinux2014_x86_64.whl (4.0 MB)
Collecting gunicorn==20.1.0
Downloading gunicorn-20.1.0-py3-none-any.whl (79 kB)
Collecting h5py==3.1.0
Downloading h5py-3.1.0-cp39-cp39-manylinux1_x86_64.whl (4.4 MB)
Collecting idna==2.10
Downloading idna-2.10-py2.py3-none-any.whl (58 kB)
Collecting imbalanced-learn==0.8.0
Downloading imbalanced_learn-0.8.0-py3-none-any.whl (206 kB)
Collecting imblearn==0.0
Downloading imblearn-0.0-py2.py3-none-any.whl (1.9 kB)
Collecting ipykernel==5.5.3
Downloading ipykernel-5.5.3-py3-none-any.whl (120 kB)
Collecting ipython==7.23.0
Downloading ipython-7.23.0-py3-none-any.whl (785 kB)
Collecting ipython-genutils==0.2.0
Downloading ipython_genutils-0.2.0-py2.py3-none-any.whl (26 kB)
Collecting itsdangerous==1.1.0
Downloading itsdangerous-1.1.0-py2.py3-none-any.whl (16 kB)
Collecting jedi==0.18.0
Downloading jedi-0.18.0-py2.py3-none-any.whl (1.4 MB)
Collecting Jinja2==2.11.3
Downloading Jinja2-2.11.3-py2.py3-none-any.whl (125 kB)
Collecting joblib==0.17.0
Downloading joblib-0.17.0-py3-none-any.whl (301 kB)
Collecting Js2Py==0.71
Downloading Js2Py-0.71-py3-none-any.whl (1.0 MB)
Collecting json5==0.9.5
Downloading json5-0.9.5-py2.py3-none-any.whl (17 kB)
Collecting jsonschema==3.2.0
Downloading jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)
Collecting jupyter-client==6.1.12
Downloading jupyter_client-6.1.12-py3-none-any.whl (112 kB)
Collecting jupyter-core==4.7.1
Downloading jupyter_core-4.7.1-py3-none-any.whl (82 kB)
Collecting jupyter-packaging==0.9.2
Downloading jupyter_packaging-0.9.2-py2.py3-none-any.whl (13 kB)
Collecting jupyter-server==1.6.4
Downloading jupyter_server-1.6.4-py3-none-any.whl (377 kB)
Collecting jupyterlab==3.0.14
Downloading jupyterlab-3.0.14-py3-none-any.whl (8.3 MB)
Collecting jupyterlab-pygments==0.1.2
Downloading jupyterlab_pygments-0.1.2-py2.py3-none-any.whl (4.6 kB)
Collecting jupyterlab-server==2.5.0
Downloading jupyterlab_server-2.5.0-py3-none-any.whl (49 kB)
Collecting keras-nightly==2.5.0.dev2021032900
Downloading keras_nightly-2.5.0.dev2021032900-py2.py3-none-any.whl (1.2 MB)
Collecting Keras-Preprocessing==1.1.2
Downloading Keras_Preprocessing-1.1.2-py2.py3-none-any.whl (42 kB)
Collecting kiwisolver==1.3.1
Downloading kiwisolver-1.3.1-cp39-cp39-manylinux1_x86_64.whl (1.2 MB)
Collecting lightgbm==3.2.1
Downloading lightgbm-3.2.1-py3-none-manylinux1_x86_64.whl (2.0 MB)
Collecting Markdown==3.3.4
Downloading Markdown-3.3.4-py3-none-any.whl (97 kB)
Collecting MarkupSafe==1.1.1
Downloading MarkupSafe-1.1.1-cp39-cp39-manylinux2010_x86_64.whl (32 kB)
Collecting matplotlib==3.4.2
Downloading matplotlib-3.4.2-cp39-cp39-manylinux1_x86_64.whl (10.3 MB)
Collecting matplotlib-inline==0.1.2
Downloading matplotlib_inline-0.1.2-py3-none-any.whl (8.2 kB)
Collecting mistune==0.8.4
Downloading mistune-0.8.4-py2.py3-none-any.whl (16 kB)
Collecting mysqlclient==2.0.3
Downloading mysqlclient-2.0.3.tar.gz (88 kB)
Collecting nbclassic==0.2.7
Downloading nbclassic-0.2.7-py3-none-any.whl (18 kB)
Collecting nbclient==0.5.3
Downloading nbclient-0.5.3-py3-none-any.whl (82 kB)
Collecting nbconvert==6.0.7
Downloading nbconvert-6.0.7-py3-none-any.whl (552 kB)
Collecting nbformat==5.1.3
Downloading nbformat-5.1.3-py3-none-any.whl (178 kB)
Collecting nest-asyncio==1.5.1
Downloading nest_asyncio-1.5.1-py3-none-any.whl (5.0 kB)
Collecting notebook==6.3.0
Downloading notebook-6.3.0-py3-none-any.whl (9.5 MB)
Collecting numpy==1.19.4
Downloading numpy-1.19.4-cp39-cp39-manylinux2010_x86_64.whl (14.5 MB)
Collecting oauthlib==3.1.0
Downloading oauthlib-3.1.0-py2.py3-none-any.whl (147 kB)
Collecting openpyxl==3.0.7
Downloading openpyxl-3.0.7-py2.py3-none-any.whl (243 kB)
Collecting opt-einsum==3.3.0
Downloading opt_einsum-3.3.0-py3-none-any.whl (65 kB)
Collecting packaging==20.9
Downloading packaging-20.9-py2.py3-none-any.whl (40 kB)
Collecting pandas==1.1.4
Downloading pandas-1.1.4-cp39-cp39-manylinux1_x86_64.whl (9.3 MB)
Collecting pandocfilters==1.4.3
Downloading pandocfilters-1.4.3.tar.gz (16 kB)
Collecting parso==0.8.2
Downloading parso-0.8.2-py2.py3-none-any.whl (94 kB)
Collecting patsy==0.5.1
Downloading patsy-0.5.1-py2.py3-none-any.whl (231 kB)
Collecting pefile==2021.5.24
Downloading pefile-2021.5.24.tar.gz (66 kB)
Collecting pickleshare==0.7.5
Downloading pickleshare-0.7.5-py2.py3-none-any.whl (6.9 kB)
Collecting Pillow==8.2.0
Downloading Pillow-8.2.0-cp39-cp39-manylinux1_x86_64.whl (3.0 MB)
Collecting pipwin==0.5.1
Downloading pipwin-0.5.1.tar.gz (8.8 kB)
Collecting plotly==4.14.3
Downloading plotly-4.14.3-py2.py3-none-any.whl (13.2 MB)
Collecting prometheus-client==0.10.1
Downloading prometheus_client-0.10.1-py2.py3-none-any.whl (55 kB)
Collecting prompt-toolkit==3.0.18
Downloading prompt_toolkit-3.0.18-py3-none-any.whl (367 kB)
Collecting protobuf==3.17.0
Downloading protobuf-3.17.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB)
Collecting py4j==0.10.9
Downloading py4j-0.10.9-py2.py3-none-any.whl (198 kB)
Collecting pyasn1==0.4.8
Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Collecting pyasn1-modules==0.2.8
Downloading pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
Collecting pycodestyle==2.7.0
Downloading pycodestyle-2.7.0-py2.py3-none-any.whl (41 kB)
Collecting pycparser==2.20
Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB)
Collecting pygame==2.0.1
Downloading pygame-2.0.1-cp39-cp39-manylinux1_x86_64.whl (11.8 MB)
Collecting Pygments==2.9.0
Downloading Pygments-2.9.0-py3-none-any.whl (1.0 MB)
Collecting pyinstaller==4.4
Downloading pyinstaller-4.4-py3-none-manylinux2014_x86_64.whl (1.5 MB)
Collecting pyinstaller-hooks-contrib==2021.2
Downloading pyinstaller_hooks_contrib-2021.2-py2.py3-none-any.whl (190 kB)
Collecting pyjsparser==2.7.1
Downloading pyjsparser-2.7.1.tar.gz (24 kB)
Collecting PyMySQL==1.0.2
Downloading PyMySQL-1.0.2-py3-none-any.whl (43 kB)
Collecting pyparsing==2.4.7
Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Collecting pypiwin32==223
Downloading pypiwin32-223-py3-none-any.whl (1.7 kB)
Collecting PyPrind==2.11.3
Downloading PyPrind-2.11.3-py2.py3-none-any.whl (8.4 kB)
Collecting pyrsistent==0.17.3
Downloading pyrsistent-0.17.3.tar.gz (106 kB)
Collecting pySmartDL==1.3.4
Downloading pySmartDL-1.3.4-py3-none-any.whl (20 kB)
Collecting pyspark==3.1.1
Downloading pyspark-3.1.1.tar.gz (212.3 MB)
Collecting python-dateutil==2.8.1
Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting pyttsx==1.1
Downloading pyttsx-1.1.tar.gz (23 kB)
Collecting pyttsx3==2.90
Downloading pyttsx3-2.90-py3-none-any.whl (39 kB)
Collecting pytz==2020.4
Downloading pytz-2020.4-py2.py3-none-any.whl (509 kB)
Collecting pywin32-ctypes==0.2.0
Downloading pywin32_ctypes-0.2.0-py2.py3-none-any.whl (28 kB)
Collecting pywinpty==1.0.1
Downloading pywinpty-1.0.1.tar.gz (47 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /app/.heroku/python/bin/python /app/.heroku/python/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpnij9ftxr
cwd: /tmp/pip-install-w7oyrrfw/pywinpty
Complete output (6 lines):
Checking for Rust toolchain...
Cargo, the Rust package manager, is not installed or is not on PATH.
This package requires Rust and Cargo to compile extensions. Install it through
the system's package manager or via https://rustup.rs/
----------------------------------------
ERROR: Command errored out with exit status 1: /app/.heroku/python/bin/python /app/.heroku/python/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpnij9ftxr Check the logs for full command output.
! Push rejected, failed to compile Python app.
! Push failed
It is having issues installing pywinpty...
Collecting pywinpty==1.0.1
Downloading pywinpty-1.0.1.tar.gz (47 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /app/.heroku/python/bin/python /app/.heroku/python/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpnij9ftxr
cwd: /tmp/pip-install-w7oyrrfw/pywinpty
Complete output (6 lines):
Checking for Rust toolchain...
Cargo, the Rust package manager, is not installed or is not on PATH.
This package requires Rust and Cargo to compile extensions. Install it through
the system's package manager or via https://rustup.rs/
Heroku is a PaaS, which means the code will not run on your local machine but rather in the "cloud" on a Linux VM, which would not allow you to install pywinpty.
See Push rejected, fails Python App to Heroku
Hi I'm building a Dash app using the Python framework and my build logs are suggesting the app was built successfully. In fact when I go to the Heroku website it shows build successful under the build logs. However, when I view the Heroku URL it says application error. Below are the build logs, any help is appreciated. I've also tried restarting the app as Heroku documentation suggests certain errors can only be captures via the restart method but still no errors have appeared in the logs.
-----> Building on the Heroku-20 stack
-----> Using buildpack: heroku/python
-----> Python app detected
-----> No Python version was specified. Using the same version as the last build: python-3.9.6
To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes
-----> Requirements file has been changed, clearing cached dependencies
-----> Installing python-3.9.6
-----> Installing pip 20.2.4, setuptools 47.1.1 and wheel 0.36.2
-----> Installing SQLite3
-----> Installing requirements with pip
Collecting beautifulsoup4==4.9.3
Downloading beautifulsoup4-4.9.3-py3-none-any.whl (115 kB)
Collecting Brotli==1.0.9
Downloading Brotli-1.0.9-cp39-cp39-manylinux1_x86_64.whl (357 kB)
Collecting bs4==0.0.1
Downloading bs4-0.0.1.tar.gz (1.1 kB)
Collecting click==8.0.1
Downloading click-8.0.1-py3-none-any.whl (97 kB)
Collecting colorama==0.4.4
Downloading colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Collecting dash==1.20.0
Downloading dash-1.20.0.tar.gz (77 kB)
Collecting dash-core-components==1.16.0
Downloading dash_core_components-1.16.0.tar.gz (3.5 MB)
Collecting dash-html-components==1.1.3
Downloading dash_html_components-1.1.3.tar.gz (82 kB)
Collecting dash-renderer==1.9.1
Downloading dash_renderer-1.9.1.tar.gz (1.0 MB)
Collecting dash-table==4.11.3
Downloading dash_table-4.11.3.tar.gz (1.8 MB)
Collecting Flask==2.0.1
Downloading Flask-2.0.1-py3-none-any.whl (94 kB)
Collecting Flask-Compress==1.10.1
Downloading Flask_Compress-1.10.1-py3-none-any.whl (7.9 kB)
Collecting future==0.18.2
Downloading future-0.18.2.tar.gz (829 kB)
Collecting gunicorn==20.1.0
Downloading gunicorn-20.1.0-py3-none-any.whl (79 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 MarkupSafe==2.0.1
Downloading MarkupSafe-2.0.1-cp39-cp39-manylinux2010_x86_64.whl (30 kB)
Collecting numpy==1.21.0
Downloading numpy-1.21.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.7 MB)
Collecting pandas==1.3.0
Downloading pandas-1.3.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (10.6 MB)
Collecting plotly==5.1.0
Downloading plotly-5.1.0-py2.py3-none-any.whl (20.6 MB)
Collecting python-dateutil==2.8.1
Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting pytz==2021.1
Downloading pytz-2021.1-py2.py3-none-any.whl (510 kB)
Collecting six==1.16.0
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting soupsieve==2.2.1
Downloading soupsieve-2.2.1-py3-none-any.whl (33 kB)
Collecting tenacity==8.0.0
Downloading tenacity-8.0.0-py3-none-any.whl (22 kB)
Collecting Werkzeug==2.0.1
Downloading Werkzeug-2.0.1-py3-none-any.whl (288 kB)
Building wheels for collected packages: bs4, dash, dash-core-components, dash-html-components, dash-renderer, dash-table, future
Building wheel for bs4 (setup.py): started
Building wheel for bs4 (setup.py): finished with status 'done'
Created wheel for bs4: filename=bs4-0.0.1-py3-none-any.whl size=1273 sha256=b96960a58059282bdc82d938f2b1b6fb6b3c09d46f25f346c964360e74cfa048
Stored in directory: /tmp/pip-ephem-wheel-cache-bp3kgu6x/wheels/73/2b/cb/099980278a0c9a3e57ff1a89875ec07bfa0b6fcbebb9a8cad3
Building wheel for dash (setup.py): started
Building wheel for dash (setup.py): finished with status 'done'
Created wheel for dash: filename=dash-1.20.0-py3-none-any.whl size=85831 sha256=cfb661b8db05c5bdb3e3d8b83e625e9dfd15352eafca46b4d4a851a496bc5210
Stored in directory: /tmp/pip-ephem-wheel-cache-bp3kgu6x/wheels/4b/cb/a6/817d490fb0a1abb2d078b9e9ee835bf7f039d1fd8b9c61b25e
Building wheel for dash-core-components (setup.py): started
Building wheel for dash-core-components (setup.py): finished with status 'done'
Created wheel for dash-core-components: filename=dash_core_components-1.16.0-py3-none-any.whl size=3540991 sha256=0ee679674b63fe67a3be0634132063574ce02e3621d860f273312f2fe8ab3c36
Stored in directory: /tmp/pip-ephem-wheel-cache-bp3kgu6x/wheels/a1/21/97/554773c64b38bf753f189054921c9217174a96d500f15b7f93
Building wheel for dash-html-components (setup.py): started
Building wheel for dash-html-components (setup.py): finished with status 'done'
Created wheel for dash-html-components: filename=dash_html_components-1.1.3-py3-none-any.whl size=319471 sha256=9d31ced0fc5469eca3d738cf82d1f6e67b8fc4dcfc4670f4f725e0c1ec31886c
Stored in directory: /tmp/pip-ephem-wheel-cache-bp3kgu6x/wheels/f7/eb/55/521dda099c8b09eed0178328cbe10306cb3fee851efd70ae4f
Building wheel for dash-renderer (setup.py): started
Building wheel for dash-renderer (setup.py): finished with status 'done'
Created wheel for dash-renderer: filename=dash_renderer-1.9.1-py3-none-any.whl size=1014878 sha256=36518dc881b0aa2d81d6693ce1acfd3fa02fddd94064b0bb6364aca71ae5025e
Stored in directory: /tmp/pip-ephem-wheel-cache-bp3kgu6x/wheels/52/2f/28/956ce9f7763c886d23f0082829bd726e5dacd6c708a5841c77
Building wheel for dash-table (setup.py): started
Building wheel for dash-table (setup.py): finished with status 'done'
Created wheel for dash-table: filename=dash_table-4.11.3-py3-none-any.whl size=1827618 sha256=15003b86d61d36cd73121c93b98df95d4b095a1460988acf05dfa8637b88f9de
Stored in directory: /tmp/pip-ephem-wheel-cache-bp3kgu6x/wheels/fb/0c/3d/fd6e565aa34ba87d6d110898b3297d2b78ef70339f1c2a483e
Building wheel for future (setup.py): started
Building wheel for future (setup.py): finished with status 'done'
Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491059 sha256=c30e1e964c5831e386abe653832f6f508b4e0feafd66f9cbfa8038fa0791d4de
Stored in directory: /tmp/pip-ephem-wheel-cache-bp3kgu6x/wheels/2f/a0/d3/4030d9f80e6b3be787f19fc911b8e7aa462986a40ab1e4bb94
Successfully built bs4 dash dash-core-components dash-html-components dash-renderer dash-table future
Installing collected packages: soupsieve, beautifulsoup4, Brotli, bs4, click, colorama, itsdangerous, Werkzeug, MarkupSafe, Jinja2, Flask, Flask-Compress, six, tenacity, plotly, dash-renderer, dash-core-components, dash-html-components, dash-table, future, dash, gunicorn, numpy, pytz, python-dateutil, pandas
Successfully installed Brotli-1.0.9 Flask-2.0.1 Flask-Compress-1.10.1 Jinja2-3.0.1 MarkupSafe-2.0.1 Werkzeug-2.0.1 beautifulsoup4-4.9.3 bs4-0.0.1 click-8.0.1 colorama-0.4.4 dash-1.20.0 dash-core-components-1.16.0 dash-html-components-1.1.3 dash-renderer-1.9.1 dash-table-4.11.3 future-0.18.2 gunicorn-20.1.0 itsdangerous-2.0.1 numpy-1.21.0 pandas-1.3.0 plotly-5.1.0 python-dateutil-2.8.1 pytz-2021.1 six-1.16.0 soupsieve-2.2.1 tenacity-8.0.0
-----> Discovering process types
Procfile declares types -> web
-----> Compressing...
Done: 113.1M
-----> Launching...
Released v4
https://senate-dash-app.herokuapp.com/ deployed to Heroku
This question already has answers here:
Error trying to install Postgres for python (psycopg2)
(12 answers)
pg_config executable not found
(54 answers)
Closed 1 year ago.
When I'm trying to install the requirements for a project with pip install -r requirements.txt
It keeps failing with the following output.
[sarthak#envy cyc1eon]$ pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Collecting asgiref==3.2.10
Downloading asgiref-3.2.10-py3-none-any.whl (19 kB)
Collecting dj-database-url==0.5.0
Downloading dj_database_url-0.5.0-py2.py3-none-any.whl (5.5 kB)
Collecting Django==3.0.8
Downloading Django-3.0.8-py3-none-any.whl (7.5 MB)
|████████████████████████████████| 7.5 MB 2.6 MB/s
Collecting django-heroku==0.3.1
Downloading django_heroku-0.3.1-py2.py3-none-any.whl (6.2 kB)
Collecting gunicorn==20.0.4
Downloading gunicorn-20.0.4-py2.py3-none-any.whl (77 kB)
|████████████████████████████████| 77 kB 5.5 MB/s
Requirement already satisfied: setuptools>=3.0 in /usr/lib/python3.9/site-packages (from gunicorn==20.0.4->-r requirements.txt (line 5)) (54.2.0)
Collecting psycopg2==2.8.5
Downloading psycopg2-2.8.5.tar.gz (380 kB)
|████████████████████████████████| 380 kB 9.7 MB/s
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-lc8h8hyn/psycopg2_4a4c96a147204fd489df1a2f7201063a/setup.py'"'"'; __file__='"'"'/tmp/pip-install-lc8h8hyn/psycopg2_4a4c96a147204fd489df1a2f7201063a/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-ztzh9r6w
cwd: /tmp/pip-install-lc8h8hyn/psycopg2_4a4c96a147204fd489df1a2f7201063a/
Complete output (23 lines):
running egg_info
creating /tmp/pip-pip-egg-info-ztzh9r6w/psycopg2.egg-info
writing /tmp/pip-pip-egg-info-ztzh9r6w/psycopg2.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-ztzh9r6w/psycopg2.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-pip-egg-info-ztzh9r6w/psycopg2.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-ztzh9r6w/psycopg2.egg-info/SOURCES.txt'
Error: pg_config executable not found.
pg_config is required to build psycopg2 from source. Please add the directory
containing pg_config to the $PATH or specify the full executable path with the
option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
If you prefer to avoid building psycopg2 from source, please install the PyPI
'psycopg2-binary' package instead.
For further information please check the 'doc/src/install.rst' file (also at
<https://www.psycopg.org/docs/install.html>).
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
The requirements for the project are
asgiref==3.2.10
dj-database-url==0.5.0
Django==3.0.8
django-heroku==0.3.1
gunicorn==20.0.4
psycopg2==2.8.5
psycopg2-binary==2.8.5
python-decouple==3.3
pytz==2020.1
sqlparse==0.3.1
whitenoise==5.1.0
The error message is clear - missing pg-config and thus unable to build from source. Alternative to building from source is to use psycorg2-binary - already present in the requirements.txt and suggested in the error message itself:
If you prefer to avoid building psycopg2 from source, please install
the PyPI 'psycopg2-binary' package instead
Just remove psycopg2==2.8.5 from requirements.txt.
Alternatively check pg_config executable not found
try replacing:
asgiref==3.2.10
dj-database-url==0.5.0
Django==3.0.8
django-heroku==0.3.1
gunicorn==20.0.4
psycopg2==2.8.5
psycopg2-binary==2.8.5
python-decouple==3.3
pytz==2020.1
sqlparse==0.3.1
whitenoise==5.1.0
in requirements.txt by:
asgiref
dj-database-url
Django
django-heroku
gunicorn
psycopg2
psycopg2-binary
python-decouple
pytz
sqlparse
whitenoise
I was trying to do something with python, so I tried to install arcade. Just pip install arcade didn't work and I've tried other stuff too like following this link. None of it worked, It always gave me the same error. This is the whole log.
Collecting arcade
Using cached arcade-2.5.2-py3-none-any.whl (38.3 MB)
Collecting numpy==1.19.2
Using cached numpy-1.19.2.zip (7.3 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: still running...
Preparing wheel metadata: finished with status 'done'
Collecting pytiled-parser==0.9.4a3
Using cached pytiled_parser-0.9.4a3-py3-none-any.whl (15 kB)
Collecting pillow~=8.0
Using cached Pillow-8.1.0-cp39-cp39-macosx_10_10_x86_64.whl (2.2 MB)
Collecting pyglet<2,>=1.5.11
Using cached pyglet-1.5.14-py3-none-any.whl (1.1 MB)
Collecting pymunk~=5.7
Using cached pymunk-5.7.0-py2.py3-none-macosx_10_13_x86_64.whl (201 kB)
Collecting cffi!=1.13.1
Using cached cffi-1.14.4-cp39-cp39-macosx_10_9_x86_64.whl (177 kB)
Collecting pyyaml~=5.3
Using cached PyYAML-5.4-cp39-cp39-macosx_10_9_x86_64.whl (259 kB)
Collecting shapely~=1.7
Using cached Shapely-1.7.1.tar.gz (383 kB)
ERROR: Command errored out with exit status 1:
command: /Users/AaronKanaron/PycharmProjects/arcadeTest/venv/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/vq/283xsscx57v67tffn6yn4_s80000gp/T/pip-install-dncw7kpb/shapely_c0fed3cf0b1b47b7b3c8397e61f3a6f7/setup.py'"'"'; __file__='"'"'/private/var/folders/vq/283xsscx57v67tffn6yn4_s80000gp/T/pip-install-dncw7kpb/shapely_c0fed3cf0b1b47b7b3c8397e61f3a6f7/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/vq/283xsscx57v67tffn6yn4_s80000gp/T/pip-pip-egg-info-4y1krwzl
cwd: /private/var/folders/vq/283xsscx57v67tffn6yn4_s80000gp/T/pip-install-dncw7kpb/shapely_c0fed3cf0b1b47b7b3c8397e61f3a6f7/
Complete output (12 lines):
Failed `CDLL(/Library/Frameworks/GEOS.framework/Versions/Current/GEOS)`
Failed `CDLL(/opt/local/lib/libgeos_c.dylib)`
Failed `CDLL(/usr/local/lib/libgeos_c.dylib)`
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/vq/283xsscx57v67tffn6yn4_s80000gp/T/pip-install-dncw7kpb/shapely_c0fed3cf0b1b47b7b3c8397e61f3a6f7/setup.py", line 85, in <module>
from shapely._buildcfg import geos_version_string, geos_version, \
File "/private/var/folders/vq/283xsscx57v67tffn6yn4_s80000gp/T/pip-install-dncw7kpb/shapely_c0fed3cf0b1b47b7b3c8397e61f3a6f7/shapely/_buildcfg.py", line 190, in <module>
lgeos = load_dll('geos_c', fallbacks=alt_paths)
File "/private/var/folders/vq/283xsscx57v67tffn6yn4_s80000gp/T/pip-install-dncw7kpb/shapely_c0fed3cf0b1b47b7b3c8397e61f3a6f7/shapely/_buildcfg.py", line 162, in load_dll
raise OSError(
OSError: Could not find library geos_c or load any of its variants ['/Library/Frameworks/GEOS.framework/Versions/Current/GEOS', '/opt/local/lib/libgeos_c.dylib', '/usr/local/lib/libgeos_c.dylib']
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
It can't find setup.py, and what I've searched nothing has helped me so far. So if any of you could help me with this problem it would be fantastic.
You have to install the library GEOS on your system. Run this command - brew install geos.
If you don't have brew, you can download it here: https://brew.sh
On ubuntu, you can do $ sudo apt-get install libgeos-dev.