Closed ubaldot closed 2 years ago
Update
I thougth the problem could be due to that the Anaconda
installation is 64-bit
whereas my Vim82
is 32-bit
.
So, I installed the 64-bit
version of Vim
. The problem persists, but the error is different.
May that be because Vim has been compiled with Python 3.10.3
library whereas the Python39.dll
that I have is based on Python 3.9.12
?
Anyway, here is the DebugInfo
log
Using Python version 3 to access Jedi. Error when trying to import vim: Vim(python3):E1266: Critical error in python3 initialization, check your python3 installation python3 failed to run, likely a Python config issue.
g:jedi#completions_command = '<tab>' (default: '<C-Space>')
g:jedi#environment_path = 'base' (default: 'auto')
g:jedi#show_call_signatures = '2' (default: 1)
omnifunc=python3complete#Complete
Last set from C:\Vim64\ftplugin\python.vim line 42
completeopt=menuone,longest,preview
Last set from ~\vimfiles\bundle\jedi-vim\plugin\jedi.vim line 36
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Apr 11 2022 10:46:04)
MS-Windows 64-bit GUI/console version with OLE support
Included patches: 1-4732
Compiled by knurr@BITLOGIC
Huge version with GUI. Features included (+) or not (-):
+acl +cursorbind +insert_expand +netbeans_intg +sound +vertsplit
+arabic +cursorshape +ipv6 +num64 +spell +vim9script
+autocmd +dialog_con_gui +job +ole +startuptime +viminfo
+autochdir +diff +jumplist +packages +statusline +virtualedit
+autoservername +digraphs +keymap +path_extra -sun_workshop +visual
+balloon_eval +directx +lambda +perl/dyn +syntax +visualextra
+balloon_eval_term -dnd +langmap +persistent_undo +tag_binary +vreplace
+browse -ebcdic +libcall +popupwin -tag_old_static +vtp
++builtin_terms +emacs_tags +linebreak -postscript -tag_any_white +wildignore
+byte_offset +eval +lispindent +printer +tcl/dyn +wildmenu
+channel +ex_extra +listcmds +profile +termguicolors +windows
+cindent +extra_search +localmap +python/dyn +terminal +writebackup
+clientserver -farsi +lua/dyn +python3/dyn -termresponse -xfontset
+clipboard +file_in_path +menu +quickfix +textobjects -xim
+cmdline_compl +find_in_path +mksession +reltime +textprop +xpm_w32
+cmdline_hist +float +modify_fname +rightleft -tgetent -xterm_save
+cmdline_info +folding +mouse +ruby/dyn +timers
+comments -footer +mouseshape +scrollbind +title
+conceal +gettext/dyn +multi_byte_ime/dyn +signs +toolbar
+cryptv -hangul_input +multi_lang +smartindent +user_commands
+cscope +iconv/dyn +mzscheme/dyn +sodium/dyn +vartabs
system vimrc file: "$VIM\vimrc"
user vimrc file: "$HOME\_vimrc"
2nd user vimrc file: "$HOME\vimfiles\vimrc"
3rd user vimrc file: "$VIM\_vimrc"
user exrc file: "$HOME\_exrc"
2nd user exrc file: "$VIM\_exrc"
system gvimrc file: "$VIM\gvimrc"
user gvimrc file: "$HOME\_gvimrc"
2nd user gvimrc file: "$HOME\vimfiles\gvimrc"
3rd user gvimrc file: "$VIM\_gvimrc"
defaults file: "$VIMRUNTIME\defaults.vim"
system menu file: "$VIMRUNTIME\menu.vim"
Compilation: cl -c /W3 /GF /nologo -I. -Iproto -DHAVE_PATHDEF -DWIN32 -DFEAT_CSCOPE -DFEAT_TERMINAL -DFEAT_SOUND -DFEAT_NETBEANS_INTG -DFEAT_JOB_CHANNEL -DFEAT_IPV6 -DFEAT_XPM_W32 -DHAVE_SODIUM -DDYNAMIC_SODIUM -DDYNAMIC_SODIUM_DLL=\"libsodium.dll\" /I "..\..\libs\libsodium-1.0.18\include" -DWINVER=0x0501 -D_WIN32_WINNT=0x0501 /source-charset:utf-8 /MP -DHAVE_STDINT_H /Ox /GL -DNDEBUG /MD /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE -DVIMDLL -DFEAT_OLE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DFEAT_GUI_MSWIN -DFEAT_DIRECTX -DDYNAMIC_DIRECTX -DFEAT_DIRECTX_COLOR_EMOJI -DDYNAMIC_ICONV -DDYNAMIC_GETTEXT -DFEAT_TCL -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL=\"tcl86t.dll\" -DDYNAMIC_TCL_VER=\"8.6\" -DFEAT_LUA -DDYNAMIC_LUA -DDYNAMIC_LUA_DLL=\"lua54.dll\" -DFEAT_PYTHON -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL=\"python27.dll\" -DFEAT_PYTHON3 -DDYNAMIC_PYTHON3 -DDYNAMIC_PYTHON3_DLL=\"python310.dll\" -DFEAT_MZSCHEME -I "..\..\libs\racket-8.3\include" -DDYNAMIC_MZSCHEME -DDYNAMIC_MZSCH_DLL=\"libracketxxxxxxx.dll\" -DDYNAMIC_MZGC_DLL=\"libmzgcxxxxxxx.dll\" -DFEAT_PERL -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl532.dll\" -DFEAT_RUBY -DDYNAMIC_RUBY -DDYNAMIC_RUBY_DLL=\"x64-ucrt-ruby310.dll\" -DRUBY_VERSION=31 -DFEAT_HUGE /Fd.\ObjDXOULYHTRZVAMD64/ /Zi
Linking: link /nologo /opt:ref /LTCG:STATUS /HIGHENTROPYVA:NO oldnames.lib kernel32.lib advapi32.lib shell32.lib gdi32.lib comdlg32.lib ole32.lib netapi32.lib uuid.lib user32.lib /machine:AMD64 version.lib winspool.lib comctl32.lib msvcrt.lib oleaut32.lib /nodefaultlib:lua54.lib /STACK:8388608 /nodefaultlib:python27.lib /nodefaultlib:python310.lib "C:\tcl-64\lib\tclstub86.lib" winmm.lib WSock32.lib Ws2_32.lib .\xpm\x64\lib-vc14\libXpm.lib /PDB:vim64.pdb -debug
Messages maintainer: Bram Moolenaar <Bram@vim.org>
"C:\VAS\tools\scripts\logData\Python\LogDataExtractionScript.py" [unix] 175L, 6673B
Error detected while processing BufRead Autocommands for "*.py"..FileType Autocommands for "*"..function <SNR>9_LoadFTPlugin[18]..script C:\Users\yt75534\vimfiles\bundle\jedi-vim\ftplugin\python\jedi.vim[1]..C:\Users\yt75534\vimfiles\bundle\jedi-vim\autoload\jedi.vim[260]..function jedi#init_python[13]..BufRead Autocommands for "*.py"..FileType Autocommands for "*"..function <SNR>9_LoadFTPlugin[18]..script C:\Users\yt75534\vimfiles\bundle\jedi-vim\ftplugin\python\jedi.vim[1]..C:\Users\yt75534\vimfiles\bundle\jedi-vim\autoload\jedi.vim[260]..function jedi#init_python[4]..<SNR>93_init_python[6]..jedi#setup_python_imports:
line 18:
E1266: Critical error in python3 initialization, check your python3 installation
Error detected while processing BufRead Autocommands for "*.py"..FileType Autocommands for "*"..function <SNR>9_LoadFTPlugin[18]..script C:\Users\yt75534\vimfiles\bundle\jedi-vim\ftplugin\python\jedi.vim:
line 36:
E117: Unknown function: jedi#configure_call_signatures
May that be because Vim has been compiled with Python 3.10.3 library whereas the Python39.dll that I have is based on Python 3.9.12?
AFAIK it's not allowed to mix different Python versions like you are doing.
Oh ok. Then, I am grilled. I have to use 3.9.12 due to Anaconda and the gVim 64 that I manage to find has been built with 3.10.3 (and I don’t know how to find other versions).
There's probably another one around. But I have no idea and cannot really help since this is Windows. Just use Linux with a package manager and you're good :)
Unfortunately I cannot. It’s work laptop. 🤷♂️🙂 Thanks for the discussion anyway. 💪
I am running on
Windows 10
and I have updated toAnaconda 64-bit
which installed alsoPython 3.9.12
. Now, whenever I open a.py
file, I get this errorInstall
Anaconda 64-bit
that hasPython 3.9.12
.I also tried to re-install the plugin but the problem is still there. According to the debug info below, I miss
python39.dll
but in-fact it is there. It follows the debug output:Jedi-vim debug information
jedi-vim version
Global Python
Using Python version 3 to access Jedi. Error when trying to import vim: Vim(python3):E370: Could not load library C:\Users\yt75534\Anaconda3\python39.dll: [NULL] python3 failed to run, likely a Python config issue.
Settings
:version
:messages
:scriptnames
``` 1: ~\.vimrc 2: C:\Program Files (x86)\Vim\vim82\colors\desert.vim 3: C:\Program Files (x86)\Vim\vim82\ftoff.vim 4: ~\vimfiles\bundle\Vundle.vim\autoload\vundle.vim 5: ~\vimfiles\bundle\Vundle.vim\autoload\vundle\config.vim 6: ~\vimfiles\filetype.vim 7: C:\Program Files (x86)\Vim\vim82\filetype.vim 8: C:\Program Files (x86)\Vim\vim82\menu.vim 9: C:\Program Files (x86)\Vim\vim82\autoload\paste.vim 10: C:\Program Files (x86)\Vim\vim82\ftplugin.vim 11: C:\Program Files (x86)\Vim\vim82\indent.vim 12: C:\Program Files (x86)\Vim\vim82\macros\matchit.vim 13: C:\Program Files (x86)\Vim\vim82\pack\dist\opt\matchit\plugin\matchit.vim 14: C:\Program Files (x86)\Vim\vim82\syntax\syntax.vim 15: C:\Program Files (x86)\Vim\vim82\syntax\synload.vim 16: C:\Program Files (x86)\Vim\vim82\syntax\syncolor.vim 17: ~\vimfiles\bundle\nerdtree\plugin\NERD_tree.vim 18: ~\vimfiles\bundle\nerdtree\autoload\nerdtree.vim 19: ~\vimfiles\bundle\nerdtree\lib\nerdtree\path.vim 20: ~\vimfiles\bundle\nerdtree\lib\nerdtree\menu_controller.vim 21: ~\vimfiles\bundle\nerdtree\lib\nerdtree\menu_item.vim 22: ~\vimfiles\bundle\nerdtree\lib\nerdtree\key_map.vim 23: ~\vimfiles\bundle\nerdtree\lib\nerdtree\bookmark.vim 24: ~\vimfiles\bundle\nerdtree\lib\nerdtree\tree_file_node.vim 25: ~\vimfiles\bundle\nerdtree\lib\nerdtree\tree_dir_node.vim 26: ~\vimfiles\bundle\nerdtree\lib\nerdtree\opener.vim 27: ~\vimfiles\bundle\nerdtree\lib\nerdtree\creator.vim 28: ~\vimfiles\bundle\nerdtree\lib\nerdtree\flag_set.vim 29: ~\vimfiles\bundle\nerdtree\lib\nerdtree\nerdtree.vim 30: ~\vimfiles\bundle\nerdtree\lib\nerdtree\ui.vim 31: ~\vimfiles\bundle\nerdtree\lib\nerdtree\event.vim 32: ~\vimfiles\bundle\nerdtree\lib\nerdtree\notifier.vim 33: ~\vimfiles\bundle\nerdtree\autoload\nerdtree\ui_glue.vim 34: ~\vimfiles\bundle\nerdtree\nerdtree_plugin\exec_menuitem.vim 35: ~\vimfiles\bundle\nerdtree\nerdtree_plugin\fs_menu.vim 36: ~\vimfiles\bundle\nerdtree\nerdtree_plugin\vcs.vim 37: ~\vimfiles\bundle\ale\plugin\ale.vim 38: ~\vimfiles\bundle\ale\autoload\ale\balloon.vim 39: ~\vimfiles\bundle\ale\autoload\ale\completion.vim 40: ~\vimfiles\bundle\ale\autoload\ale\code_action.vim 41: ~\vimfiles\bundle\ale\autoload\ale\events.vim 42: ~\vimfiles\bundle\jedi-vim\plugin\jedi.vim 43: ~\vimfiles\bundle\vim-slime\plugin\slime.vim 44: ~\vimfiles\bundle\supertab\plugin\supertab.vim 45: ~\vimfiles\bundle\vim-airline\plugin\airline.vim 46: ~\vimfiles\bundle\vim-airline\autoload\airline\init.vim 47: ~\vimfiles\bundle\vim-airline\autoload\airline\parts.vim 48: ~\vimfiles\bundle\vim-airline\autoload\airline\formatter\short_path.vim 49: ~\vimfiles\bundle\vim-airline\autoload\airline\util.vim 50: ~\vimfiles\bundle\vim-repl\plugin\default.vim 51: ~\vimfiles\bundle\vim-repl\plugin\vim-repl.vim 52: ~\vimfiles\bundle\helpme-vim\plugin\helpme.vim 53: C:\Program Files (x86)\Vim\vim82\plugin\getscriptPlugin.vim 54: C:\Program Files (x86)\Vim\vim82\plugin\gzip.vim 55: C:\Program Files (x86)\Vim\vim82\plugin\logiPat.vim 56: C:\Program Files (x86)\Vim\vim82\plugin\manpager.vim 57: C:\Program Files (x86)\Vim\vim82\plugin\matchparen.vim 58: C:\Program Files (x86)\Vim\vim82\plugin\netrwPlugin.vim 59: C:\Program Files (x86)\Vim\vim82\plugin\rrhelper.vim 60: C:\Program Files (x86)\Vim\vim82\plugin\spellfile.vim 61: C:\Program Files (x86)\Vim\vim82\plugin\tarPlugin.vim 62: C:\Program Files (x86)\Vim\vim82\plugin\tohtml.vim 63: C:\Program Files (x86)\Vim\vim82\plugin\vimballPlugin.vim 64: C:\Program Files (x86)\Vim\vim82\plugin\zipPlugin.vim 65: ~\vimfiles\bundle\ale\autoload\ale.vim 66: ~\vimfiles\bundle\vim-airline\autoload\airline\extensions.vim 67: ~\vimfiles\bundle\vim-airline\autoload\airline\extensions\quickfix.vim 68: ~\vimfiles\bundle\vim-airline\autoload\airline.vim 69: ~\vimfiles\bundle\vim-airline\autoload\airline\extensions\netrw.vim 70: ~\vimfiles\bundle\vim-airline\autoload\airline\extensions\term.vim 71: ~\vimfiles\bundle\vim-airline\autoload\airline\section.vim 72: ~\vimfiles\bundle\vim-airline\autoload\airline\highlighter.vim 73: ~\vimfiles\bundle\vim-airline\autoload\airline\extensions\ale.vim 74: ~\vimfiles\bundle\vim-airline\autoload\airline\extensions\whitespace.vim 75: ~\vimfiles\bundle\vim-airline\autoload\airline\extensions\wordcount.vim 76: ~\vimfiles\bundle\vim-airline\autoload\airline\extensions\tabline.vim 77: ~\vimfiles\bundle\vim-airline\autoload\airline\extensions\tabline\autoshow.vim 78: ~\vimfiles\bundle\vim-airline\autoload\airline\extensions\tabline\tabs.vim 79: ~\vimfiles\bundle\vim-airline\autoload\airline\extensions\tabline\buffers.vim 80: ~\vimfiles\bundle\vim-airline\autoload\airline\extensions\keymap.vim 81: ~\vimfiles\bundle\vim-airline\autoload\airline\extensions\searchcount.vim 82: ~\vimfiles\bundle\vim-airline\autoload\airline\themes\dark.vim 83: ~\vimfiles\bundle\vim-airline\autoload\airline\themes.vim 84: ~\vimfiles\bundle\vim-airline\autoload\airline\builder.vim 85: ~\vimfiles\bundle\vim-airline\autoload\airline\extensions\default.vim 86: ~\vimfiles\bundle\vim-airline\autoload\airline\extensions\tabline\ctrlspace.vim 87: ~\vimfiles\bundle\vim-airline\autoload\airline\extensions\tabline\tabws.vim 88: ~\vimfiles\bundle\vim-airline\autoload\airline\extensions\tabline\builder.vim 89: ~\vimfiles\bundle\vim-airline\autoload\airline\extensions\tabline\buflist.vim 90: ~\vimfiles\bundle\vim-airline\autoload\airline\extensions\tabline\formatters\unique_tail.vim 91: ~\vimfiles\bundle\vim-airline\autoload\airline\extensions\tabline\formatters\default.vim 92: ~\vimfiles\bundle\ale\autoload\ale\engine.vim 93: ~\vimfiles\bundle\ale\autoload\ale\statusline.vim 94: ~\vimfiles\bundle\vim-flake8\ftplugin\python_flake8.vim 95: ~\vimfiles\bundle\jedi-vim\ftplugin\python\jedi.vim 96: ~\vimfiles\bundle\jedi-vim\autoload\jedi.vim 97: ~\vimfiles\bundle\vim-slime\ftplugin\python\slime.vim 98: ~\vimfiles\bundle\vim-repl\ftplugin\python\python-repl.vim 99: C:\Program Files (x86)\Vim\vim82\ftplugin\python.vim 100: ~\vimfiles\bundle\jedi-vim\after\ftplugin\python\jedi.vim 101: C:\Program Files (x86)\Vim\vim82\indent\python.vim 102: C:\Program Files (x86)\Vim\vim82\syntax\python.vim 103: ~\vimfiles\bundle\jedi-vim\after\syntax\python.vim 104: ~\vimfiles\bundle\ale\autoload\ale\util.vim 105: ~\vimfiles\bundle\ale\autoload\ale\linter.vim 106: ~\vimfiles\bundle\ale\ale_linters\python\bandit.vim 107: ~\vimfiles\bundle\ale\ale_linters\python\cspell.vim 108: ~\vimfiles\bundle\ale\autoload\ale\handlers\cspell.vim 109: ~\vimfiles\bundle\ale\ale_linters\python\flake8.vim 110: ~\vimfiles\bundle\ale\ale_linters\python\flakehell.vim 111: ~\vimfiles\bundle\ale\ale_linters\python\jedils.vim 112: ~\vimfiles\bundle\ale\ale_linters\python\mypy.vim 113: ~\vimfiles\bundle\ale\ale_linters\python\prospector.vim 114: ~\vimfiles\bundle\ale\ale_linters\python\pycodestyle.vim 115: ~\vimfiles\bundle\ale\ale_linters\python\pydocstyle.vim 116: ~\vimfiles\bundle\ale\ale_linters\python\pyflakes.vim 117: ~\vimfiles\bundle\ale\ale_linters\python\pylama.vim 118: ~\vimfiles\bundle\ale\ale_linters\python\pylint.vim 119: ~\vimfiles\bundle\ale\ale_linters\python\pylsp.vim 120: ~\vimfiles\bundle\ale\ale_linters\python\pyre.vim 121: ~\vimfiles\bundle\ale\ale_linters\python\pyright.vim 122: ~\vimfiles\bundle\ale\ale_linters\python\unimport.vim 123: ~\vimfiles\bundle\ale\ale_linters\python\vulture.vim 124: ~\vimfiles\bundle\ale\autoload\ale\command.vim 125: ~\vimfiles\bundle\ale\autoload\ale\python.vim 126: ~\vimfiles\bundle\ale\autoload\ale\path.vim 127: ~\vimfiles\bundle\ale\autoload\ale\history.vim 128: ~\vimfiles\bundle\ale\autoload\ale\sign.vim 129: ~\vimfiles\bundle\ale\autoload\ale\list.vim 130: ~\vimfiles\bundle\ale\autoload\ale\highlight.vim 131: ~\vimfiles\bundle\ale\autoload\ale\cursor.vim 132: C:\Program Files (x86)\Vim\vim82\scripts.vim 133: C:\Program Files (x86)\Vim\vim82\ftplugin\vim.vim 134: C:\Program Files (x86)\Vim\vim82\indent\vim.vim 135: C:\Program Files (x86)\Vim\vim82\syntax\vim.vim 136: ~\vimfiles\bundle\ale\ale_linters\vim\ale_custom_linting_rules.vim 137: ~\vimfiles\bundle\ale\ale_linters\vim\vimls.vim 138: ~\vimfiles\bundle\ale\ale_linters\vim\vint.vim 139: ~\vimfiles\bundle\ale\autoload\ale\lsp_linter.vim ```