-
Notifications
You must be signed in to change notification settings - Fork 38
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
Python 3.12 support: ModuleNotFoundError: No module named 'imp' #313
Comments
Check this ^ commit. |
Thank you! It is fixed! |
This is not really fixed... So, the result of 2577da8 is that |
The fix is rather simple: - found_hooks = 1;
+ found_hooks = (result != Py_None); |
Even, if simple, prepare a pull request, please. Bureaucracy. |
Only if you release 0.17.1 with it right away... 😅 Need it for my own package (switching away from w3m). |
@rkd77 I see you've started elinks-0.17 branch. 🎉 🎉 Will that help if I submit a separate PR for that? |
No need to separate pull requests. If there is no "issues", I'll release 0.17.1 tommorow. Thanks for patch. |
@rkd77 thanks again for releasing the fix. FWIW I've spun up elinks-0.17.1.1 .deb packages for Ubuntu 22.04 and 24.04 here: https://launchpad.net/~ppa-verse/+archive/ubuntu/dev And was able to release my own packages for devdocs with code highlighting support. Check it out: |
I recently tried compiling with Python 3.12 and when I run elinks I get this error:
I think
imp
is now deprecated in favour ofimportlib
. I didgrep -ir "import " ./ --include "*.py"
but couldn't see whereimp
was imported. Maybe it is used in a submodule?The text was updated successfully, but these errors were encountered: