Skip to content

class HeaderDict(rest_requests.packages.urllib3._collections.HTTPHeaderDict): AttributeError: module 'requests' has no attribute 'packages' #6954

Open
@Luke1606

Description

@Luke1606

fix released in 2.17.2!

Originally posted by @kennethreitz in #4104

Im using requests 2.32.3 with djangorestframework 3.16.0 but im still having the same problem: This commit seems to have broken requests.packages.

from rest_framework.test import APITestCase
:1360: in _find_and_load
???
:1331: in _find_and_load_unlocked
???
:935: in _load_unlocked
???
...venv\Lib\site-packages_pytest\assertion\rewrite.py:185: in exec_module
exec(co, module.dict)
...venv\Lib\site-packages\rest_framework\test.py:27: in
class HeaderDict(rest_requests.packages.urllib3._collections.HTTPHeaderDict):
AttributeError: module 'requests' has no attribute 'packages'
ERROR users/tests.py - AttributeError: module 'requests' has no attribute 'packages'

Somebody please help me

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions