question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deployment to Heroku fails

See original GitHub issue

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Heroku
  • Python version: 3.6.8

Describe the problem

I tried deploying to Heroku using the button in README and it failed.

Source code / logs

-----> Node.js app detected
       
-----> Creating runtime environment
       
       NPM_CONFIG_LOGLEVEL=error
       NODE_ENV=production
       NODE_MODULES_CACHE=true
       NODE_VERBOSE=false
       
-----> Installing binaries
       engines.node (package.json):  8.x
       engines.npm (package.json):   unspecified (use default)
       
       Resolving node version 8.x...
       Downloading and installing node 8.16.0...
       Using default npm version: 6.4.1
       
-----> Installing dependencies
       Installing node modules (package.json)
       up to date in 0.47s
       found 0 vulnerabilities
       
       
-----> Build
       Running heroku-postbuild
       
       > @ heroku-postbuild /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee
       > sh tools/heroku.sh build
       
       
       > swiper@4.3.3 postinstall /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/app/server/static/node_modules/swiper
       > node -e "console.log('\u001b[35m\u001b[1mLove Swiper? Support Vladimir\'s work by donating or pledging on patreon:\u001b[22m\u001b[39m\n > \u001b[32mhttps://patreon.com/vladimirkharlampidi\u001b[0m\n')"
       
       Love Swiper? Support Vladimir's work by donating or pledging on patreon:
        > https://patreon.com/vladimirkharlampidi
       
       added 56 packages from 328 contributors and audited 8432 packages in 7.629s
       found 125 vulnerabilities (4 moderate, 121 high)
         run `npm audit fix` to fix them, or `npm audit` for details
       
       > husky@0.13.4 install /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/app/server/static/node_modules/husky
       > node ./bin/install.js
       
       husky
       setting up hooks
       Can't find .git directory, skipping Git hooks installation
       added 909 packages from 495 contributors and audited 8432 packages in 24.255s
       found 125 vulnerabilities (4 moderate, 121 high)
         run `npm audit fix` to fix them, or `npm audit` for details
       Hash: 1eb0fe5b5d2931821759
       Version: webpack 4.12.0
       Time: 92016ms
       Built at: 2019-07-27 17:22:48
                                     Asset      Size  Chunks                    Chunk Names
         upload_text_classification.js.map   574 KiB       0  [emitted]         upload_text_classification
             upload_text_classification.js   119 KiB       0  [emitted]         upload_text_classification
                         upload_seq2seq.js   119 KiB       2  [emitted]         upload_seq2seq
                                  stats.js   487 KiB       3  [emitted]  [big]  stats
                      sequence_labeling.js   179 KiB       4  [emitted]         sequence_labeling
                                seq2seq.js   176 KiB       5  [emitted]         seq2seq
                               projects.js   112 KiB       6  [emitted]         projects
                                  label.js   114 KiB       7  [emitted]         label
                                  index.js   117 KiB       8  [emitted]         index
                              guideline.js   127 KiB       9  [emitted]         guideline
           download_text_classification.js   118 KiB      10  [emitted]         download_text_classification
             download_sequence_labeling.js   118 KiB      11  [emitted]         download_sequence_labeling
                       download_seq2seq.js   118 KiB      12  [emitted]         download_seq2seq
                document_classification.js   176 KiB      13  [emitted]         document_classification
                       demo_translation.js   193 KiB      14  [emitted]         demo_translation
               demo_text_classification.js   193 KiB      15  [emitted]         demo_text_classification
                      demo_named_entity.js   196 KiB      16  [emitted]         demo_named_entity
                                dataset.js  15.2 KiB      17  [emitted]         dataset
               upload_sequence_labeling.js   119 KiB       1  [emitted]         upload_sequence_labeling
           upload_sequence_labeling.js.map   574 KiB       1  [emitted]         upload_sequence_labeling
                     upload_seq2seq.js.map   574 KiB       2  [emitted]         upload_seq2seq
                              stats.js.map  1.89 MiB       3  [emitted]         stats
                  sequence_labeling.js.map   733 KiB       4  [emitted]         sequence_labeling
                            seq2seq.js.map   720 KiB       5  [emitted]         seq2seq
                           projects.js.map   542 KiB       6  [emitted]         projects
                              label.js.map   550 KiB       7  [emitted]         label
                              index.js.map   398 KiB       8  [emitted]         index
                          guideline.js.map   591 KiB       9  [emitted]         guideline
       download_text_classification.js.map   571 KiB      10  [emitted]         download_text_classification
         download_sequence_labeling.js.map   571 KiB      11  [emitted]         download_sequence_labeling
                   download_seq2seq.js.map   571 KiB      12  [emitted]         download_seq2seq
            document_classification.js.map   722 KiB      13  [emitted]         document_classification
                   demo_translation.js.map   764 KiB      14  [emitted]         demo_translation
           demo_text_classification.js.map   766 KiB      15  [emitted]         demo_text_classification
                  demo_named_entity.js.map   777 KiB      16  [emitted]         demo_named_entity
                            dataset.js.map  67.6 KiB      17  [emitted]         dataset
       Entrypoint dataset = dataset.js dataset.js.map
       Entrypoint demo_named_entity = demo_named_entity.js demo_named_entity.js.map
       Entrypoint demo_text_classification = demo_text_classification.js demo_text_classification.js.map
       Entrypoint demo_translation = demo_translation.js demo_translation.js.map
       Entrypoint document_classification = document_classification.js document_classification.js.map
       Entrypoint download_seq2seq = download_seq2seq.js download_seq2seq.js.map
       Entrypoint download_sequence_labeling = download_sequence_labeling.js download_sequence_labeling.js.map
       Entrypoint download_text_classification = download_text_classification.js download_text_classification.js.map
       Entrypoint guideline = guideline.js guideline.js.map
       Entrypoint index = index.js index.js.map
       Entrypoint label = label.js label.js.map
       Entrypoint projects = projects.js projects.js.map
       Entrypoint seq2seq = seq2seq.js seq2seq.js.map
       Entrypoint sequence_labeling = sequence_labeling.js sequence_labeling.js.map
       Entrypoint stats [big] = stats.js stats.js.map
       Entrypoint upload_seq2seq = upload_seq2seq.js upload_seq2seq.js.map
       Entrypoint upload_sequence_labeling = upload_sequence_labeling.js upload_sequence_labeling.js.map
       Entrypoint upload_text_classification = upload_text_classification.js upload_text_classification.js.map
       [207] ./pages/index.js + 3 modules 249 KiB {8} [built]
             | ./pages/index.js 744 bytes [built]
             |     + 3 hidden modules
       [208] ./pages/upload_sequence_labeling.js + 5 modules 5.52 KiB {1} [built]
             | ./pages/upload_sequence_labeling.js 224 bytes [built]
             |     + 5 hidden modules
       [209] ./pages/download_seq2seq.js + 5 modules 3.7 KiB {12} [built]
             | ./pages/download_seq2seq.js 195 bytes [built]
             |     + 5 hidden modules
       [210] ./pages/projects.js + 5 modules 12 KiB {6} [built]
             | ./pages/projects.js 171 bytes [built]
             |     + 5 hidden modules
       [211] ./pages/upload_text_classification.js + 5 modules 5.45 KiB {0} [built]
             | ./pages/upload_text_classification.js 232 bytes [built]
             |     + 5 hidden modules
       [215] ./pages/label.js + 5 modules 14.5 KiB {7} [built]
             | ./pages/label.js 157 bytes [built]
             |     + 5 hidden modules
       [216] ./pages/download_sequence_labeling.js + 5 modules 4.08 KiB {11} [built]
             | ./pages/download_sequence_labeling.js 232 bytes [built]
             |     + 5 hidden modules
       [217] ./pages/stats.js + 7 modules 7.47 KiB {3} [built]
             | ./pages/stats.js 154 bytes [built]
             |     + 7 hidden modules
       [264] ./pages/sequence_labeling.js 273 bytes {4} [built]
       [265] ./pages/seq2seq.js 197 bytes {5} [built]
       [268] ./pages/document_classification.js 297 bytes {13} [built]
       [269] ./pages/demo_translation.js 456 bytes {14} [built]
       [270] ./pages/demo_text_classification.js 564 bytes {15} [built]
       [271] ./pages/demo_named_entity.js 540 bytes {16} [built]
       [272] ./pages/dataset.js 333 bytes {17} [built]
           + 258 hidden modules
       
       WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
       This can impact web performance.
       Assets: 
         stats.js (487 KiB)
       
       WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
       Entrypoints:
         stats (487 KiB)
             stats.js
       
       
       WARNING in webpack performance recommendations: 
       You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
       For more info visit https://webpack.js.org/guides/code-splitting/
       Done webpack build.
       dataset.js
       dataset.js.map
       demo_named_entity.js
       demo_named_entity.js.map
       demo_text_classification.js
       demo_text_classification.js.map
       demo_translation.js
       demo_translation.js.map
       document_classification.js
       document_classification.js.map
       download_seq2seq.js
       download_seq2seq.js.map
       download_sequence_labeling.js
       download_sequence_labeling.js.map
       download_text_classification.js
       download_text_classification.js.map
       guideline.js
       guideline.js.map
       index.js
       index.js.map
       label.js
       label.js.map
       projects.js
       projects.js.map
       seq2seq.js
       seq2seq.js.map
       sequence_labeling.js
       sequence_labeling.js.map
       stats.js
       stats.js.map
       upload_seq2seq.js
       upload_seq2seq.js.map
       upload_sequence_labeling.js
       upload_sequence_labeling.js.map
       upload_text_classification.js
       upload_text_classification.js.map
       
