Fastimport plugin not working

Thomas Manson dev.mansonthomas at gmail.com
Tue Oct 15 07:41:55 UTC 2013


Hi Jelmer,

  python do not complain :

Thomass-MacBook-Pro:crf-rdp tmanson$ python -c "import fastimport"
Thomass-MacBook-Pro:crf-rdp tmanson$ python -c "import fastimport"
Thomass-MacBook-Pro:crf-rdp tmanson$


On Tue, Oct 15, 2013 at 12:28 AM, Jelmer Vernooij <jelmer at samba.org> wrote:

> 'python -c "import fastimport"


the ~/.bzr.log show the following :

Mar 2013-10-15 09:31:13 +0200
0.131  bazaar version: 2.6b2
0.131  bzr arguments: [u'fast-export', u'--plain', u'.']
0.137  looking for plugins in /Users/tmanson/.bazaar/plugins
0.140  looking for plugins in
/Library/Python/2.6/site-packages/bzrlib/plugins
0.141  Plugin name fastimport already loaded
0.200  encoding stdout as sys.stdout encoding 'UTF-8'
0.201  Transferred: 0kB (0.0kB/s r:0kB w:0kB)
0.204  Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 930, in
exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 1141,
in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 673, in
run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 697, in
run
    return self._operation.run_simple(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 136, in
run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 166, in
_do_with_cleanups
    result = func(*args, **kwargs)
  File "/Users/tmanson/.bazaar/plugins/fastimport/cmds.py", line 691, in run
    load_fastimport()
  File "/Users/tmanson/.bazaar/plugins/fastimport/__init__.py", line 76, in
load_fastimport
    "bzr-fastimport requires the fastimport python module")
DependencyNotPresent: Unable to import library "fastimport": bzr-fastimport
requires the fastimport python module

0.204  return code 3




So I can see that it uses python 2.6.

and when I've two version (because of my many try to solve this issue, I
end up installing python 2.7.2 with macport through a dependency)

Thomass-MacBook-Pro:crf-rdp tmanson$ python -V
Python 2.7.2


and bzr uses 2.6:
Thomass-MacBook-Pro:fastimport tmanson$ head /usr/local/bin/bzr
#!/usr/bin/python2.6

# Copyright (C) 2005-2012 Canonical Ltd


And in fact, it's not the macport version of python (macport python is
2.7.5, mine is 2.7.2)

I need to get back to work now, I'll try to force the use of 2.6 python to
install fastimport and try again.

Thanks for your help Jelmer, I think I get closer to a solution here ;)

Thomas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/bazaar/attachments/20131015/5f695231/attachment.html>


More information about the bazaar mailing list