On Tue, Apr 17, 2012 at 2:22 PM, Senthil Kumaran wrote:
> On Tuesday, 17 April 2012 09:59:25 UTC+8, char101 wrote:
>
>> Just add this line in your .vimrc before using any python commands
>>
>> let $PYTHONHOME='<your python install dir>'
>
> I tried this, but it did not help.
>
> The error message has something to do with virtual environments and
> I am not sure what is happening with a vim plugin is calling python
> <<<EOF followed-by-python-code within it.
>
This thread of the python-devel mailing list describes the issues
raised by the change in 2.7.3 that removed urandom from the stdlib
module os.py:
http://thread.gmane.org/gmane.comp.python.devel/131382
One of the participants in this thread wrote a page explaining the
issue:
http://piratepad.net/PAZ3CEq9CZ
If you do not see 2.7.3 when you run:
:python import sys; print sys.version
then it is because you are running in Vim an "older Python executable
(which does not have an implementation of urandom), but then
references the newer standard library (in which the os module also
does not have an implementation of urandom)."
--
Xavier
Les Chemins de Lokoti: http://lokoti.alwaysdata.net
--
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