There is an issue with vim's python support on Windows, when one tries to use 
python libraries that require the MSVC 9.0 runtime. This has been observer in 
vim-ipython[1]. It can be easily reproduced with

    :py import uuid

and the error I get is

    R6034
    An application has made an attempt to load the C runtime library 
incorrectly.
    Please contact the application's support team for more information.

I get this problem both with the "Vim without Cream" package, and with my own 
compiled vim (VS 2012, x86, Win 8), using the standard Python 2.7 from 
python.org

This appears to be a manifest problem, where it's not enough to have the MSVC 
runtime dll in your path, but the library or the program loading it needs to 
have an entry in its manifest specifying a dependency on the MSVC 9.0 runtime, 
e.g.

    <dependency>
      <dependentAssembly>
        <assemblyIdentity type="win32" name="Microsoft.VC90.CRT" 
version="9.0.21022.8" processorArchitecture="x86" 
publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
      </dependentAssembly>
    </dependency>

Given that these libraries work from the python interpreter (as python27.dll 
has the correct dependency entry in its manifest), we probably can't expect 
every single python library to have to correct manifest dependency entry. So, I 
believe it'd be a good idea for the vim.exe/gvim.exe to have such an entry, 
potentially ripped out of python27.dll (as per this SO entry[2] or my comment 
in the vim-ipython issue tracker[3]).

[1] https://github.com/ivanov/vim-ipython/issues/20
[2] 
http://stackoverflow.com/questions/9764341/runtime-error-with-vim-omnicompletion
[3] https://github.com/ivanov/vim-ipython/issues/20#issuecomment-9504152

-- 
-- 
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/groups/opt_out.


Raspunde prin e-mail lui