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.

Warning to update urllib3 and its dependencies

See original GitHub issue

Issue - Facing warning/error in clamav scan log. Need to know how exactly should resolve this.

Error: _/var/runtime/botocore/utils.py:32: UserWarning: Your function includes an outdated version of urllib3 (version: ‘1.24.2’). This dependency version is no longer compatible with Botocore (ref. https://github.com/boto/botocore/blob/b00276641e31e14f79e996aef769d8b0509467fe/setup.cfg), and is affected by at least the following CVEs: CVE-2020-26137 (High), CVE-2021-33503 (Med). Lambda has included a custom layer to preserve backwards compatibility, which is why this message is being logged. This compatibility layer is put in place as a temporary mitigation for functions that see this warning, and will be removed from Lambda. To remove the risk of these CVEs and to stop seeing this warning, please take one of the following actions:

  1. Update the version of urllib3 included in your function’s deployment package.
  2. Remove the packaged version of urllib3 in order to make use of the more recent version included in the Lambda Runtime._

Tried by updating version of urllib by updating version to urllib3==1.26.5 in requirements file, however it throws below error.

_ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.

We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.

requests 2.21.0 requires urllib3<1.25,>=1.21.1, but you’ll have urllib3 1.26.5 which is incompatible._

Please advise right way to fix this.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
vcregocommented, Mar 31, 2022

Thanks you for responses.

I got over the error, so two things needs to updated in requirements.txt: requests==2.27 urllib3==1.26.5

0reactions
github-actions[bot]commented, Mar 31, 2022

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

Read more comments on GitHub >

github_iconTop Results From Across the Web

urllib3 (1.9.1) or chardet (2.3.0) doesn't match a supported ...
The best practice would be to make sure requests and its dependencies are up to date. Python 2. $ pip install --upgrade requests....
Read more >
Inconsistent urllib3 version requirements between setup.py ...
When I saw that our code was giving warnings about dependencies of requests and I went to the Github issues page and I...
Read more >
1738348 – Newly released package does not install
Found the issue. We were trying to install the update on an AWS EC2 instance, where the base AMI we were using had...
Read more >
How to Fix the RequestsDependencyWarning Elasticsearch ...
This tutorial will cover how to fix the requests dependency warning error while importing the Elasticsearch library for Python.
Read more >
urllib3 - PyPI
This change does not impact behavior of urllib3, only which dependencies are ... Unverified HTTPS requests will trigger a warning on the first...
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