Bzr fast-import not finding installed Hg
Alexander Belchenko
bialix at ukr.net
Thu Nov 11 11:26:34 GMT 2010
Arnel Legaspi пишет:
> On 11/11/2010 6:57 PM, Alexander Belchenko wrote:
>>> I have Python 2.6.6 installed, along with those Python-based versions of
>>> both Bzr and Hg, plus I've added PyWin32. Same error message. What other
>>> libs should I put in?
>>
>> It's easy to test, run:
>>
>> python -c "import mercurial, hg2git"
>
> Thanks! This produces no error message. So I guess I have everything
> needed then?
>
>> If the command above works for you then please show us relevant part of
>> .bzr.log with fast-export error.
>
> Here's the log:
>
> Thu 2010-11-11 17:17:25 +0800
> 0.187 bazaar version: 2.2.1
> 0.187 bzr arguments: [u'fast-export-from-hg', u'../cadv', u'cadvff.fi']
> 0.203 looking for plugins in C:/Documents and
> Settings/Arnel/Application Data/bazaar/2.0/plugins
> 0.203 looking for plugins in C:/Program Files/Bazaar/plugins
> 0.453 encoding stdout as sys.stdout encoding 'cp437'
> 0.484 Traceback (most recent call last):
> File "bzrlib\commands.pyo", line 912, in exception_to_return_code
> File "bzrlib\commands.pyo", line 1112, in run_bzr
> File "bzrlib\commands.pyo", line 690, in run_argv_aliases
> File "bzrlib\commands.pyo", line 705, in run
> File "bzrlib\cleanup.pyo", line 135, in run_simple
> File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
> File "C:/Program Files/Bazaar/plugins\fastimport\__init__.py", line
> 824, in run
> File "C:/Program
> Files/Bazaar/plugins\fastimport\exporters\__init__.py", line 323, in
> fast_export_from
> BzrError: mercurial missing. Please install Mercurial 1.2 or later and
> try again.
>
> 0.484 return code 3
From the log I see you're still running standalone bzr.exe instead of
python one. Try to run instead:
python C:\Python2X\Scripts\bzr fast-export-from-hg ../cadv cadvff.fi
(where Python2X is your python installation folder)
More information about the bazaar
mailing list