*  if has('win32')*
* if isdirectory( expand('$vim/extensions/python/x86') )*
*   var pythonthree_homes: list<string> = system('where 
"python311.dll"')->split('\n')->filter('v:val =~ "extensions"')*
*   execute 'set pythonthreedll='  ..  
pythonthree_homes[0]->fnamemodify(':p:gs?\\?/?')*
* endif*
*  endif*

Le mardi 2 novembre 2021 à 16:12:38 UTC+1, Ni Va a écrit :

> Fixed
>
> Solved / Fixed :
>
> 1. Copied python311.dll, python3.dll, vcruntime140.dll in your distro 
> path  expand('$vim/extensions/python/x86')
>
> 2. Put this in your _vimrc
>
> *  if has('win32')*
> * if isdirectory( expand('$vim/extensions/python/x86') )*
> *   var pythonthree_homes: list<string> = system('where 
> "python311.dll"')->split('\n')*
> *   execute 'set pythonthreedll='  ..  
> pythonthree_homes[1]->fnamemodify(':p:gs?\\?/?')*
> * endif*
> *  endif*
>
>
> 3. Testing Py3 v3.11 interface 
> *nnoremap <silent> <F8>   :exec 'py3 import sys'<cr> :exec 'py3 
> print(''python3 hell working'')'<cr>*
>
> Le mercredi 27 octobre 2021 à 15:58:42 UTC+2, Ni Va a écrit :
>
>> Hi,
>>
>> Got this error on pyhton3 print('foo')
>> E370: Could not load library python311.dll: Le module sp<e9>cifi<e9> est 
>> introuvable.
>> E263: Sorry, this command is disabled, the Python library could not be 
>> loaded.
>>
>> This is my configuration
>>
>> 1) redir @a | echomsg system('where python311.dll') | redir END | put=@a
>>   C:\Python311\python311.dll^@S:\path\Vim\to\python\x86\python311.dll^@
>>
>> 2) echomsg filereadable('S:\path\Vim\to\python\x86\python311.dll')
>>
>> 3) VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Oct 27 2021 15:23:19)
>> MS-Windows 32-bit GUI version with OLE support
>> Included patches: 1-3565
>> Compiled by ni.va@
>> Huge version with GUI.  Features included (+) or not (-):
>> +cmdline_compl      +file_in_path       +lua/dyn            -python      
>>        -termguicolors      +windows
>> +cmdline_hist       +find_in_path       +menu               +python3/dyn  
>>       +terminal           +writebackup
>> Compilation: gcc -I. -Iproto -DWIN32 -DWINVER=0x0600 
>> -D_WIN32_WINNT=0x0600 -DHAVE_PATHDEF -DFEAT_HUGE -DHAVE_STDINT_H 
>> -DHAVE_GETTEXT -DHAVE_LOCALE_H -DDYNAMIC_GETTEXT -DFEAT_OLE -DFEAT_CSCOPE 
>> -DFEAT_NETBEANS_INTG -DFEAT_JOB_CHANNEL -DFEAT_IPV6 -DHAVE_INET_NTOP 
>> -DFEAT_TERMINAL -DFEAT_SOUND -DFEAT_DIRECTX -DDYNAMIC_DIRECTX 
>> -DFEAT_DIRECTX_COLOR_EMOJI -DFEAT_GUI_MSWIN -DFEAT_CLIPBOARD 
>> -DFEAT_MBYTE_IME -DDYNAMIC_IME -DDYNAMIC_ICONV -pipe -march=i686 -Wall 
>> -I./lua-5.3.5/src/include -I./lua-5.3.5/src -DFEAT_LUA -DDYNAMIC_LUA 
>> -DDYNAMIC_LUA_DLL="lua53.dll" -DFEAT_RUBY -I C:/Ruby30/include/ruby-3.0.0 
>> -I C:/Ruby30/include/ruby-3.0.0/i386-mingw32 -DDYNAMIC_RUBY 
>> -DDYNAMIC_RUBY_DLL="msvcrt-ruby300.dll" -DRUBY_VERSION=30 -DFEAT_PYTHON3 
>> -DDYNAMIC_PYTHON3 -DDYNAMIC_PYTHON3_DLL="python311.dll" -O3 
>> -fomit-frame-pointer -freg-struct-return
>> Linking: g++ -I. -Iproto -DWIN32 -DWINVER=0x0600 -D_WIN32_WINNT=0x0600 
>> -DHAVE_PATHDEF -DFEAT_HUGE -DHAVE_STDINT_H -DHAVE_GETTEXT -DHAVE_LOCALE_H 
>> -DDYNAMIC_GETTEXT -DFEAT_OLE -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG 
>> -DFEAT_JOB_CHANNEL -DFEAT_IPV6 -DHAVE_INET_NTOP -DFEAT_TERMINAL 
>> -DFEAT_SOUND -DFEAT_DIRECTX -DDYNAMIC_DIRECTX -DFEAT_DIRECTX_COLOR_EMOJI 
>> -DFEAT_GUI_MSWIN -DFEAT_CLIPBOARD -DFEAT_MBYTE_IME -DDYNAMIC_IME 
>> -DDYNAMIC_ICONV -pipe -march=i686 -Wall -I./lua-5.3.5/src/include 
>> -I./lua-5.3.5/src -DFEAT_LUA -DDYNAMIC_LUA -DDYNAMIC_LUA_DLL="lua53.dll" 
>> -DFEAT_RUBY -I C:/Ruby30/include/ruby-3.0.0 -I 
>> C:/Ruby30/include/ruby-3.0.0/i386-mingw32 -DDYNAMIC_RUBY 
>> -DDYNAMIC_RUBY_DLL="msvcrt-ruby300.dll" -DRUBY_VERSION=30 -DFEAT_PYTHON3 
>> -DDYNAMIC_PYTHON3 -DDYNAMIC_PYTHON3_DLL="python311.dll" -O3 
>> -fomit-frame-pointer -freg-struct-return -s -municode -mwindows -o gvim.exe 
>> -lkernel32 -luser32 -lgdi32 -ladvapi32 -lcomdlg32 -lcomctl32 -lnetapi32 
>> -lversion -lwsock32 -lws2_32 -ld2d1 -ldwrite -loleaut32 -lwinmm 
>> -Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic -lgcc_eh -Wl,-Bstatic 
>> -lwinpthread -Wl,-Bdynamic -lole32 -luuid      
>>
>>

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/63f2f07f-b494-49f5-964a-a8a015e99343n%40googlegroups.com.

Reply via email to