On Wednesday, May 29, 2013 7:11:13 PM UTC+2, Axel Bender wrote:
> I'm using gvim 7.3 (64 bits, 1036) with dynamic python 2.7 support on Windows 
> 7 (64 bits). Python 2.7 (64 bits) works from the command line.
> 
> :py print "hello" gives me
> 
> E448: Could not load library function Py_InitModule4
> E263: Sorry, this command is disabled, ...
> 
> Also, 
> 
> :ec has("python")
> 
> returns 0, where
> 
> :ver
> 
> shows
> 
> ... +python/dyn ...
> 
> Using a tracing tool I can verify that gvim finds and successfully loads 
> %SYSTEMROOT%\system32\python27.dll.
> 
> Any suggestions?


You need to rebuild with -DMS_WIN64

It's a bug, which they don't consider to be a bug or I don't know... anyways:
http://bugs.python.org/issue4709

In short, Python's include headers rely on MS_WIN64 macro in order to determine 
if it's a 64-bit Windows, but this isn't defined unless _MSC_VER is defined. 
Which is not unless you are using a MS compiler. So you need to define MS_WIN64 
yourself.

-- 
-- 
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