1. I compiled python 2.7.3 from source.
2. Compiled vim against this custom python interpter
Now there are certain plugins which embed Python like this:
python <<EOF
# -*- coding: utf-8 -*-
import urllib , urllib2 , vim , xml.dom.minidom , xmlrpclib , sys , string , re
When loading those plugins - this error is thrown.
Error detected while processing /home/senthil/.vim/plugin/blog.vim:
line 209:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "/home/senthil/localpython/lib/python2.7/urllib2.py", line 94, in
<module>
import httplib
File "/home/senthil/localpython/lib/python2.7/httplib.py", line 79, in
<module>
import mimetools
File "/home/senthil/localpython/lib/python2.7/mimetools.py", line 6, in
<module>
import tempfile
File "/home/senthil/localpython/lib/python2.7/tempfile.py", line 34, in
<module>
from random import Random as _Random
File "/home/senthil/localpython/lib/python2.7/random.py", line 47, in <module>
from os import urandom as _urandom
ImportError: cannot import name urandom
I searched the internet and it seems that this error is more for Python Virtual
Environments was fixed in Python 2.6 and is not detected else where. So I am
curious if something in vim needs fixing too.
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