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.

Bad error message on failed requirements.txt installation

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
mfsjrcommented, Apr 14, 2020

Changing packRequirements to false allowed my serverless deployment to go through as well.

2reactions
babyhueycommented, Apr 13, 2020

I’m facing similar issue. Is there a temporary solution?

When I remove packRequirements: true from my serverless.yml, that seems to fix it. Just make sure you have werkzeug in your requirements

Read more comments on GitHub >

github_iconTop 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 >

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