-----> Caching build
       - node_modules (nothing to cache)
       
-----> Pruning devDependencies
       up to date in 0.434s
       found 0 vulnerabilities
       
       
-----> Build succeeded!
-----> Python app detected
-----> Installing python-3.6.8
-----> Installing pip
-----> Installing SQLite3
-----> Installing requirements with pip
       Collecting apache-libcloud==2.4.0 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 1))
         Downloading https://files.pythonhosted.org/packages/f5/0c/035036a95ecd55954ea7482516c9571f52ebbe6552eb4c73f330bff6e573/apache_libcloud-2.4.0-py2.py3-none-any.whl (2.9MB)
       Collecting applicationinsights==0.11.7 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 2))
         Downloading https://files.pythonhosted.org/packages/e3/c8/7848a0dd85158930b859eb8be1e38fc76a91f0a040d491723ebb356d7358/applicationinsights-0.11.7-py2.py3-none-any.whl (56kB)
       Collecting coverage==4.5.3 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 3))
         Downloading https://files.pythonhosted.org/packages/f8/4e/f28fc04019bac97d301512d904992791569234a06826cd420f78fba9a361/coverage-4.5.3-cp36-cp36m-manylinux1_x86_64.whl (205kB)
       Collecting dj-database-url==0.5.0 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 4))
         Downloading https://files.pythonhosted.org/packages/d4/a6/4b8578c1848690d0c307c7c0596af2077536c9ef2a04d42b00fabaa7e49d/dj_database_url-0.5.0-py2.py3-none-any.whl
       Collecting Django==2.1.7 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 5))
         Downloading https://files.pythonhosted.org/packages/c7/87/fbd666c4f87591ae25b7bb374298e8629816e87193c4099d3608ef11fab9/Django-2.1.7-py3-none-any.whl (7.3MB)
       Collecting django-cloud-browser==0.5.0 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 6))
         Downloading https://files.pythonhosted.org/packages/3e/51/53d6eff9985f5376ab4d33ada451920a9832ac2f22bc96e3528153cea60d/django-cloud-browser-0.5.0.tar.gz (52kB)
       Collecting django-filter==2.0.0 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 7))
         Downloading https://files.pythonhosted.org/packages/6a/8b/8517167a0adc45ce94d0873efb9487dd4cdeff7e10f96e837ad3d58f5837/django_filter-2.0.0-py3-none-any.whl (69kB)
       Collecting django-heroku==0.3.1 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 8))
         Downloading https://files.pythonhosted.org/packages/59/af/5475a876c5addd5a3494db47d9f7be93cc14d3a7603542b194572791b6c6/django_heroku-0.3.1-py2.py3-none-any.whl
       Collecting django-webpack-loader==0.6.0 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 9))
         Downloading https://files.pythonhosted.org/packages/59/95/5f22937ebb7aae30bbd8e1d4f428a36bdd98ac97c3ed12ebba9c6902496c/django_webpack_loader-0.6.0-py2.py3-none-any.whl
       Collecting django-widget-tweaks==1.4.2 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 10))
         Downloading https://files.pythonhosted.org/packages/db/d0/c6b445cddfa7c4e1635ba6e38a0c29250230ff8616e06bffdc49620ec158/django_widget_tweaks-1.4.2-py2.py3-none-any.whl
       Collecting django-polymorphic==2.0.3 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 11))
         Downloading https://files.pythonhosted.org/packages/c1/a9/468973be0538e6c516499db460a34c77bfbf16c32b7f5f1ef09cb5e39401/django_polymorphic-2.0.3-py2.py3-none-any.whl (74kB)
       Collecting django-pyodbc-azure==2.1.0.0 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 12))
         Downloading https://files.pythonhosted.org/packages/18/ab/133c68bbea94839d8f3b8b4aea4f70e1c6b8ac929aba4adbadc458566a76/django_pyodbc_azure-2.1.0.0-py3-none-any.whl
       Collecting django-rest-polymorphic==0.1.8 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 13))
         Downloading https://files.pythonhosted.org/packages/0e/77/b2eef0c31c8c623ef73fcf6cd3c1c7f22d7ee9bbbb0c6ba36ca5a3c9f07a/django_rest_polymorphic-0.1.8-py2.py3-none-any.whl
       Collecting djangorestframework==3.8.2 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 14))
         Downloading https://files.pythonhosted.org/packages/90/30/ad1148098ff0c375df2a30cc4494ed953cf7551fc1ecec30fc951c712d20/djangorestframework-3.8.2-py2.py3-none-any.whl (923kB)
       Collecting djangorestframework-csv==2.1.0 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 15))
         Downloading https://files.pythonhosted.org/packages/dc/49/24b507bfc4089ea9a5861280604648f2604949fd2520f6a4f1a8cb64a41e/djangorestframework-csv-2.1.0.tar.gz
       Collecting djangorestframework-filters==0.10.2 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 16))
         Downloading https://files.pythonhosted.org/packages/c1/f9/12c26113312212b0869ecabdcf3bfb3c14088a2f4fe2107c3a9975f78a8b/djangorestframework_filters-0.10.2-py2.py3-none-any.whl
       Collecting environs==4.1.0 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 17))
         Downloading https://files.pythonhosted.org/packages/1a/cf/266e7875e981a8096500bd8b4858816d482715a7579f3e6501504f036635/environs-4.1.0-py2.py3-none-any.whl
       Collecting djangorestframework-xml==1.4.0 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 18))
         Downloading https://files.pythonhosted.org/packages/c3/29/321c2be2995d28d0daf7c91093520b00ed2c7ac1bd5a5b5a744eed76214a/djangorestframework_xml-1.4.0-py2.py3-none-any.whl
       Collecting Faker==0.8.8 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 19))
         Downloading https://files.pythonhosted.org/packages/1b/80/7f22f9338e87f1fd822d572ee822778ca1f62a48cd33aa65d7ea5502a147/Faker-0.8.8-py2.py3-none-any.whl (707kB)
       Collecting flake8==3.6.0 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 20))
         Downloading https://files.pythonhosted.org/packages/34/a6/49e2849a0e5464e1b5d621f63bc8453066f0f367bb3b744a33fca0bc1ddd/flake8-3.6.0-py2.py3-none-any.whl (68kB)
       Collecting furl==2.0.0 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 21))
         Downloading https://files.pythonhosted.org/packages/bd/b6/302ecc007de38274509d6397300afd2e274aba7f1c3c0a165b5f1e1a836a/furl-2.0.0-py2.py3-none-any.whl
       Collecting gunicorn==19.9.0 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 22))
         Downloading https://files.pythonhosted.org/packages/8c/da/b8dd8deb741bff556db53902d4706774c8e1e67265f69528c14c003644e6/gunicorn-19.9.0-py2.py3-none-any.whl (112kB)
       Collecting lockfile==0.12.2 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 23))
         Downloading https://files.pythonhosted.org/packages/c8/22/9460e311f340cb62d26a38c419b1381b8593b0bb6b5d1f056938b086d362/lockfile-0.12.2-py2.py3-none-any.whl
       Collecting mixer==6.1.3 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 24))
         Downloading https://files.pythonhosted.org/packages/10/c0/5fd76ec8660f0dc4a83fb7e614873bf120b9c3f1c9c35b6185813686eb00/mixer-6.1.3-py2.py3-none-any.whl (41kB)
       Collecting model-mommy==1.6.0 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 25))
         Downloading https://files.pythonhosted.org/packages/0e/e4/19819548d3daadaca6d901eb160cbe63248e18c95f6a05fe03a9ac5d6c93/model_mommy-1.6.0-py2.py3-none-any.whl
       Collecting psycopg2-binary==2.7.7 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 26))
         Downloading https://files.pythonhosted.org/packages/2c/85/97db05dd8f6adff57cd1cb8acceeffdaf4724efec18b9af23f3cd75ad089/psycopg2_binary-2.7.7-cp36-cp36m-manylinux1_x86_64.whl (2.7MB)
       Collecting python-dateutil==2.7.3 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 27))
         Downloading https://files.pythonhosted.org/packages/cf/f5/af2b09c957ace60dcfac112b669c45c8c97e32f94aa8b56da4c6d1682825/python_dateutil-2.7.3-py2.py3-none-any.whl (211kB)
       Collecting pytz==2018.4 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 28))
         Downloading https://files.pythonhosted.org/packages/dc/83/15f7833b70d3e067ca91467ca245bae0f6fe56ddc7451aa0dc5606b120f2/pytz-2018.4-py2.py3-none-any.whl (510kB)
       Collecting requests==2.21.0 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 29))
         Downloading https://files.pythonhosted.org/packages/7d/e3/20f3d364d6c8e5d2353c72a67778eb189176f08e873c9900e10c0287b84b/requests-2.21.0-py2.py3-none-any.whl (57kB)
       Collecting six==1.11.0 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 30))
         Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
       Collecting seqeval==0.0.6 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 31))
         Downloading https://files.pythonhosted.org/packages/51/79/d2cd36181d1a8843b312766a94b5c83ce451194b1e4cd99fb5dd50fa6760/seqeval-0.0.6-py3-none-any.whl
       Collecting social-auth-app-django==3.1.0 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 32))
         Downloading https://files.pythonhosted.org/packages/9f/13/3be586914f69fe9d11beee01b938d329589045dfe90076529c82dae97578/social_auth_app_django-3.1.0-py3-none-any.whl
       Collecting social-auth-core[azuread]==3.0.0 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 33))
         Downloading https://files.pythonhosted.org/packages/e0/65/74826e4dc9017ecae356fbdde139075282d835d8a65f8303106a286e13b2/social_auth_core-3.0.0-py3-none-any.whl (304kB)
       Collecting text-unidecode==1.2 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 34))
         Downloading https://files.pythonhosted.org/packages/79/42/d717cc2b4520fb09e45b344b1b0b4e81aa672001dd128c180fabc655c341/text_unidecode-1.2-py2.py3-none-any.whl (77kB)
       Collecting tornado==5.0.2 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 35))
         Downloading https://files.pythonhosted.org/packages/cf/d1/3be271ae5eba9fb59df63c9891fdc7d8044b999e8ac145994cdbfd2ae66a/tornado-5.0.2.tar.gz (506kB)
       Collecting unittest-xml-reporting==2.5.1 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 36))
         Downloading https://files.pythonhosted.org/packages/7a/84/43c100dcbb042255ed1105c63a700b0310b48b71b01e939ad5c95f1d512e/unittest_xml_reporting-2.5.1-py2.py3-none-any.whl
       Collecting vcrpy==2.0.1 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 37))
         Downloading https://files.pythonhosted.org/packages/10/40/3ae22d519225b2401ba98775b206a798c9e84646599afe0f7cbb4bff10d9/vcrpy-2.0.1-py2.py3-none-any.whl
       Collecting vcrpy-unittest==0.1.7 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 38))
         Downloading https://files.pythonhosted.org/packages/26/1f/da7aa0b470f83fd9c7aa1c47f5ebffc63b8ef4018e2da3c0b10a3bcf7521/vcrpy_unittest-0.1.7-py2.py3-none-any.whl
       Collecting whitenoise[brotli]==4.1.2 (from -r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 39))
         Downloading https://files.pythonhosted.org/packages/fd/2a/b51377ab9826f0551da19951257d2434f46329cd6cfdf9592ea9ca5f6034/whitenoise-4.1.2-py2.py3-none-any.whl
       Collecting psycopg2 (from django-heroku==0.3.1->-r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 8))
         Downloading https://files.pythonhosted.org/packages/5c/1c/6997288da181277a0c29bc39a5f9143ff20b8c99f2a7d059cfb55163e165/psycopg2-2.8.3.tar.gz (377kB)
       Collecting pyodbc>=3.0 (from django-pyodbc-azure==2.1.0.0->-r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 12))
         Downloading https://files.pythonhosted.org/packages/b4/41/f3eb5e56af207a8fcc02f1f84cc3fed9fcf315565e65f418ae815e399929/pyodbc-4.0.26.tar.gz (219kB)
       Collecting unicodecsv (from djangorestframework-csv==2.1.0->-r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 15))
         Downloading https://files.pythonhosted.org/packages/6f/a4/691ab63b17505a26096608cc309960b5a6bdf39e4ba1a793d5f9b1a53270/unicodecsv-0.14.1.tar.gz
       Collecting marshmallow>=2.7.0 (from environs==4.1.0->-r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 17))
         Downloading https://files.pythonhosted.org/packages/77/0b/ee5a4d0b7bc88bb3b59a25fb40e1811810c039f7faa1e87dcdcbcb1fdc33/marshmallow-2.19.5-py2.py3-none-any.whl (50kB)
       Collecting python-dotenv (from environs==4.1.0->-r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 17))
         Downloading https://files.pythonhosted.org/packages/57/c8/5b14d5cffe7bb06bedf9d66c4562bf90330d3d35e7f0266928c370d9dd6d/python_dotenv-0.10.3-py2.py3-none-any.whl
       Collecting defusedxml>=0.3 (from djangorestframework-xml==1.4.0->-r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 18))
         Downloading https://files.pythonhosted.org/packages/06/74/9b387472866358ebc08732de3da6dc48e44b0aacd2ddaa5cb85ab7e986a2/defusedxml-0.6.0-py2.py3-none-any.whl
       Collecting pycodestyle<2.5.0,>=2.4.0 (from flake8==3.6.0->-r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 20))
         Downloading https://files.pythonhosted.org/packages/e5/c6/ce130213489969aa58610042dff1d908c25c731c9575af6935c2dfad03aa/pycodestyle-2.4.0-py2.py3-none-any.whl (62kB)
       Collecting pyflakes<2.1.0,>=2.0.0 (from flake8==3.6.0->-r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 20))
         Downloading https://files.pythonhosted.org/packages/44/98/af7a72c9a543b1487d92813c648cb9b9adfbc96faef5455d60f4439aa99b/pyflakes-2.0.0-py2.py3-none-any.whl (53kB)
       Collecting mccabe<0.7.0,>=0.6.0 (from flake8==3.6.0->-r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 20))
         Downloading https://files.pythonhosted.org/packages/87/89/479dc97e18549e21354893e4ee4ef36db1d237534982482c3681ee6e7b57/mccabe-0.6.1-py2.py3-none-any.whl
       Collecting orderedmultidict>=1.0 (from furl==2.0.0->-r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 21))
         Downloading https://files.pythonhosted.org/packages/04/16/5e95c70bda8fe6ea715005c0db8e602400bdba50ae3c72cb380eba551289/orderedmultidict-1.0.1-py2.py3-none-any.whl
       Collecting idna<2.9,>=2.5 (from requests==2.21.0->-r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 29))
         Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB)
       Collecting urllib3<1.25,>=1.21.1 (from requests==2.21.0->-r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 29))
         Downloading https://files.pythonhosted.org/packages/01/11/525b02e4acc0c747de8b6ccdab376331597c569c42ea66ab0a1dbd36eca2/urllib3-1.24.3-py2.py3-none-any.whl (118kB)
       Collecting chardet<3.1.0,>=3.0.2 (from requests==2.21.0->-r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 29))
         Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
       Collecting certifi>=2017.4.17 (from requests==2.21.0->-r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 29))
         Downloading https://files.pythonhosted.org/packages/69/1b/b853c7a9d4f6a6d00749e94eb6f3a041e342a885b87340b79c1ef73e3a78/certifi-2019.6.16-py2.py3-none-any.whl (157kB)
       Collecting numpy>=1.14.0 (from seqeval==0.0.6->-r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 31))
         Downloading https://files.pythonhosted.org/packages/19/b9/bda9781f0a74b90ebd2e046fde1196182900bd4a8e1ea503d3ffebc50e7c/numpy-1.17.0-cp36-cp36m-manylinux1_x86_64.whl (20.4MB)
       Collecting oauthlib>=1.0.3 (from social-auth-core[azuread]==3.0.0->-r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 33))
         Downloading https://files.pythonhosted.org/packages/58/5e/289e98ff5ad1a321945803000c5f10f5f90eba346d13139ecdd075cfbe17/oauthlib-3.0.2-py2.py3-none-any.whl (143kB)
       Collecting PyJWT>=1.4.0 (from social-auth-core[azuread]==3.0.0->-r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 33))
         Downloading https://files.pythonhosted.org/packages/87/8b/6a9f14b5f781697e51259d81657e6048fd31a113229cf346880bb7545565/PyJWT-1.7.1-py2.py3-none-any.whl
       Collecting python3-openid>=3.0.10; python_version >= "3.0" (from social-auth-core[azuread]==3.0.0->-r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 33))
         Downloading https://files.pythonhosted.org/packages/bd/de/52c5699f52dcee3037db587196dcaf63ffedf5fbeba3183afe9b21a3a89f/python3_openid-3.1.0-py3-none-any.whl (130kB)
       Collecting requests-oauthlib>=0.6.1 (from social-auth-core[azuread]==3.0.0->-r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 33))
         Downloading https://files.pythonhosted.org/packages/c2/e2/9fd03d55ffb70fe51f587f20bcf407a6927eb121de86928b34d162f0b1ac/requests_oauthlib-1.2.0-py2.py3-none-any.whl
       Collecting cryptography>=2.1.1; extra == "azuread" (from social-auth-core[azuread]==3.0.0->-r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 33))
         Downloading https://files.pythonhosted.org/packages/97/18/c6557f63a6abde34707196fb2cad1c6dc0dbff25a200d5044922496668a4/cryptography-2.7-cp34-abi3-manylinux1_x86_64.whl (2.3MB)
       Collecting wrapt (from vcrpy==2.0.1->-r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 37))
         Downloading https://files.pythonhosted.org/packages/23/84/323c2415280bc4fc880ac5050dddfb3c8062c2552b34c2e512eb4aa68f79/wrapt-1.11.2.tar.gz
       Collecting yarl; python_version >= "3.4" (from vcrpy==2.0.1->-r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 37))
         Downloading https://files.pythonhosted.org/packages/fa/c0/9a73968a9f4e4dac8dffb0ba35f932dd7798fe97901f4942c2d38667862c/yarl-1.3.0-cp36-cp36m-manylinux1_x86_64.whl (251kB)
       Collecting PyYAML (from vcrpy==2.0.1->-r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 37))
         Downloading https://files.pythonhosted.org/packages/a3/65/837fefac7475963d1eccf4aa684c23b95aa6c1d033a2c5965ccb11e22623/PyYAML-5.1.1.tar.gz (274kB)
       Collecting Brotli; extra == "brotli" (from whitenoise[brotli]==4.1.2->-r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 39))
         Downloading https://files.pythonhosted.org/packages/f4/68/60a220454dc5083c6d59b41aa90bb1c96fad62a0abf3a33e0ef64b38638a/Brotli-1.0.7-cp36-cp36m-manylinux1_x86_64.whl (352kB)
       Collecting asn1crypto>=0.21.0 (from cryptography>=2.1.1; extra == "azuread"->social-auth-core[azuread]==3.0.0->-r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 33))
         Downloading https://files.pythonhosted.org/packages/ea/cd/35485615f45f30a510576f1a56d1e0a7ad7bd8ab5ed7cdc600ef7cd06222/asn1crypto-0.24.0-py2.py3-none-any.whl (101kB)
       Collecting cffi!=1.11.3,>=1.8 (from cryptography>=2.1.1; extra == "azuread"->social-auth-core[azuread]==3.0.0->-r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 33))
         Downloading https://files.pythonhosted.org/packages/5f/bf/6aa1925384c23ffeb579e97a5569eb9abce41b6310b329352b8252cee1c3/cffi-1.12.3-cp36-cp36m-manylinux1_x86_64.whl (430kB)
       Collecting multidict>=4.0 (from yarl; python_version >= "3.4"->vcrpy==2.0.1->-r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 37))
         Downloading https://files.pythonhosted.org/packages/71/cc/ceb5b8c76e7a23212b9e0353053cc35a9d86c763d852a76d9b941fe81fbc/multidict-4.5.2-cp36-cp36m-manylinux1_x86_64.whl (309kB)
       Collecting pycparser (from cffi!=1.11.3,>=1.8->cryptography>=2.1.1; extra == "azuread"->social-auth-core[azuread]==3.0.0->-r /tmp/build_50fb938815d4a3f443e8b5b29b0f65ee/requirements.txt (line 33))
         Downloading https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz (158kB)
       Installing collected packages: idna, urllib3, chardet, certifi, requests, apache-libcloud, applicationinsights, coverage, dj-database-url, pytz, Django, django-cloud-browser, django-filter, psycopg2, Brotli, whitenoise, django-heroku, django-webpack-loader, django-widget-tweaks, django-polymorphic, pyodbc, django-pyodbc-azure, djangorestframework, six, django-rest-polymorphic, unicodecsv, djangorestframework-csv, djangorestframework-filters, marshmallow, python-dotenv, environs, defusedxml, djangorestframework-xml, python-dateutil, text-unidecode, Faker, pycodestyle, pyflakes, mccabe, flake8, orderedmultidict, furl, gunicorn, lockfile, mixer, model-mommy, psycopg2-binary, numpy, seqeval, oauthlib, PyJWT, python3-openid, requests-oauthlib, asn1crypto, pycparser, cffi, cryptography, social-auth-core, social-auth-app-django, tornado, unittest-xml-reporting, wrapt, multidict, yarl, PyYAML, vcrpy, vcrpy-unittest
         Running setup.py install for django-cloud-browser: started
           Running setup.py install for django-cloud-browser: finished with status 'done'
         Running setup.py install for psycopg2: started
           Running setup.py install for psycopg2: finished with status 'done'
         Running setup.py install for pyodbc: started
           Running setup.py install for pyodbc: finished with status 'error'
           Complete output from command /app/.heroku/python/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-chyhd9mc/pyodbc/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-e2ffmihg-record/install-record.txt --single-version-externally-managed --compile:
           running install
           running build
           running build_ext
           building 'pyodbc' extension
           creating build
           creating build/temp.linux-x86_64-3.6
           creating build/temp.linux-x86_64-3.6/src
           gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.26 -I/app/.heroku/python/include/python3.6m -c src/buffer.cpp -o build/temp.linux-x86_64-3.6/src/buffer.o -Wno-write-strings
           In file included from src/buffer.cpp:12:0:
           src/pyodbc.h:56:10: fatal error: sql.h: No such file or directory
            #include <sql.h>
                     ^~~~~~~
           compilation terminated.
           error: command 'gcc' failed with exit status 1
           
           ----------------------------------------
       Command "/app/.heroku/python/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-chyhd9mc/pyodbc/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-e2ffmihg-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-chyhd9mc/pyodbc/
 !     Push rejected, failed to compile Python app.
 !     Push failed

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
manrajgrovercommented, Jul 31, 2019

