How to deploy apps on herkou which use dlib? - django
I have been trying to deploy a Django web app to Heroku and I have dlib as a dependency. I have tried adding the build pack for which installs dlib and opencv. This is the buildpack that I have tried. But this does not work as this has become stale. I don't know if there is any other way to install dlib on Heroku?
Here is the requirements.txt file for my app:
dj-database-url==0.3.0
dj-static==0.0.6
gunicorn==19.7.1
Unipath==1.0
python-decouple==3
click==6.7
numpy==1.15.4
Pillow==5.2.0
face-recognition-models==0.3.0
cmake
Werkzeug==0.14.1
face-recognition==1.2.3
boost==0.1
boost-py
dlib==19.4.0
psycopg2==2.7.5
whitenoise==3.2
jsonschema==2.6.0
and this is the error that I get when I push to heroku master:
Counting objects: 6, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 704 bytes | 0 bytes/s, done.
Total 6 (delta 3), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: -----> Installing requirements with pip
remote: Collecting Django==2.1.1 (from -r /tmp/build_6d2057dd8ed43f6db2772ce68b91cc1d/requirements.txt (line 1))
remote: Downloading https://files.pythonhosted.org/packages/ca/7e/fc068d164b32552ae3a8f8d5d0280c083f2e8d553e71ecacc21927564561/Django-2.1.1-py3-none-any.whl (7.3MB)
remote: Collecting dj-database-url==0.3.0 (from -r /tmp/build_6d2057dd8ed43f6db2772ce68b91cc1d/requirements.txt (line 2))
remote: Downloading https://files.pythonhosted.org/packages/ef/b6/9283fcf61ced22bf90e7b4a84ba5b53d126b2c9b0dc9b667347698097026/dj_database_url-0.3.0-py2.py3-none-any.whl
remote: Collecting dj-static==0.0.6 (from -r /tmp/build_6d2057dd8ed43f6db2772ce68b91cc1d/requirements.txt (line 3))
remote: Downloading https://files.pythonhosted.org/packages/2b/8f/77a4b8ec50c821193bf9682c7896f12fd0418eb3711a7d66796ede59c23b/dj-static-0.0.6.tar.gz
remote: Collecting gunicorn==19.7.1 (from -r /tmp/build_6d2057dd8ed43f6db2772ce68b91cc1d/requirements.txt (line 4))
remote: Downloading https://files.pythonhosted.org/packages/64/32/becbd4089a4c06f0f9f538a76e9fe0b19a08f010bcb47dcdbfbc640cdf7d/gunicorn-19.7.1-py2.py3-none-any.whl (111kB)
remote: Collecting Unipath==1.0 (from -r /tmp/build_6d2057dd8ed43f6db2772ce68b91cc1d/requirements.txt (line 5))
remote: Downloading https://files.pythonhosted.org/packages/5e/8e/7efe289440c9d3b3f2784516fef1362428d1c00d35ca31c39d7bee1412e8/Unipath-1.0.tar.gz
remote: Collecting python-decouple==3 (from -r /tmp/build_6d2057dd8ed43f6db2772ce68b91cc1d/requirements.txt (line 6))
remote: Downloading https://files.pythonhosted.org/packages/5f/fc/9f3ec3f7844f9045406562512dbb599e9576e0c2ce3192a5e4d459f66e99/python-decouple-3.0.tar.gz
remote: Collecting click==6.7 (from -r /tmp/build_6d2057dd8ed43f6db2772ce68b91cc1d/requirements.txt (line 7))
remote: Downloading https://files.pythonhosted.org/packages/34/c1/8806f99713ddb993c5366c362b2f908f18269f8d792aff1abfd700775a77/click-6.7-py2.py3-none-any.whl (71kB)
remote: Collecting numpy==1.15.4 (from -r /tmp/build_6d2057dd8ed43f6db2772ce68b91cc1d/requirements.txt (line 8))
remote: Downloading https://files.pythonhosted.org/packages/ff/7f/9d804d2348471c67a7d8b5f84f9bc59fd1cefa148986f2b74552f8573555/numpy-1.15.4-cp36-cp36m-manylinux1_x86_64.whl (13.9MB)
remote: Collecting Pillow==5.2.0 (from -r /tmp/build_6d2057dd8ed43f6db2772ce68b91cc1d/requirements.txt (line 9))
remote: Downloading https://files.pythonhosted.org/packages/d1/24/f53ff6b61b3d728b90934bddb4f03f8ab584a7f49299bf3bde56e2952612/Pillow-5.2.0-cp36-cp36m-manylinux1_x86_64.whl (2.0MB)
remote: Collecting face-recognition-models==0.3.0 (from -r /tmp/build_6d2057dd8ed43f6db2772ce68b91cc1d/requirements.txt (line 10))
remote: Downloading https://files.pythonhosted.org/packages/cf/3b/4fd8c534f6c0d1b80ce0973d01331525538045084c73c153ee6df20224cf/face_recognition_models-0.3.0.tar.gz (100.1MB)
remote: Collecting cmake (from -r /tmp/build_6d2057dd8ed43f6db2772ce68b91cc1d/requirements.txt (line 11))
remote: Downloading https://files.pythonhosted.org/packages/45/c4/e69313ade2a3e992e7178744b0e56bdd8f23e79e15066a68cf490504beed/cmake-3.13.3-cp36-cp36m-manylinux1_x86_64.whl (15.9MB)
remote: Collecting Werkzeug==0.14.1 (from -r /tmp/build_6d2057dd8ed43f6db2772ce68b91cc1d/requirements.txt (line 12))
remote: Downloading https://files.pythonhosted.org/packages/20/c4/12e3e56473e52375aa29c4764e70d1b8f3efa6682bef8d0aae04fe335243/Werkzeug-0.14.1-py2.py3-none-any.whl (322kB)
remote: Collecting face-recognition==1.2.3 (from -r /tmp/build_6d2057dd8ed43f6db2772ce68b91cc1d/requirements.txt (line 13))
remote: Downloading https://files.pythonhosted.org/packages/3f/ed/ad9a28042f373d4633fc8b49109b623597d6f193d3bbbef7780a5ee8eef2/face_recognition-1.2.3-py2.py3-none-any.whl
remote: Collecting boost==0.1 (from -r /tmp/build_6d2057dd8ed43f6db2772ce68b91cc1d/requirements.txt (line 14))
remote: Downloading https://files.pythonhosted.org/packages/cd/e9/fd77f318eba4976c9ed9df341c13daebe69cace8723dbd0f3d39a0dddb08/boost-0.1.tar.gz
remote: Collecting boost-py (from -r /tmp/build_6d2057dd8ed43f6db2772ce68b91cc1d/requirements.txt (line 15))
remote: Downloading https://files.pythonhosted.org/packages/f7/be/28a09dacd0770d281bd3798f148dc431503b726b7219cec1fdb6faca46e6/boost_py-0.0.2-py3-none-any.whl
remote: Collecting dlib==19.4.0 (from -r /tmp/build_6d2057dd8ed43f6db2772ce68b91cc1d/requirements.txt (line 16))
remote: Downloading https://files.pythonhosted.org/packages/1d/76/0f91fde37a83a40cf27e6cabd900b975c2667c522a07ae38e31cda2fa486/dlib-19.4.0.tar.gz (4.0MB)
remote: Collecting psycopg2==2.7.5 (from -r /tmp/build_6d2057dd8ed43f6db2772ce68b91cc1d/requirements.txt (line 17))
remote: Downloading https://files.pythonhosted.org/packages/5e/d0/9e2b3ed43001ebed45caf56d5bb9d44ed3ebd68e12b87845bfa7bcd46250/psycopg2-2.7.5-cp36-cp36m-manylinux1_x86_64.whl (2.7MB)
remote: Collecting whitenoise==3.2 (from -r /tmp/build_6d2057dd8ed43f6db2772ce68b91cc1d/requirements.txt (line 18))
remote: Downloading https://files.pythonhosted.org/packages/ed/7b/2d8276a56b6ebb7c0b8652a31e535df67f0e4152037b33ce036e79146ac3/whitenoise-3.2-py2.py3-none-any.whl
remote: Collecting jsonschema==2.6.0 (from -r /tmp/build_6d2057dd8ed43f6db2772ce68b91cc1d/requirements.txt (line 19))
remote: Downloading https://files.pythonhosted.org/packages/77/de/47e35a97b2b05c2fadbec67d44cfcdcd09b8086951b331d82de90d2912da/jsonschema-2.6.0-py2.py3-none-any.whl
remote: Installing collected packages: Django, dj-database-url, dj-static, gunicorn, Unipath, python-decouple, click, numpy, Pillow, face-recognition-models, cmake, Werkzeug, dlib, face-recognition, boost, boost-py, psycopg2, whitenoise, jsonschema
remote: Running setup.py install for dj-static: started
remote: Running setup.py install for dj-static: finished with status 'done'
remote: Running setup.py install for Unipath: started
remote: Running setup.py install for Unipath: finished with status 'done'
remote: Running setup.py install for python-decouple: started
remote: Running setup.py install for python-decouple: finished with status 'done'
remote: Running setup.py install for face-recognition-models: started
remote: Running setup.py install for face-recognition-models: finished with status 'done'
remote: Running setup.py install for dlib: started
remote: Running setup.py install for dlib: finished with status 'error'
remote: Complete output from command /app/.heroku/python/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-otsn5okf/dlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-diaey5c7-record/install-record.txt --single-version-externally-managed --compile:
remote: running install
remote: running build
remote: Detected Python architecture: 64bit
remote: Detected platform: linux
remote: Configuring cmake ...
remote: -- The C compiler identification is GNU 7.3.0
remote: -- The CXX compiler identification is GNU 7.3.0
remote: -- Check for working C compiler: /usr/bin/cc
remote: -- Check for working C compiler: /usr/bin/cc -- works
remote: -- Detecting C compiler ABI info
remote: -- Detecting C compiler ABI info - done
remote: -- Detecting C compile features
remote: -- Detecting C compile features - done
remote: -- Check for working CXX compiler: /usr/bin/c++
remote: -- Check for working CXX compiler: /usr/bin/c++ -- works
remote: -- Detecting CXX compiler ABI info
remote: -- Detecting CXX compiler ABI info - done
remote: -- Detecting CXX compile features
remote: -- Detecting CXX compile features - done
remote: CMake Warning at /tmp/build_6d2057dd8ed43f6db2772ce68b91cc1d/.heroku/python/lib/python3.6/site-packages/cmake/data/share/cmake-3.13/Modules/FindBoost.cmake:1775 (message):
remote: No header defined for python-py34; skipping header check
remote: Call Stack (most recent call first):
remote: /tmp/pip-build-otsn5okf/dlib/dlib/cmake_utils/add_python_module:61 (FIND_PACKAGE)
remote: CMakeLists.txt:6 (include)
remote: -- Could NOT find Boost
remote: CMake Warning at /tmp/build_6d2057dd8ed43f6db2772ce68b91cc1d/.heroku/python/lib/python3.6/site-packages/cmake/data/share/cmake-3.13/Modules/FindBoost.cmake:1775 (message):
remote: No header defined for python-py35; skipping header check
remote: Call Stack (most recent call first):
remote: /tmp/pip-build-otsn5okf/dlib/dlib/cmake_utils/add_python_module:63 (FIND_PACKAGE)
remote: CMakeLists.txt:6 (include)
remote: -- Could NOT find Boost
remote: -- Could NOT find Boost
remote: -- Could NOT find Boost
remote: -- Found PythonLibs: /tmp/build_6d2057dd8ed43f6db2772ce68b91cc1d/.heroku/python/lib/libpython3.6m.a (found suitable version "3.6.8", minimum required is "3.4")
remote: -- *****************************************************************************************************
remote: -- To compile Boost.Python yourself download boost from boost.org and then go into the boost root folder
remote: -- and run these commands:
remote: -- ./bootstrap.sh --with-libraries=python
remote: -- ./b2
remote: -- sudo ./b2 install
remote: -- *****************************************************************************************************
remote: CMake Error at /tmp/pip-build-otsn5okf/dlib/dlib/cmake_utils/add_python_module:116 (message):
remote: Boost python library not found.
remote: Call Stack (most recent call first):
remote: CMakeLists.txt:6 (include)
remote: -- Configuring incomplete, errors occurred!
remote: See also "/tmp/pip-build-otsn5okf/dlib/tools/python/build/CMakeFiles/CMakeOutput.log".
remote: error: cmake configuration failed!
remote:
remote: ----------------------------------------
remote: Command "/app/.heroku/python/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-otsn5okf/dlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-diaey5c7-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-otsn5okf/dlib/
remote: ! Push rejected, failed to compile Python app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to app.
remote:
To https://git.heroku.com/app.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/app.git'
Thanks in advance.
boost==0.1
cmake==0.7.1
boost-py
face_recognition_models
face_recognition
dlib>=19.3.0
numpy
Pillow
scipy>=0.17.0
aniso8601==1.2.0
asn1crypto==0.24.0
certifi==2018.4.16
cffi==1.11.5
chardet==3.0.4
click==6.7
cryptography==1.9
Flask==0.12.1
Flask-Ask==0.9.7
gunicorn==19.7.1
idna==2.6
itsdangerous==0.24
Jinja2==2.10
MarkupSafe==1.0
pycparser==2.18
pyOpenSSL==17.0.0
python-dateutil==2.7.2
PyYAML==3.12
requests==2.18.4
six==1.11.0
Unidecode==1.0.22
urllib3==1.22
Werkzeug==0.14.1
You need cmake to install dlib. To install cmake in heroku you need to buildpack cmake and set that build in order to install dlib.
You can use this buildpack for cmake heroku-buildpack-cmake
Do this in your CLI
Login to heroku
copy paste heroku create --buildpack https://github.com/VovchikMonkey/heroku-buildpack-cmake.git
And finally set the buildpack heroku buildpacks:set
https://github.com/Starkast/heroku-buildpack-cmake
And then deploy
$ git add .
$ git commit -am "make it better"
$ git push heroku master
You need set buildpack as heroku buildpacks:set https://github.com/heroku/heroku-buildpack-python.git
Related
Deploying Django App on Heroku. While Pushing the App on heroku it gives the error
My Django App working well in localhost, but when I am pushing it on the Heroku by using the Git Bash terminal, the following error is shown. What is GCC?. Why these errors are showing up while deploying it on Heroku. Is there any library missing? remote: Building wheel for pyyaml (setup.py): started remote: Building wheel for pyyaml (setup.py): finished with status 'error' remote: ERROR: Command errored out with exit status 1: remote: command: /app/.heroku/python/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qb9qpcl0/pyyaml/setup.py'"'"'; __file__='"'"'/tmp/pip-install-qb9qpcl0/pyyaml/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-s5u8j4v7 remote: In file included from /app/.heroku/python/include/python3.9/unicodeobject.h:1026, remote: from /app/.heroku/python/include/python3.9/Python.h:106, remote: from ext/_yaml.c:4: remote: /app/.heroku/python/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here remote: 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { remote: | ^~~~~~~~~~~~~~~~~~~~~~~~~~ remote: error: command '/usr/bin/gcc' failed with exit code 1 remote: ---------------------------------------- remote: ERROR: Failed building wheel for pyyaml remote: Running setup.py clean for pyyaml remote: Building wheel for strict-rfc3339 (setup.py): started remote: Building wheel for strict-rfc3339 (setup.py): finished with status 'done' remote: Created wheel for strict-rfc3339: filename=strict_rfc3339-0.7-py3-none-any.whl size=18119 sha256=169b25d50478fa157faaa6b19e8714b42c42c771ca6926bb2d728a8fe20e9be8 remote: Stored in directory: /tmp/pip-ephem-wheel-cache-wyzbci7g/wheels/25/38/74/7ec7f77ec64b2907430120931ba588b40e6e26f02d4df5be35 remote: Building wheel for Kivy-Garden (setup.py): started remote: Building wheel for Kivy-Garden (setup.py): finished with status 'done' remote: Created wheel for Kivy-Garden: filename=Kivy_Garden-0.1.4-py3-none-any.whl size=4532 sha256=daf304aa2ab19ab3786da85313c6fa9ab5a8cdefdc3f854480c9268e519c8bc7 remote: Stored in directory: /tmp/pip-ephem-wheel-cache-wyzbci7g/wheels/19/1b/96/2e2906a93ec4b5d3463b0b803112feab5511a2c37dc07faed3 remote: Successfully built anyjson css debugger django-responsive2 djangocms-typedjs doctor future mysqlclient psycopg2 PyGreSQL simplejson strict-rfc3339 Kivy-Garden remote: Failed to build pyyaml remote: Installing collected packages: anyjson, appdirs, asgiref, soupsieve, beautifulsoup4, certifi, chardet, click, colorama, css, debugger, distlib, dj-database-url, pytz, sqlparse, Django, django-appconf, django-crispy-forms, django-appointments, django-bootstrap4, django-classy-tags, django-treebeard, django-sekizai, djangocms-admin-style, django-formtools, django-cms, django-debug-toolbar, whitenoise, psycopg2, django-heroku, six, django-responsive2, Pillow, webencodings, html5lib, djangocms-text-ckeditor, djangocms-typedjs, isodate, jsonschema, pyyaml, rfc3987, simplejson, strict-rfc3339, typing-extensions, mypy-extensions, typing-inspect, doctor, docutils, hpack, hyperframe, h2, hyper, future, iso8601, idna, urllib3, requests, faunadb, filelock, MarkupSafe, Jinja2, itsdangerous, Werkzeug, Flask, gunicorn, zipp, importlib-metadata, Pygments, Kivy-Garden, Kivy, mysqlclient, pycryptodome, PyGreSQL, python-dateutil, python-decouple, virtualenv remote: Running setup.py install for pyyaml: started remote: Running setup.py install for pyyaml: finished with status 'error' remote: ERROR: Command errored out with exit status 1: remote: command: /app/.heroku/python/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qb9qpcl0/pyyaml/setup.py'"'"'; __file__='"'"'/tmp/pip-install-qb9qpcl0/pyyaml/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-eriq4rxn/install-record.txt --single-version-externally-managed --compile --install-headers /app/.heroku/python/include/python3.9/pyyaml remote: cwd: /tmp/pip-install-qb9qpcl0/pyyaml/ remote: /app/.heroku/python/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here remote: 446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { remote: | ^~~~~~~~~~~~~~~~~~~~~~~~~~ remote: error: command '/usr/bin/gcc' failed with exit code 1 remote: ---------------------------------------- remote: ERROR: Command errored out with exit status 1: /app/.heroku/python/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qb9qpcl0/pyyaml/setup.py'"'"'; __file__='"'"'/tmp/pip-install-qb9qpcl0/pyyaml/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-eriq4rxn/install-record.txt --single-version-externally-managed --compile --install-headers /app/.heroku/python/include/python3.9/pyyaml Check the logs for full command output. remote: ! Push rejected, failed to compile Python app. remote: remote: ! Push failed remote: ! remote: ! ## Warning - The same version of this code has already been built: 49aca9f2998b23aee90d2e557a72ff80fcce7091 remote: ! remote: ! We have detected that you have triggered a build from source code with version 49aca9f2998b23aee90d2e557a72ff80fcce7091 remote: ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch. remote: ! remote: ! If you are developing on a branch and deploying via git you must run: remote: ! remote: ! git push heroku <branchname>:main remote: ! remote: ! This article goes into details on the behavior: remote: ! https://devcenter.heroku.com/articles/duplicate-build-version remote: remote: Verifying deploy... remote: remote: ! Push rejected to ayyalayurocare. remote: To https://git.heroku.com/ayyalayurocare.git ! [remote rejected] main -> main (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/ayyalayurocare.git' I have synced the Git Bash terminal with GitHub.I am not getting where exactly this error is coming from.
'"ERROR: No .egg-info directory found" during deployment to heroku
Hello I'm deploying my first project on the heroku and I got an error: ERROR: No .egg-info directory found in /tmp/pip-pip-egg-info-wgaqr45r I have tried to update setuptools but it's not a case. Any Idea what could go wrong? My git bash commands: gg#DESKTOP-PNHHOHJ MINGW64 /c/projekty/tabele/tabenv (master) $ git push heroku master Enumerating objects: 9199, done. Counting objects: 100% (9199/9199), done. Delta compression using up to 4 threads Compressing objects: 100% (5826/5826), done. Writing objects: 100% (9199/9199), 17.71 MiB | 4.97 MiB/s, done. Total 9199 (delta 2302), reused 9182 (delta 2296), pack-reused 0 remote: Compressing source files... done. remote: Building source: remote: remote: -----> Building on the Heroku-20 stack remote: -----> Python app detected remote: cp: cannot stat '/tmp/build_8554d289/requirements.txt': No such file or directory remote: -----> Installing python-3.8.8 remote: -----> Installing pip 20.1.1, setuptools 47.1.1 and wheel 0.34.2 remote: -----> Installing SQLite3 remote: -----> Installing requirements with pip remote: Obtaining file:///tmp/build_8554d289 (from -r /tmp/build_8554d289/requirements.txt (line 1)) remote: ERROR: No .egg-info directory found in /tmp/pip-pip-egg-info-wgaqr45r remote: ! Push rejected, failed to compile Python app. remote: remote: ! Push failed remote: ! remote: ! ## Warning - The same version of this code has already been built: 830c4b88b9a54ed95a860492a144d53bf95172c0 remote: ! remote: ! We have detected that you have triggered a build from source code with version 830c4b88b9a54ed95a860492a144d53bf95172c0 remote: ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch. remote: ! remote: ! If you are developing on a branch and deploying via git you must run: remote: ! remote: ! git push heroku <branchname>:main remote: ! remote: ! This article goes into details on the behavior: remote: ! https://devcenter.heroku.com/articles/duplicate-build-version remote: remote: Verifying deploy... remote: remote: ! Push rejected to thawing-falls-31558. remote: To https://git.heroku.com/thawing-falls-31558.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/thawing-falls-31558.git' (tabenv) gg#DESKTOP-PNHHOHJ MINGW64 /c/projekty/tabele/tabenv (master) $ python.exe -m pip install --upgrade setuptools pip Requirement already satisfied: setuptools in c:\projekty\tabele\tabenv\lib\site-packages (54.0.0) Requirement already satisfied: pip in c:\projekty\tabele\tabenv\lib\site-packages (21.0.1) (tabenv)
error: failed to push some refs to 'https://git.heroku.com/xxxxxxxxx.git'
I got an error,error: failed to push some refs to 'https://git.heroku.com/xxxxxxxxx.git'.I want to upload my application which be made Django to heroku.I run heroku create xxxxxxxxx. And I run git push heroku ,so Counting objects: 6951, done. Delta compression using up to 4 threads. Compressing objects: 100% (5952/5952), done. Writing objects: 100% (6951/6951), 11.21 MiB | 891.00 KiB/s, done. Total 6951 (delta 2087), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: -----> Python app detected remote: ! The latest version of Python 3 is python-3.6.5 (you are using python-3.6.4, which is unsupported). remote: ! We recommend upgrading by specifying the latest version (python-3.6.5). remote: Learn More: https://devcenter.heroku.com/articles/python-runtimes remote: -----> Installing python-3.6.4 remote: -----> Installing pip remote: -----> Installing requirements with pip remote: Collecting alabaster==0.7.10 (from -r /tmp/build_6adefb27873345001cb4512d3fd963e3/requirements.txt (line 1)) remote: Downloading https://files.pythonhosted.org/packages/2e/c3/9b7dcd8548cf2c00531763ba154e524af575e8f36701bacfe5bcadc67440/alabaster-0.7.10-py2.py3-none-any.whl remote: Collecting anaconda-client==1.6.9 (from -r /tmp/build_6adefb27873345001cb4512d3fd963e3/requirements.txt (line 2)) remote: Could not find a version that satisfies the requirement anaconda-client==1.6.9 (from -r /tmp/build_6adefb27873345001cb4512d3fd963e3/requirements.txt (line 2)) (from versions: 1.1.1, 1.2.2) remote: No matching distribution found for anaconda-client==1.6.9 (from -r /tmp/build_6adefb27873345001cb4512d3fd963e3/requirements.txt (line 2)) remote: ! Push rejected, failed to compile Python app. remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to xxxxxxxxx. remote: To https://git.heroku.com/xxxxxxxxx.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/xxxxxxxxx.git' I searched this error,maybe conda install pip command should be installed.So I run it and heroku create command run again, but same error happens.What is wrong?How should I fix this?
The error is telling you that it cannot install anaconda-client, because it can't find version 1.6.9 which you specified in the requirements.txt. The latest version of that library on PyPi is version 1.2.2. However, it appears to be abandoned - why have you specified it at all? What are you using it for?
Heroku: No matching distribution found for PIL==1.1.7
I am trying to push on my Heroku app and getting error while installing PIL on server, I have tried by tweaking my requirements.txt as given below Django==1.4.5 Fabric==1.4.3 --allow-all-external --allow-unverified PIL PIL==1.1.7 #Pillow==2.3.0 Also tried by adding parameters at start of requirements.txt as given below: --allow-all-external --allow-unverified PIL Django==1.4.5 Fabric==1.4.3 PIL==1.1.7 #Pillow==2.3.0 this is failing with error: remote: InsecurePlatformWarning remote: Downloading Django-1.4.5.tar.gz (7.7MB) remote: Collecting Fabric==1.4.3 (from -r requirements.txt (line 2)) remote: Downloading Fabric-1.4.3.tar.gz (221kB) remote: Collecting PIL==1.1.7 (from -r requirements.txt (line 5)) remote: Could not find a version that satisfies the requirement PIL==1.1.7 ( om -r requirements.txt (line 5)) (from versions: ) remote: No matching distribution found for PIL==1.1.7 (from -r requirements.tx (line 5)) remote: remote: remote: ! Push rejected, failed to compile Python app remote: remote: Verifying deploy.... remote: remote: ! Push rejected to my-test-app. remote:
Use Pillow instead of PIL. PIL is not maintained and has not had a new release since 2009. Pillow is a maintained fork.
Deploying Python bottle app with pymssql on heroku
I'm having issues with deploying my website with pymssql onto heroku. I'm using the following build pack and still am having errors: heroku config:add BUILDPACK_URL=https://github.com/amanjain/heroku-buildpack-python-freetds-pymssql.git This is the error that I keep getting: remote: warning: no files found matching 'pymssql_version.py' remote: warning: no files found matching 'win32/freetds.zip' remote: warning: no previously-included files matching '*' found under directory 'docs/_build' remote: Successfully installed pymssql remote: Cleaning up... remote: -----> Installing dependencies with pip remote: Downloading/unpacking bottle==0.12.9 (from -r requirements.txt (line 1)) remote: Running setup.py (path:/tmp/pip_build_u13919/bottle/setup.py) egg_info for package bottle remote: remote: Downloading/unpacking DateTime==4.0.1 (from -r requirements.txt (line 2)) remote: Running setup.py (path:/tmp/pip_build_u13919/DateTime/setup.py) egg_info for package DateTime remote: remote: Downloading/unpacking functools32==3.2.3.post2 (from -r requirements.txt (line 3)) remote: Could not find a version that satisfies the requirement functools32==3.2.3.post2 (from -r requirements.txt (line 3)) (from versions: 3.2.3-1, 3.2.3-1, 3.2.3-2, 3.2.3-2) remote: Cleaning up... remote: No distributions matching the version for functools32==3.2.3.post2 (from -r requirements.txt (line 3)) remote: Storing debug log for failure in /app/.pip/pip.log remote: remote: ! Push rejected, failed to compile Python + FreeTDS + pymssql app remote: remote: Verifying deploy... remote: remote: ! Push rejected to shelf2xerotest1. remote: To https://git.heroku.com/shelf2xerotest1.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/shelf2xerotest1.git' Has anyone else run into this issue?
It looks like that buildpack is built for Linux systems, and it appears you're trying to install it on Windows. In the trace log, it appears to be looking for a FreeTDS build in a win32 directory: warning: no files found matching 'win32/freetds.zip' It also appears to be install Python 2.7. If you're just getting started, I'd strongly recommend using Python 3. Good luck.