Hi,

2018/1/19 Fri 19:19:09 UTC+9 Ni Va wrote:
> Le vendredi 19 janvier 2018 11:14:22 UTC+1, Ken Takata a écrit :
> > Hi,
> > 
> > 2018/1/19 Fri 18:54:35 UTC+9 Ni Va wrote:
> > > Hi,
> > > 
> > > 
> > > On Seven Machine, tests : 
> > > 1. py3 print('hell') crash vim.
> > > 1. py  print('hell') print hell.
> > > 
> > > 
> > > 
> > > - echo has('python3') returns 1
> > > - put=$path returns :
> > >   c:\thirdPartTools\python36
> > >   c:\thirdPartTools\python27
> > > - echo system('where python36.dll') returns   
> > > c:\thirdPartTools\python36\python36.dll
> > > 
> > > 
> > > Thank you
> > > Niva
> > > 
> > > 
> > > 
> > > VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jan 18 2018 16:03:34)
> > > MS-Windows 64-bit GUI version with OLE support
> > > Included patches: 1-1428
> > > Huge version with GUI.  Features included (+) or not (-):
> > > +acl               +byte_offset       +comments          +digraphs        
> > >   +farsi             +iconv/dyn         +linebreak         +mouse         
> > >     +packages          +python3/dyn       +startuptime       
> > > -termguicolors     +user_commands     +wildmenu
> > > +arabic            +channel           +conceal           +directx         
> > >   +file_in_path      +insert_expand     +lispindent        +mouseshape    
> > >     +path_extra        +quickfix          +statusline        +terminal    
> > >       +vertsplit         +windows
> > > +autocmd           +cindent           +cryptv            -dnd             
> > >   +find_in_path      +job               +listcmds          +multi_byte    
> > >     -perl              +reltime           -sun_workshop      -tgetent     
> > >       +virtualedit       +writebackup
> > > +autoservername    +clientserver      -cscope            -ebcdic          
> > >   +float             +jumplist          +localmap          +multi_lang    
> > >     +persistent_undo   +rightleft         +syntax            
> > > -termresponse      +visual            -xfontset
> > > +balloon_eval      +clipboard         +cursorbind        +emacs_tags      
> > >   +folding           +keymap            +lua/dyn           -mzscheme      
> > >     -postscript        +ruby/dyn          +tag_binary        +textobjects 
> > >       +visualextra       -xim
> > > -balloon_eval_term +cmdline_compl     +cursorshape       +eval            
> > >   -footer            +lambda            +menu              -netbeans_intg 
> > >     +printer           +scrollbind        +tag_old_static    +timers      
> > >       +viminfo           -xpm_w32
> > > +browse            +cmdline_hist      +dialog_con_gui    +ex_extra        
> > >   +gettext/dyn       +langmap           +mksession         +num64         
> > >     +profile           +signs             -tag_any_white     +title       
> > >       +vreplace          -xterm_save
> > > ++builtin_terms    +cmdline_info      +diff              +extra_search    
> > >   -hangul_input      +libcall           +modify_fname      +ole           
> > >     +python/dyn        +smartindent       -tcl               +toolbar     
> > >       +wildignore        
> > >    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 /nologo  -I. -Iproto -DHAVE_PATHDEF -DWIN32   
> > > -DFEAT_TERMINAL  -DFEAT_JOB_CHANNEL      -DWINVER=0x0501 
> > > -D_WIN32_WINNT=0x0501 /MP -DHAVE_STDINT_H /O2 /GL -DNDEBUG  /Zl /MT 
> > > -DFEAT_OLE -DFEAT_MBYTE -DFEAT_GUI_W32 -DFEAT_DIRECTX -DDYNAMIC_DIRECTX 
> > > -DFEAT_DIRECTX_COLOR_EMOJI -DDYNAMIC_ICONV -DDYNAMIC_GETTEXT -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=\"python36.dll\" -DFEAT_RUBY 
> > > -DDYNAMIC_RUBY -DDYNAMIC_RUBY_VER=24 
> > > -DDYNAMIC_RUBY_DLL=\"x64-msvcrt-ruby240.dll\" -DFEAT_HUGE 
> > > /Fd.\ObjGXOUYHRAMD64/ /Zi
> > > Linking: link /RELEASE /nologo /subsystem:windows /LTCG:STATUS 
> > > oldnames.lib kernel32.lib advapi32.lib shell32.lib gdi32.lib  
> > > comdlg32.lib ole32.lib uuid.lib /machine:AMD64 gdi32.lib version.lib   
> > > winspool.lib comctl32.lib advapi32.lib shell32.lib  /machine:AMD64  
> > > libcmt.lib oleaut32.lib user32.lib  /nodefaultlib:lua53.lib   
> > > /nodefaultlib:python27.lib /nodefaultlib:python36.lib    WSock32.lib  
> > > /PDB:gvim.pdb -debug
> > 
> > How did you install Python 3.6 and how did you compile Vim?
> > 
> > Regards,
> > Ken Takata
> 
> 
> 
> 
> On a first machine, I build gvim 8.0.1428 with nmake 64bits and download and 
> install python36 64bits.
> 
> But I move this distri without installer onto another Seven Machine that had 
> python37 last beta release.
> 
> 
> Then it is solved, it seems that you cannot do a standalone distribution 
> gvim+python without some things in registry:
> 
> 
> Windows Registry Editor Version 5.00
> 
> [HKEY_CURRENT_USER\Software\Python]
> 
> [HKEY_CURRENT_USER\Software\Python\PythonCore]
> "DisplayName"="Python Software Foundation"
> "SupportUrl"="http://www.python.org/";
> 
> [HKEY_CURRENT_USER\Software\Python\PythonCore\3.6]
> "DisplayName"="Python 3.6 (64-bit)"
> "SupportUrl"="http://www.python.org/";
> "Version"="3.6"
> "SysVersion"="3.6"
> "SysArchitecture"="64bit"
> 
> [HKEY_CURRENT_USER\Software\Python\PythonCore\3.6\Help]
> 
> [HKEY_CURRENT_USER\Software\Python\PythonCore\3.6\Help\Main Python 
> Documentation]
> @="C:\\ThirdPartTools\\Python37\\Doc\\python370a4.chm"
> 
> [HKEY_CURRENT_USER\Software\Python\PythonCore\3.6\InstalledFeatures]
> "dev"="3.6"
> "Shortcuts"="3.6"
> "exe"="3.6"
> "lib"="3.6"
> "test"="3.6"
> "doc_shortcut"="3.6"
> "doc"="3.6"
> "tools"="3.6"
> "pip"="3.6"
> 
> [HKEY_CURRENT_USER\Software\Python\PythonCore\3.6\InstallPath]
> @="C:\\ThirdPartTools\\Python36\\"
> "ExecutablePath"="C:\\ThirdPartTools\\Python36\\python.exe"
> "WindowedExecutablePath"="C:\\ThirdPartTools\\Python36\\pythonw.exe"
> 
> [HKEY_CURRENT_USER\Software\Python\PythonCore\3.6\PythonPath]
> @="C:\\ThirdPartTools\\Python36\\Lib\\;C:\\ThirdPartTools\\Python36\\DLLs\\"

I haven't tried using if_python3 without using Python 3 installer,
but setting PYTHONHOME environment variable might be another option.
(This might affect both python 2 and 3, though.)

Regards,
Ken Takata

-- 
-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui