Bad error message on failed requirements.txt installation
See original GitHub issueI had a bad version that did not actually exist in my requirements.txt
, and sls deploy
output this:
Serverless: Using Python specified in "runtime": python3.8
Serverless: Packaging Python WSGI handler...
Serverless: Packaging required Python packages...
Exception -----------------------------------------------
<Buffer 45 52 52 4f 52 3a 20 43 6f 75 6c 64 20 6e 6f 74 20 66 69 6e 64 20 61 20 76 65 72 73 69 6f 6e 20 74 68 61 74 20 73 61 74 69 73 66 69 65 73 20 74 68 65 ... 2105 more bytes>
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information ---------------------------
Operating System: linux
Node Version: 13.5.0
Framework Version: 1.59.3
Plugin Version: 3.2.5
SDK Version: 2.2.1
Components Core Version: 1.1.2
Components CLI Version: 1.4.0
Seems like the error throwing code has a bug.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Errors while running pip install -r requirements.txt
I try to remove the following lines in requirements.txt, but it still has same error. ipython==7.8.0 ipython-genutils==0.2.0.
Read more >pip install requirements failing with exit code 1 [duplicate]
The error message is clear - missing pg-config and thus unable to build from source. Alternative to building from source is to use ......
Read more >Error using pip with requirements.txt - python
A valid requirements.txt file is usually produced by running pip freeze in an environment with dependencies already installed and ...
Read more >Using Python's pip to Manage Your Projects' Dependencies
Error messages like these indicate that something went wrong with the installation of pip . Note: Before you start any troubleshooting when ...
Read more >Creating and updating an Amazon MWAA environment
If it takes more than twenty minutes for your environment to install a new version of a requirements.txt file, the environment update failed...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Changing packRequirements to false allowed my serverless deployment to go through as well.
When I remove
packRequirements: true
from my serverless.yml, that seems to fix it. Just make sure you havewerkzeug
in your requirements