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

AttributeError: module 'httpcore' has no attribute 'NetworkBackend' #1611

Closed
daktak opened this issue Aug 23, 2023 · 7 comments · Fixed by #1622
Closed

AttributeError: module 'httpcore' has no attribute 'NetworkBackend' #1611

daktak opened this issue Aug 23, 2023 · 7 comments · Fixed by #1622
Labels
Bug Something isn't working Triage: Needed Issue that was just created and needs someone looking at it

Comments

@daktak
Copy link

daktak commented Aug 23, 2023

Netflix add-on version

1.22.0+matrix.1

Operative systems used

Linux (Ubuntu / Mint / ...)

Kodi version used

Kodi 19 (Matrix)

Description of the bug

AttributeError: module 'httpcore' has no attribute 'NetworkBackend'

Backend service unable to run with python error (python 3.11)

Steps to reproduce the behavior

Load Netflix plugin

Debug log - mandatory

https://paste.kodi.tv/ukuyexetex.kodi

Possible fix

Upgrade to the following package versions
httpcore-0.17.3
httpx-0.24.1
h11-0.14.0

Additional context

No response

Screenshots

No response

@daktak daktak added Bug Something isn't working Triage: Needed Issue that was just created and needs someone looking at it labels Aug 23, 2023
@jiminorris
Copy link

I'm getting this error and my httpcore and h11 packages are already at the suggested version, so chances are the issue is with httpx, perhaps??

@CastagnaIT
Copy link
Owner

looks like someone has already investigated
https://medium.com/@pourya.mansouri/fixing-the-attributeerror-module-httpcore-has-no-attribute-networkbackend-issue-in-python-44c6286f1670

upgrading your httpcore package to version 0.15.0 or higher.

now i will have to understand if we can also update whole httpx and deps instead of a single component,
because my last attempt (#1485) has failed due to other unknown bug/problems

@daktak daktak mentioned this issue Sep 12, 2023
5 tasks
@CastagnaIT
Copy link
Owner

i have update whole deps but i havent time to test on different operative systems
please try to see if works, or some errors like "BlockingIOError" happens

plugin.video.netflix_1.22.1+matrix.1_20230913.zip

@jiminorris
Copy link

jiminorris commented Sep 15, 2023

Yes, that seems to fix it for me.
Kodi 20.2, Debian.

@CastagnaIT
Copy link
Owner

yesterday i tested on android system,
and unfurnately this test update cause a lot of Server disconnected errors and addon its not usable...

i tried investigate but i have no idea how to solve "server disconnected" errors
im thinking to try rollback to default python "request" module despite it dont support http2 hoping dont cause other problems

@CastagnaIT
Copy link
Owner

i have full removed httpx and replaced with Requests module
testing on android seem to works good, please test following
plugin.video.netflix_1.22.1+matrix.1_20230917_test2.zip
and let me know if you find regressions/problems

@Dubeyji1233
Copy link

any solution for this error
module 'httpcore' has no attribute 'SyncHTTPTransport'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Triage: Needed Issue that was just created and needs someone looking at it
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants