On Tue, Apr 7, 2015 at 12:43 AM, Yukihiro Nakadaira < yukihiro.nakada...@gmail.com> wrote:
> On Tue, Apr 7, 2015 at 3:38 AM, David Fishburn <dfishburn....@gmail.com> > wrote: > >> :echo has('perl') has('python') has('python3') >> 1 1 0 >> >> :python print 'anything' >> E887: Sorry, this command is disabled, the Python's site module could not >> be loaded. >> >> >> >> I have found only 1 reference to this error in vim_use or vim_dev: >> >> >> https://groups.google.com/forum/#!searchin/vim_dev/the$20Python$27s$20site$20module$20could$20not$20be$20loaded/vim_dev/d4Iz0vdPJ48/HZzSJ-fVTOcJ >> >> Which is this: >> >> Patch 7.4.380 >> Problem: Loading python may cause Vim to exit. >> Solution: Avoid loading the "site" module. (Taro Muraoka) >> Files: src/if_python.c >> >> >> Does anyone know what I might be doing wrong? >> > > Check result of "where python27.dll" in command prompt. > I guess that Mercurial's python27.dll is found before Python's > python27.dll. > I have tried: PYTHON_HOME=D:\Python27 D:\>SET PY PYTHON_HOME=D:\Python27 D:\>dir %PYTHON_HOME% Volume in drive D is D Volume Serial Number is FC7C-B353 Directory of D:\Python27 07/04/2015 07:58 AM <DIR> DLLs 18/07/2014 04:43 PM <DIR> Doc 18/07/2014 04:43 PM <DIR> include 06/04/2015 10:54 AM <DIR> Lib 18/07/2014 04:44 PM <DIR> libs 18/07/2014 04:44 PM <DIR> Scripts 18/07/2014 04:44 PM <DIR> tcl 18/07/2014 04:44 PM <DIR> Tools ... 04/07/2010 09:03 AM 26,624 python.exe 04/07/2010 09:04 AM 27,136 pythonw.exe 04/07/2010 07:32 AM 54,958 README.txt 04/07/2010 09:01 AM 49,664 w9xpopen.exe 6 File(s) 438,119 bytes 10 Dir(s) 174,812,467,200 bytes free D:\>gvim :python print 'anything' E887: Sorry, this command is disabled, the Python's site module could not be loaded. D:\>where python27.dll C:\Windows\System32\python27.dll C:\Program Files\Mercurial\python27.dll Using Explorer and checking properties on C:\Windows\System32\python27.dll I see file Version: 2.7.3150.1013 The C:\Program Files\Mercurial\python27.dll has a file version of: 2.7.4150.1013 Trying this: D:\>SET PATH=C:\Program Files\Mercurial;%PATH% D:\>gvim :python print 'anything' E887: Sorry, this command is disabled, the Python's site module could not be loaded. Any other suggestions? TIA, David -- -- 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 vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.