bug: vim 7.3 Python 3.2 FATAL "take_gil: NULL state"

311 views
Skip to first unread message

Roland Puntaier

unread,
Jun 10, 2011, 9:14:43 AM6/10/11
to vim...@googlegroups.com
Hello Bram,

I've compiled vim7.3 with Python3.2 and got "take_gil: NULL state" when
doing :py3 ...

After some investigation I found that with Python3.2
PyEval_InitThreads() must be called after Py_Initialize().

This needs to be changed in if_python3.c.

regards,
Roland

Bram Moolenaar

unread,
Jun 10, 2011, 10:53:37 PM6/10/11
to Roland Puntaier, vim...@googlegroups.com

Roland Puntaier wrote:

Thanks. Do you know if this works with all Python 3.x versions?

--
If you feel lonely, try schizophrenia.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Andreas Behr

unread,
Jun 11, 2011, 7:26:57 AM6/11/11
to vim...@googlegroups.com, Roland Puntaier
They changed the order as of python version 3.2.

Changing the order of the two calls even works with 3.1.x (short test with mac osx)

I attached a changeset with some minor changes to configure.in and if_python.c to get a more general python 3.x support in vim (see PEP 3149)
vim-python3.x.changeset
Reply all
Reply to author
Forward
0 new messages