Add compat entry for urllib3 import due to new requests release#5185
Add compat entry for urllib3 import due to new requests release#5185audiolion wants to merge 1 commit intoencode:masterfrom
Conversation
|
The change was reverted in 2.16.1 |
|
In 2.18.4, I'm getting this error again with the simple example of |
|
@michaelhelmick we don't support 2.18.4 any longer. Edit: coming to think 2.18.4 was referring to request version and not DRF one right ? |
|
Correct :D haha, in the email (before the edit) I assumed you were talking DRF. I'm referring to |
|
@michaelhelmick So, does this patch fix it for you? Can we just re-open or do we need a fresh PR? (Fancy providing that if so... 🙂) |
|
if requests broke it again this should still work as a fix |
|
This patch does work. EDIT: Although, the lines have changed slightly; but it works. :) |
|
As far as I can tell, this should still work. https://github.com/requests/requests/blob/v2.18.4/requests/packages.py |
|
Right. I was under that assumption too. It _looks_ like it should work. I check out sys paths though and found nothing for requests.packages.urllib3. And tried to just open a python shell and do import requests.packages.urllib3, to no avail.
…Sent from my iPhone
On Nov 28, 2017, at 7:09 PM, Ryan P Kilby ***@***.***> wrote:
As far as I can tell, this should still work.
https://github.com/requests/requests/blob/v2.18.4/requests/packages.py
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
@michaelhelmick. Have you tried recreating the virtual environment? I'm wondering if something else is causing this. The following worked with requests v2.18.4: import requests
requests.packages.urllib3It's also worth noting that the test suite covers the relevant paths. You can see here that the latest requests version is installed in the builds, and here that the |
|
So I've got the same result as @rpkilby here: I'm going to close this. There must be something else going on. Happy to re-open, or address a separate issue, if we can pin that down. |
|
maybe his urllib3 isn't installed? requests imports it basically and puts it under that namespace, but if it can't find it then we get the module not found error? |
|
Yeah, I reinstalled reqs (in a clean virtualenv) and this works. Sorry about the false alarm! |
Description
Fixes #5184 . The new version of requests breaks APITestCase's client library because it removed its vendored packages.