On Wed, May 19, 2010 at 11:16 AM, Charles Campbell
<[email protected]> wrote:
> James Vega wrote:
>>
>> On Wed, May 19, 2010 at 10:04 AM, Charles Campbell
>> <[email protected]> wrote:
>>
>>>
>>> Hello!
>>>
>>> I downloaded mercurial-1.5.tar and did "make all", "make i nstall", and
>>> then
>>> ran "hg debuginstall"  --  and I see a message "ImportError: No module
>>> named
>>> osutil" -- any hints about where to find/install that module?
>>>
>>
>> It comes with Mercurial.  Depending on how you perform the install, it
>> is either built from a C file or a Python file is used.  I'm guessing
>> that the way your install ran, it is expecting to use the module built
>> from the C file but that didn't build for some reason.
>>
>> http://mercurial.selenic.com/wiki/UnixInstall may be helpful.
>>
>>
>
> I set up PYTHONPATH set so that I'm not getting "couldn't find mercurial
> libraries" from
>
> (date && hg clone https://vim.googlecode.com/hg/ vim) 2>&1 |tee hg-vim.log
>
> but now I'm being bit by that osutil  problem:
>
> (date && hg clone https://vim.googlecode.com/hg/ vim) 2>&1 |tee hg-vim.log
> ...
>  File "/home/cec/.SW/MERCURIAL/mercurial-1.5/mercurial/demandimport.py",
> line 47, in _load
>   mod = _origimport(head, globals, locals)
> ImportError: No module named osutil
>
>
> Next, I tried, in the directory where I unpacked mercurial:
>
> make clean
> make all
>
> and this time got
> ...
> python rst2man.py --halt warning \
>         --strip-elements-with-class htmlonly hg.1.txt hg.1
> Traceback (most recent call last):
>  File "rst2man.py", line 54, in ?
>   import docutils
> ImportError: No module named docutils
>
> Does mercurial 1.5 require a more recent python than 2.4.3 I wonder?

According to the UnixInstall page, it simply requires 2.4.  docutils
isn't a standard Python module.  You specifically need to install it[0]
or forego building the documentation.

[0]: http://docutils.sourceforge.net/
-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <[email protected]>

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