Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when import httpx lib. #603

Open
yagithubuser opened this issue May 4, 2024 · 0 comments
Open

Error when import httpx lib. #603

yagithubuser opened this issue May 4, 2024 · 0 comments

Comments

@yagithubuser
Copy link

custom_components.pyscript.modules.httpx._api._client._auth._models._status_codes

custom_components/pyscript/global_ctx.py:341

Exception in </config/pyscript/modules/httpx/_status_codes.py> line 155: NETWORK_AUTHENTICATION_REQUIRED = 511, "Network Authentication Required" ^ AttributeError: 'dict' object has no attribute '_member_names'

httpx version is 0.27.0
This is a part of _status_codes_py

...
    LOOP_DETECTED = 508, "Loop Detected"
    NOT_EXTENDED = 510, "Not Extended"
    NETWORK_AUTHENTICATION_REQUIRED = 511, "Network Authentication Required"


# Include lower-case styles for `requests` compatibility.
for code in codes:
    setattr(codes, code._name_.lower(), int(code))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant