question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when opening any python files after Anaconda update.

See original GitHub issue

I am running on Windows 10 and I have updated to Anaconda 64-bit which installed also Python 3.9.12. Now, whenever I open a .py file, I get this error

image

Install Anaconda 64-bit that has Python 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
  • jedi-vim git version: 0.11.0-32-ge82d07f
  • jedi git submodule status: fae26fa7a427b94a21e11500503d8008647e6309 pythonx/jedi (v0.18.1)
  • parso git submodule status: ee5edaf22ff3941cbdfa4efd8cb3e8f69779fd56 pythonx/parso (v0.8.3)
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
g:jedi#completions_command = '<tab>' (default: '<C-Space>')
g:jedi#environment_path = 'base' (default: 'auto')
g:jedi#show_call_signatures = '2' (default: 1)


  omnifunc=ale#completion#OmniFunc
	Last set from ~\.vimrc line 69
  completeopt=menuone,longest,preview
	Last set from ~\vimfiles\bundle\jedi-vim\plugin\jedi.vim line 36

:version


VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Sep 21 2021 22:12:47)
MS-Windows 32-bit GUI version with OLE support
Included patches: 1-3452
Compiled by appveyor@APPVYR-WIN
Huge version with GUI.  Features included (+) or not (-):
+acl                +cindent            +cursorshape        -farsi              +job                +menu               +packages           +reltime            -sun_workshop       -tgetent            +vreplace
+arabic             +clientserver       +dialog_con_gui     +file_in_path       +jumplist           +mksession          +path_extra         +rightleft          +syntax             +timers             -vtp
+autocmd            +clipboard          +diff               +find_in_path       +keymap             +modify_fname       +perl/dyn           +ruby/dyn           +tag_binary         +title              +wildignore
+autochdir          +cmdline_compl      +digraphs           +float              +lambda             +mouse              +persistent_undo    +scrollbind         -tag_old_static     +toolbar            +wildmenu
+autoservername     +cmdline_hist       +directx            +folding            +langmap            +mouseshape         +popupwin           +signs              -tag_any_white      +user_commands      +windows
+balloon_eval       +cmdline_info       -dnd                -footer             +libcall            +multi_byte_ime/dyn -postscript         +smartindent        +tcl/dyn            +vartabs            +writebackup
-balloon_eval_term  +comments           -ebcdic             +gettext/dyn        +linebreak          +multi_lang         +printer            -sodium             -termguicolors      +vertsplit          -xfontset
+browse             +conceal            +emacs_tags         -hangul_input       +lispindent         +mzscheme/dyn       +profile            +sound              +terminal           +virtualedit        -xim
++builtin_terms     +cryptv             +eval               +iconv/dyn          +listcmds           +netbeans_intg      +python/dyn         +spell              -termresponse       +visual             +xpm_w32
+byte_offset        +cscope             +ex_extra           +insert_expand      +localmap           +num64              +python3/dyn        +startuptime        +textobjects        +visualextra        -xterm_save
+channel            +cursorbind         +extra_search       +ipv6               +lua/dyn            +ole                +quickfix           +statusline         +textprop           +viminfo            
   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     -DWINVER=0x0501 -D_WIN32_WINNT=0x0501 /source-charset:utf-8 /MP -DHAVE_STDINT_H /Ox /GL -DNDEBUG /arch:IA32 /Zl /MT /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE -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=\"lua53.dll\" -DFEAT_PYTHON -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL=\"python27.dll\" -DFEAT_PYTHON3 -DDYNAMIC_PYTHON3 -DDYNAMIC_PYTHON3_DLL=\"python39.dll\" -DFEAT_MZSCHEME -I "C:\Program Files (x86)\Racket\include" -DMZ_PRECISE_GC -DDYNAMIC_MZSCHEME -DDYNAMIC_MZSCH_DLL=\"libracket3m_a36fs8.dll\" -DDYNAMIC_MZGC_DLL=\"libracket3m_a36fs8.dll\" -DFEAT_PERL -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl528.dll\" -DFEAT_RUBY -DDYNAMIC_RUBY -DDYNAMIC_RUBY_DLL=\"msvcrt-ruby240.dll\" -DRUBY_VERSION=24 -DFEAT_HUGE /Fd.\ObjGXOULYHTRZi386/ /Zi
Linking: link  /nologo /opt:ref /LTCG:STATUS oldnames.lib kernel32.lib advapi32.lib shell32.lib gdi32.lib  comdlg32.lib ole32.lib netapi32.lib uuid.lib /machine:i386 gdi32.lib version.lib   winspool.lib comctl32.lib advapi32.lib shell32.lib netapi32.lib  /machine:i386  libcmt.lib oleaut32.lib user32.lib  /nodefaultlib:lua53.lib  /STACK:8388608  /nodefaultlib:python27.lib /nodefaultlib:python39.lib   "C:\Tcl\lib\tclstub86.lib" winmm.lib WSock32.lib Ws2_32.lib xpm\x86\lib-vc14\libXpm.lib /PDB:gvim.pdb -debug

:messages

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>10_LoadFTPlugin[17]..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>10_LoadFTPlugin[17]..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[11]..<SNR>96_display_exception:
line   19:
Error: jedi-vim failed to initialize Python: jedi-vim requires Vim with support for Python 3. (in BufRead Autocommands for "*.py"..FileType Autocommands for "*"..function <SNR>10_LoadFTPlugin[17]..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>96_init_python, line 4)
Error detected while processing BufRead Autocommands for "*.py"..FileType Autocommands for "*"..function <SNR>10_LoadFTPlugin[17]..script C:\Users\yt75534\vimfiles\bundle\jedi-vim\ftplugin\python\jedi.vim:
line   36:
E117: Unknown function: jedi#configure_call_signatures
"~\.vimrc" 267L, 10709B
: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

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
davidhaltercommented, Apr 15, 2022

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 😃

1reaction
davidhaltercommented, Apr 14, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - Anaconda Documentation
This error is likely due to anaconda-client being installed with admin rights. This will lead to incorrect user permissions for the anaconda-client config...
Read more >
Python gives error in anaconda after update - Stack Overflow
I somehow did it - I re-installed Python, and then I tried using the command prompt, and it worked. It turned out that...
Read more >
HTTP 000 Connection Failed during conda install with new ...
Try rebooting. You probably updated yourself to openssl 1.1.1. The problem is that on Windows, the library is in use whenever you run...
Read more >
Troubleshooting — conda 22.11.1.post13+5eef286ca ...
You may observe this error cropping up after a conda update. More recent versions of conda and more recent builds of Python are...
Read more >
Anaconda broken after conda update -all - python - Super User
I get the following error on every conda command. ... 1)[0]) File "C:\ProgramData\Anaconda3\lib\importlib\__init__.py", line 127, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found