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

Iterable from collection #6

Open
Hygros opened this issue Jul 4, 2024 · 2 comments
Open

Iterable from collection #6

Hygros opened this issue Jul 4, 2024 · 2 comments

Comments

@Hygros
Copy link

Hygros commented Jul 4, 2024

Traceback (most recent call last):
File "G:\Python\phantomflix-main\main.py", line 1, in
from phantomflix import NetflixClient
File "G:\Python\phantomflix-main\phantomflix_init_.py", line 1, in
from .netflix import NetflixClient
File "G:\Python\phantomflix-main\phantomflix\netflix.py", line 23, in
from hyper.contrib import HTTP20Adapter
File "C:\Users\Hygro\AppData\Local\Programs\Python\Python312\Lib\site-packages\hyper-0.7.0-py3.12.egg\hyper_init_.py", line 11, in
from .common.connection import HTTPConnection
File "C:\Users\Hygro\AppData\Local\Programs\Python\Python312\Lib\site-packages\hyper-0.7.0-py3.12.egg\hyper\common\connection.py", line 9, in
from ..http11.connection import HTTP11Connection
File "C:\Users\Hygro\AppData\Local\Programs\Python\Python312\Lib\site-packages\hyper-0.7.0-py3.12.egg\hyper\http11\connection.py", line 13, in
from collections import Iterable, Mapping
ImportError: cannot import name 'Iterable' from 'collections' (C:\Users\Hygro\AppData\Local\Programs\Python\Python312\Lib\collections_init_.py)

@mushishi06
Copy link

mushishi06 commented Jul 7, 2024

Hi this is because, In Python 3.12 the package collections deprecation and now use collections.abc for most of the import.

You will need to update manually to fix the import.

For exemple python-hyper/hyper@00698bb

I fixed I think 4/5 import on different Package/file

@mushishi06
Copy link

@Hygros I succeed to run it without the above issues, you just need to use Python version 3.9.x

now just got a login issues same as #1

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

2 participants