After verifying the correct linking of Vim-Python3:
echo has("python3")
echo &pythonthreedll
py3 print(sys.version)
I installed the plugin, but when running "Leaderf -h," an error occurs:
Error detected while processing /intax/roze2/.vim/plugged/LeaderF/autoload/leaderf/Any.vim:
line 14:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/intax/roze2/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/anyExpl.py", line 15, in <module>
from .manager import *
File "/intax/roze2/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/manager.py", line 12, in <module>
import multiprocessing
File "/opt/freeware/lib/python3.7/multiprocessing/__init__.py", line 16, in <module> from . import context
File "/opt/freeware/lib/python3.7/multiprocessing/context.py", line 6, in <module> from . import reduction
File "/opt/freeware/lib/python3.7/multiprocessing/reduction.py", line 15, in <module import pickle
File "/opt/freeware/lib/python3.7/pickle.py", line 33, in <module> from struct import pack, unpack
File "/opt/freeware/lib/python3.7/struct.py", line 13, in <module> from _struct import *
ImportError: Symbol resolution failed for /opt/freeware/lib/python3.7/lib-dynload/_struct.so because:
^ISymbol PyBool_FromLong (number 1) is not exported from dependent
^I module vim.
^ISymbol PyBuffer_Release (number 2) is not exported from dependent
^I module vim.
^ISymbol PyByteArray_Type (number 3) is not exported from dependent
^I module vim.
^ISymbol PyBytes_FromStringAndSize (number 4) is not exported from dependent
^I module vim.
^ISymbol PyDict_Clear (number 5) is not exported from dependent
^I module vim.
^ISymbol PyDict_GetItem (number 6) is not exported from dependent
^I module vim.
Additional errors occurred but are not reported.
Examine .loader section symbols with the 'dump -Tv' command.
Error detected while processing function leaderf#Any#start[4]..leaderf#LfPy:
line 1:
Traceback (most recent call last):
File "<string>", line 1, in <module>
It fails to properly import several Python modules.
Setting up the plugin on another platform like Windows or Linux is trouble-free.
Could someone advise me on what the issue might be? I suspect it could be due to the somewhat older version of my Python 3.7.
I can't upgrade Python right now due to other dependencies."
AIX 7.2
Python 3.7
Vim 9.0