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

Support Python 3.12 #3719

Closed
martin-ueding opened this issue Nov 8, 2023 · 1 comment · Fixed by #3728
Closed

Support Python 3.12 #3719

martin-ueding opened this issue Nov 8, 2023 · 1 comment · Fixed by #3728
Assignees
Labels

Comments

@martin-ueding
Copy link
Contributor

I think that Nikola hasn't yet been updated to Python 3.12. This is now the default Python interpreter on Fedora 39 and I'd be happy to use Nikola with the default interpreter.

Environment

Python Version: 3.12.0

Nikola Version: 8.2.4

Operating System: Fedora 39

Description:

When launching Nikola, there are import errors coming from a deprecation of some importlib/imp things.

❯ nikola
Traceback (most recent call last):
  File "/home/mu/.local/lib/python3.12/site-packages/yapsy/PluginManager.py", line 132, in <module>
    import importlib.abc.Loader as imp
ModuleNotFoundError: No module named 'importlib.abc.Loader'; 'importlib.abc' is not a package

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/mu/.local/bin/nikola", line 5, in <module>
    from nikola.__main__ import main
  File "/home/mu/.local/lib/python3.12/site-packages/nikola/__init__.py", line 39, in <module>
    from .nikola import Nikola  # NOQA
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mu/.local/lib/python3.12/site-packages/nikola/nikola.py", line 49, in <module>
    from yapsy.PluginManager import PluginManager
  File "/home/mu/.local/lib/python3.12/site-packages/yapsy/PluginManager.py", line 134, in <module>
    import imp
ModuleNotFoundError: No module named 'imp'
@felixfontein
Copy link
Contributor

The problem here is yapsy, which Nikola uses as a plugin library. It had its last release in 2019. Here's a corresponding issue: tibonihoo/yapsy#16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants