On Monday, 16 April 2012 21:14:50 UTC+8, MarcWeber  wrote:

> You're not accurately describing what might be causing the problem.
> In python you call it "loading modules" rather than "plugins".

I meant,those vim plugins which were internally using python.


> :py import urllib2

Yeah, just

:py import random

Was enough to experience this error.

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/senthil/localpython/lib/python2.7/random.py", line 47, in <module>
    from os import urandom as _urandom
ImportError: cannot import name urandom

> Thus there are two possible fixes:
> a) try to compile python with a different python version (or try to
> compile that python with urandom support if possible, watch
> configuration output)

hmm. Perhaps, this could work, but that would prove something is wrong with 
vim, correct? Because the python 2.7.3 works out of box. (I can do import 
random and my os module has urandom()) just that from vim it does not work.

> Because you compiled python from source I think you have to reconfigure
> *and* read the configure output carefully.

Let me try to get more details from vim + python configure output. Standalone 
that python version is fine. I can do from os import urandom but from within 
vim it fails.

Thanks,
Senthil

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

Raspunde prin e-mail lui