Thanks @icoxfog417 for looking into it. Can we have a quick fix for this first? We wish to deploy and use the framework soon.

1reaction
icoxfog417commented, Jul 27, 2019

It seems to be caused by 47bbb741d2aeb871c323a3af9f4abdb7f51e9cc2. We have to install some dependency for build before.

apt-get update
apt-get install g++
apt-get install unixodbc-dev
Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Node.js Deploys - Heroku Dev Center
Your Node.js deploy failed - now what? Start with these simple steps to troubleshoot a build issue. Check the buildpack.
Read more >
Heroku Deploy Failure - ruby on rails - Stack Overflow
git push heroku master. The log says connection built but app not displayed. Any idea where when wrong? Discovering process types Procfile ...
Read more >
Heroku: Most Common Errors Explained - Papertrail
The most common occurrence of this error is on the Heroku-16 stack. Behind the scenes, it's a Linux kernel build that's soon to...
Read more >
7. When It Goes Wrong - Heroku: Up and Running [Book]
Ideally, it means that you just avoided deploying an app with a problem into production, which is great. Though sometimes it can be...
Read more >
3 tricks for solving the `Heroku Application Error` - Medium
After deploying your MongoDB site on Heroku you maybe not expecting this error. photo by Google. Honestly speaking I've also faced this error...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found