jceb / vim-orgmode

Text outlining and task management for Vim based on Emacs' Org-Mode
http://www.vim.org/scripts/script.php?script_id=3642
Other
3.1k stars 266 forks source link

Python 3.12 and `imp` #390

Closed jhrr closed 7 months ago

jhrr commented 8 months ago

The package no longer functions if Vim is compiled with Python 3.12 because the previously only deprecated imp module, which is used here is no longer available.

Python 3.11.6 (main, Oct 15 2023, 14:34:59) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import imp
<stdin>:1: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
Python 3.12.0 (main, Oct  5 2023, 15:44:07) [Clang 14.0.3 (clang-1403.0.22.14.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import imp
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'imp'
jbpoittevin commented 7 months ago

@jhrr can you validate correction with branch deprecated_imp please ?

jhrr commented 7 months ago

@jbpoittevin yep, I can confirm that installing with deprecated_imp is working here 👍

jbpoittevin commented 7 months ago

@jhrr thanks for your action. Merged in branch master.