Dependency problem (pefile -> future) during pip installing pyinstaller - python

I cannot install pyinstaller because of some dependecy conflicts. Start and the and of the log below...
Using Python 3.7.9, pip 21.3.1, windows 7 64, instaling from cmd line as administrator
Log:
Collecting pyinstaller
Using cached pyinstaller-4.7-py3-none-win_amd64.whl (2.0 MB)
Collecting pyinstaller-hooks-contrib>=2020.6
Using cached pyinstaller_hooks_contrib-2021.4-py2.py3-none-any.whl (215 kB)
Collecting altgraph
Using cached altgraph-0.17.2-py2.py3-none-any.whl (21 kB)
Requirement already satisfied: setuptools in c:\python\spyder\pkgs (from pyinstaller) (59.2.0)
Requirement already satisfied: importlib-metadata in c:\python\spyder\pkgs (from pyinstaller) (4.2.0)
Requirement already satisfied: pywin32-ctypes>=0.2.0 in c:\python\spyder\pkgs (from pyinstaller) (0.2.0)
Collecting pefile>=2017.8.1
Using cached pefile-2021.9.3.tar.gz (72 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting future
Using cached future-0.18.2.tar.gz (829 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
Using cached future-0.18.1.tar.gz (828 kB)
...
...
Using cached pyinstaller-2.0.zip (3.4 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
Using cached pyinstaller-2.0.tar.bz2 (2.5 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
The conflict is caused by:
pefile 2021.9.3 depends on future
...
pefile 2017.8.1 depends on future
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

Related

How to solve this Error while installing libraries in Python?

While executing this code pip install simpletransformers datasets tqdm pandas
I'm getting errors. I'm attaching the logs.
Collecting simpletransformers
Using cached simpletransformers-0.63.9-py3-none-any.whl (250 kB)
Collecting datasets
Using cached datasets-2.9.0-py3-none-any.whl (462 kB)
Collecting tqdm
Using cached tqdm-4.64.1-py2.py3-none-any.whl (78 kB)
Collecting pandas
Using cached pandas-1.5.3-cp311-cp311-win_amd64.whl (10.3 MB)
Collecting numpy
Using cached numpy-1.24.1-cp311-cp311-win_amd64.whl (14.8 MB)
Requirement already satisfied: requests in d:\program files\python\lib\site-packages (from simpletransformers) (2.28.2)
Collecting regex
Using cached regex-2022.10.31-cp311-cp311-win_amd64.whl (267 kB)
Collecting transformers>=4.6.0
Using cached transformers-4.26.0-py3-none-any.whl (6.3 MB)
Collecting scipy
Using cached scipy-1.10.0-cp311-cp311-win_amd64.whl (42.2 MB)
Collecting scikit-learn
Using cached scikit_learn-1.2.1-cp311-cp311-win_amd64.whl (8.2 MB)
Collecting seqeval
Using cached seqeval-1.2.2-py3-none-any.whl
Collecting tensorboard
Using cached tensorboard-2.11.2-py3-none-any.whl (6.0 MB)
Requirement already satisfied: tokenizers in d:\program files\python\lib\site-packages (from simpletransformers) (0.13.2)
Collecting wandb>=0.10.32
Using cached wandb-0.13.9-py2.py3-none-any.whl (2.0 MB)
Collecting streamlit
Using cached streamlit-1.17.0-py2.py3-none-any.whl (9.3 MB)
Collecting sentencepiece
Using cached sentencepiece-0.1.97.tar.gz (524 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting pyarrow>=6.0.0
Using cached pyarrow-11.0.0-cp311-cp311-win_amd64.whl (20.5 MB)
Collecting dill<0.3.7
Using cached dill-0.3.6-py3-none-any.whl (110 kB)
Collecting xxhash
Using cached xxhash-3.2.0-cp311-cp311-win_amd64.whl (30 kB)
Collecting multiprocess
Using cached multiprocess-0.70.14-py310-none-any.whl (134 kB)
Collecting fsspec[http]>=2021.11.1
Using cached fsspec-2023.1.0-py3-none-any.whl (143 kB)
Collecting aiohttp
Using cached aiohttp-3.8.3-cp311-cp311-win_amd64.whl (317 kB)
Collecting huggingface-hub<1.0.0,>=0.2.0
Using cached huggingface_hub-0.12.0-py3-none-any.whl (190 kB)
Requirement already satisfied: packaging in d:\program files\python\lib\site-packages (from datasets) (23.0)
Collecting responses<0.19
Using cached responses-0.18.0-py3-none-any.whl (38 kB)
Requirement already satisfied: pyyaml>=5.1 in d:\program files\python\lib\site-packages (from datasets) (6.0)
Requirement already satisfied: colorama in d:\program files\python\lib\site-packages (from tqdm) (0.4.6)
Requirement already satisfied: python-dateutil>=2.8.1 in d:\program files\python\lib\site-packages (from pandas) (2.8.2)
Requirement already satisfied: pytz>=2020.1 in d:\program files\python\lib\site-packages (from pandas) (2022.7.1)
Requirement already satisfied: attrs>=17.3.0 in d:\program files\python\lib\site-packages (from aiohttp->datasets) (22.2.0)
Collecting charset-normalizer<3.0,>=2.0
Using cached charset_normalizer-2.1.1-py3-none-any.whl (39 kB)
Collecting multidict<7.0,>=4.5
Using cached multidict-6.0.4-cp311-cp311-win_amd64.whl (28 kB)
Collecting async-timeout<5.0,>=4.0.0a3
Using cached async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting yarl<2.0,>=1.0
Using cached yarl-1.8.2-cp311-cp311-win_amd64.whl (55 kB)
Collecting frozenlist>=1.1.1
Using cached frozenlist-1.3.3-cp311-cp311-win_amd64.whl (32 kB)
Collecting aiosignal>=1.1.2
Using cached aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Collecting filelock
Using cached filelock-3.9.0-py3-none-any.whl (9.7 kB)
Collecting typing-extensions>=3.7.4.3
Using cached typing_extensions-4.4.0-py3-none-any.whl (26 kB)
Requirement already satisfied: six>=1.5 in d:\program files\python\lib\site-packages (from python-dateutil>=2.8.1->pandas) (1.16.0)
Requirement already satisfied: idna<4,>=2.5 in d:\program files\python\lib\site-packages (from requests->simpletransformers) (3.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in d:\program files\python\lib\site-packages (from requests->simpletransformers) (1.26.14)
Requirement already satisfied: certifi>=2017.4.17 in d:\program files\python\lib\site-packages (from requests->simpletransformers) (2022.12.7)
Collecting Click!=8.0.0,>=7.0
Using cached click-8.1.3-py3-none-any.whl (96 kB)
Collecting GitPython>=1.0.0
Using cached GitPython-3.1.30-py3-none-any.whl (184 kB)
Requirement already satisfied: psutil>=5.0.0 in d:\program files\python\lib\site-packages (from wandb>=0.10.32->simpletransformers) (5.9.4)
Collecting sentry-sdk>=1.0.0
Using cached sentry_sdk-1.14.0-py2.py3-none-any.whl (178 kB)
Collecting docker-pycreds>=0.4.0
Using cached docker_pycreds-0.4.0-py2.py3-none-any.whl (9.0 kB)
Collecting pathtools
Using cached pathtools-0.1.2-py3-none-any.whl
Collecting setproctitle
Using cached setproctitle-1.3.2-cp311-cp311-win_amd64.whl (11 kB)
Requirement already satisfied: setuptools in d:\program files\python\lib\site-packages (from wandb>=0.10.32->simpletransformers) (65.5.0)
Collecting appdirs>=1.4.3
Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting protobuf!=4.21.0,<5,>=3.19.0
Using cached protobuf-4.21.12-cp310-abi3-win_amd64.whl (527 kB)
Collecting joblib>=1.1.1
Using cached joblib-1.2.0-py3-none-any.whl (297 kB)
Collecting threadpoolctl>=2.0.0
Using cached threadpoolctl-3.1.0-py3-none-any.whl (14 kB)
Collecting altair>=3.2.0
Using cached altair-4.2.2-py3-none-any.whl (813 kB)
Collecting blinker>=1.0.0
Using cached blinker-1.5-py2.py3-none-any.whl (12 kB)
Collecting cachetools>=4.0
Using cached cachetools-5.3.0-py3-none-any.whl (9.3 kB)
Collecting importlib-metadata>=1.4
Using cached importlib_metadata-6.0.0-py3-none-any.whl (21 kB)
Collecting pillow>=6.2.0
Using cached Pillow-9.4.0-cp311-cp311-win_amd64.whl (2.5 MB)
Collecting protobuf!=4.21.0,<5,>=3.19.0
Using cached protobuf-3.20.3-py2.py3-none-any.whl (162 kB)
Collecting pympler>=0.9
Using cached Pympler-1.0.1-py3-none-any.whl (164 kB)
Collecting rich>=10.11.0
Using cached rich-13.3.1-py3-none-any.whl (239 kB)
Collecting semver
Using cached semver-2.13.0-py2.py3-none-any.whl (12 kB)
Collecting toml
Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting tzlocal>=1.1
Using cached tzlocal-4.2-py3-none-any.whl (19 kB)
Collecting validators>=0.2
Using cached validators-0.20.0-py3-none-any.whl
Collecting pydeck>=0.1.dev5
Using cached pydeck-0.8.0-py2.py3-none-any.whl (4.7 MB)
Requirement already satisfied: tornado>=5.0 in d:\program files\python\lib\site-packages (from streamlit->simpletransformers) (6.2)
Collecting watchdog
Using cached watchdog-2.2.1-py3-none-win_amd64.whl (78 kB)
Collecting absl-py>=0.4
Using cached absl_py-1.4.0-py3-none-any.whl (126 kB)
Collecting grpcio>=1.24.3
Using cached grpcio-1.51.1-cp311-cp311-win_amd64.whl (3.7 MB)
Collecting google-auth<3,>=1.6.3
Using cached google_auth-2.16.0-py2.py3-none-any.whl (177 kB)
Collecting google-auth-oauthlib<0.5,>=0.4.1
Using cached google_auth_oauthlib-0.4.6-py2.py3-none-any.whl (18 kB)
Collecting markdown>=2.6.8
Using cached Markdown-3.4.1-py3-none-any.whl (93 kB)
Collecting tensorboard-data-server<0.7.0,>=0.6.0
Using cached tensorboard_data_server-0.6.1-py3-none-any.whl (2.4 kB)
Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in d:\program files\python\lib\site-packages (from tensorboard->simpletransformers) (1.8.1)
Collecting werkzeug>=1.0.1
Using cached Werkzeug-2.2.2-py3-none-any.whl (232 kB)
Collecting wheel>=0.26
Using cached wheel-0.38.4-py3-none-any.whl (36 kB)
Collecting entrypoints
Using cached entrypoints-0.4-py3-none-any.whl (5.3 kB)
Requirement already satisfied: jinja2 in d:\program files\python\lib\site-packages (from altair>=3.2.0->streamlit->simpletransformers) (3.1.2)
Requirement already satisfied: jsonschema>=3.0 in d:\program files\python\lib\site-packages (from altair>=3.2.0->streamlit->simpletransformers) (4.17.3)
Collecting toolz
Using cached toolz-0.12.0-py3-none-any.whl (55 kB)
Collecting gitdb<5,>=4.0.1
Using cached gitdb-4.0.10-py3-none-any.whl (62 kB)
Collecting pyasn1-modules>=0.2.1
Using cached pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
Collecting rsa<5,>=3.1.4
Using cached rsa-4.9-py3-none-any.whl (34 kB)
Collecting requests-oauthlib>=0.7.0
Using cached requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB)
Collecting zipp>=0.5
Using cached zipp-3.12.0-py3-none-any.whl (6.6 kB)
Collecting markdown-it-py<3.0.0,>=2.1.0
Using cached markdown_it_py-2.1.0-py3-none-any.whl (84 kB)
Requirement already satisfied: pygments<3.0.0,>=2.14.0 in d:\program files\python\lib\site-packages (from rich>=10.11.0->streamlit->simpletransformers) (2.14.0)
Collecting pytz-deprecation-shim
Using cached pytz_deprecation_shim-0.1.0.post0-py2.py3-none-any.whl (15 kB)
Collecting tzdata
Using cached tzdata-2022.7-py2.py3-none-any.whl (340 kB)
Requirement already satisfied: decorator>=3.4.0 in d:\program files\python\lib\site-packages (from validators>=0.2->streamlit->simpletransformers) (5.1.1)
Requirement already satisfied: MarkupSafe>=2.1.1 in d:\program files\python\lib\site-packages (from werkzeug>=1.0.1->tensorboard->simpletransformers) (2.1.2)
Collecting smmap<6,>=3.0.1
Using cached smmap-5.0.0-py3-none-any.whl (24 kB)
Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in d:\program files\python\lib\site-packages (from jsonschema>=3.0->altair>=3.2.0->streamlit->simpletransformers) (0.19.3)
Collecting mdurl~=0.1
Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Collecting pyasn1<0.5.0,>=0.4.6
Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Collecting oauthlib>=3.0.0
Using cached oauthlib-3.2.2-py3-none-any.whl (151 kB)
Installing collected packages: sentencepiece, pyasn1, pathtools, appdirs, zipp, xxhash, wheel, werkzeug, watchdog, validators, tzdata, typing-extensions, tqdm, toolz, toml, threadpoolctl, tensorboard-data-server, smmap, setproctitle, sentry-sdk, semver, rsa, regex, pympler, pyasn1-modules, protobuf, pillow, oauthlib, numpy, multidict, mdurl, markdown, joblib, grpcio, fsspec, frozenlist, filelock, entrypoints, docker-pycreds, dill, Click, charset-normalizer, cachetools, blinker, async-timeout, absl-py, yarl, scipy, pytz-deprecation-shim, pydeck, pyarrow, pandas, multiprocess, markdown-it-py, importlib-metadata, google-auth, gitdb, aiosignal, tzlocal, scikit-learn, rich, responses, requests-oauthlib, huggingface-hub, GitPython, altair, aiohttp, wandb, transformers, streamlit, seqeval, google-auth-oauthlib, tensorboard, datasets, simpletransformers
Running setup.py install for sentencepiece: started
Running setup.py install for sentencepiece: finished with status 'error'
Note: you may need to restart the kernel to use updated packages.
DEPRECATION: sentencepiece is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
error: subprocess-exited-with-error
Running setup.py install for sentencepiece did not run successfully.
exit code: 1
[15 lines of output]
running install
D:\Program Files\Python\Lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\sentencepiece
copying src\sentencepiece/__init__.py -> build\lib.win-amd64-cpython-311\sentencepiece
copying src\sentencepiece/_version.py -> build\lib.win-amd64-cpython-311\sentencepiece
copying src\sentencepiece/sentencepiece_model_pb2.py -> build\lib.win-amd64-cpython-311\sentencepiece
copying src\sentencepiece/sentencepiece_pb2.py -> build\lib.win-amd64-cpython-311\sentencepiece
running build_ext
building 'sentencepiece._sentencepiece' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
Encountered error while trying to install package.
sentencepiece
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
I'm new to Python, please help. System Windows 10, with MS VC++ installed & updated.
Welcome to Python! The error message says what the problem is:
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
Try to pip install every package separately so you have a better picture of which of those requires VC++14. And don't forget to update your VC of course!
For error message of this type, though the error points to VC++, on the contrary, to resolve
Update pip: pip install --upgrade pip
Install version of sentencepiece compatible with your Python version.
For Python 3.10, see Pip install results in this error " cl.exe' failed with exit code 2"
Others worth giving a try:
Give pipwin a try.
PS: pipwin is essentially a complementary tool for pip on Windows. Beware: pipwin installs unofficial python package binaries for windows
You may consider having MS Build: Visual C++ build tools, and check the options "C++/CLI support". (NB: might require hefty GB install!)
For MS Build, you might need to also install or upgrade pip install setuptools --upgrade

django-autotranslate doesn't install, returns Preparing metadata (setup.py) ... error during installation

I'm trying to install django-auto translate but it keeps telling me:
Preparing metadata (setup.py) error
error: subprocess-exited-with-error
i've also tried older versions of the package and i keep getting errors concerning metadata setup, how can i go about this?
Input: pip install django-autotranslate
Output:
#cmd execution after running :pip install django-autotranslate
Collecting django-autotranslate
Using cached django_autotranslate-1.2.0-py3-none-any.whl (10 kB)
Collecting six
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting goslate
Using cached goslate-1.5.4.tar.gz (14 kB)
Preparing metadata (setup.py) ... done
Collecting polib
Using cached polib-1.1.1-py2.py3-none-any.whl (20 kB)
Requirement already satisfied: django in c:\users\vyktor\dev\language-translator\venv\lib\site-packages (from django-autotranslate) (4.1.2)
Requirement already satisfied: sqlparse>=0.2.2 in c:\users\vyktor\dev\language-translator\venv\lib\site-packages (from django->django-autotranslate) (0.4.3)
Requirement already satisfied: tzdata in c:\users\vyktor\dev\language-translator\venv\lib\site-packages (from django->django-autotranslate) (2022.5)
Requirement already satisfied: asgiref<4,>=3.5.2 in c:\users\vyktor\dev\language-translator\venv\lib\site-packages (from django->django-autotranslate) (3.5.2)
Collecting futures
Using cached futures-3.0.5.tar.gz (25 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [27 lines of output]

Running into errors with greenlet when pip installing certain packages

I realize there are a lot of variations of these error questions out there, from my search nothing seemed to help.
I have recently pip installed some packages using my cmd prompt on windows. For instance pip installed Flask and had no issues. However I recently tried to pip install cs50 and Flask-SQLAlchemy and have gotten the same error with regards to greenlet.
My question is two fold. What does greenlet have to do with installing these packages. And secondly how can I fix this error so that I can pip install these packages?
Collecting Flask-SQLAlchemy
Using cached Flask_SQLAlchemy-2.5.1-py2.py3-none-any.whl (17 kB)
Collecting SQLAlchemy>=0.8.0
Using cached SQLAlchemy-1.4.29.tar.gz (8.0 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: Flask>=0.10 in c:\msys64\mingw64\lib\python3.9\site-packages (from Flask-SQLAlchemy) (2.0.2)
Requirement already satisfied: itsdangerous>=2.0 in c:\msys64\mingw64\lib\python3.9\site-packages (from Flask>=0.10->Flask-SQLAlchemy) (2.0.1)
Requirement already satisfied: Jinja2>=3.0 in c:\msys64\mingw64\lib\python3.9\site-packages (from Flask>=0.10->Flask-SQLAlchemy) (3.0.3)
Requirement already satisfied: click>=7.1.2 in c:\msys64\mingw64\lib\python3.9\site-packages (from Flask>=0.10->Flask-SQLAlchemy) (8.0.3)
Requirement already satisfied: Werkzeug>=2.0 in c:\msys64\mingw64\lib\python3.9\site-packages (from Flask>=0.10->Flask-SQLAlchemy) (2.0.2)
Collecting greenlet!=0.4.17
Using cached greenlet-1.1.2.tar.gz (91 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: colorama in c:\msys64\mingw64\lib\python3.9\site-packages (from click>=7.1.2->Flask>=0.10->Flask-SQLAlchemy) (0.4.4)
Requirement already satisfied: MarkupSafe>=2.0 in c:\msys64\mingw64\lib\python3.9\site-packages (from Jinja2>=3.0->Flask>=0.10->Flask-SQLAlchemy) (2.0.1)
Building wheels for collected packages: SQLAlchemy, greenlet
Building wheel for SQLAlchemy (setup.py) ... done
Created wheel for SQLAlchemy: filename=SQLAlchemy-1.4.29-cp39-cp39-win_amd64.whl size=1512539 sha256=25d3a12bbff4ff0c365154c700de44d089427650aea9b98e228c6077852eab61
Stored in directory: c:\users\t\appdata\local\pip\cache\wheels\6d\94\a6\8bdac6f92ce851f71a9fa62934a06cf2b654700b5f258242c7
Building wheel for greenlet (setup.py) ... error
ERROR: Command errored out with exit status 1:
After this error I get a bunch more lines but some that stand out are
ERROR: Failed building wheel for greenlet
Running setup.py clean for greenlet
Successfully built SQLAlchemy
Failed to build greenlet
Installing collected packages: greenlet, SQLAlchemy, Flask-SQLAlchemy
Running setup.py install for greenlet ... error
ERROR: Command errored out with exit status 1:
And
fatal error C1083: Cannot open include file: 'Python.h': No such file or directory
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.30.30705\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
----------------------------------------
ERROR: Command errored out with exit status 1:

error during deploying django project to heruku

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

Heroku Dash app failing to deploy but successfully builds

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

Categories