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

cannot import name 'Finder' from 'importlib.abc' #26

Open
harshitaku opened this issue Mar 7, 2024 · 3 comments
Open

cannot import name 'Finder' from 'importlib.abc' #26

harshitaku opened this issue Mar 7, 2024 · 3 comments

Comments

@harshitaku
Copy link

I'm getting this error:

line 10, in <module> from singlefile import download_page File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/singlefile/__init__.py", line 5, in <module> from importlib.abc import Finder, Loader ImportError: cannot import name 'Finder' from 'importlib.abc' (/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/abc.py)

@davekats
Copy link
Owner

Hi @harshitaku, can you try using an older version of Python like version 3.8? I suspect 3.12 isn't compatible since it wasn't released when I first developed this tool.

Alternately, if you're willing to submit a PR to enable version compatibility with 3.12 that would be awesome.

@MatthiasPortzel
Copy link
Contributor

MatthiasPortzel commented Jun 5, 2024

I'm running in a virtual environment on 3.12 (macOS) with no issue importing, for the record.

Python 3.12.3 (main, Apr  9 2024, 08:09:14) [Clang 15.0.0 (clang-1500.3.9.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from singlefile import download_page
>>>

@davekats
Copy link
Owner

davekats commented Jun 6, 2024

@MatthiasPortzel Thank you for looking into this. @harshitaku Can you share more about your runtime environment?

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

3 participants