On Tue, Feb 22, 2011 at 3:33 PM, W. Trevor King <[email protected]> wrote:

> ...
> Hmm, that is indeed the patched version.
>
> On Tue, Feb 22, 2011 at 02:57:09PM -0700, Michael Chaffin wrote:
> > I then tried to install again and still received the same error.
>
> The goal of that patch was to not execute the failing code, so
> something strange is going on here.  Could you post the full traceback
> with the new BE?  Could you also post the output of `bzr version`.
>
> These will probably be pretty boring, but until I can reproduce your
> error I can't do much to fix it...
>
> Thanks,
> Trevor
>
>
King > ... Could you post the full traceback with the new BE?  Could you
also post the output of `bzr version`.

** SNIP **
C:\XXX\ZZZ>be --full-version
1.0.0
revision: 0d9ec7c727ff624ee1905831e806cab8c9e65537
date: 2011-02-22
committer: W. Trevor King
storage version: Bugs Everywhere Directory v1.4

C:\XXX\ZZZ>be init
Traceback (most recent call last):
  File "C:\Program Files\Python26\Scripts\be.py", line 26, in <module>
    sys.exit(libbe.ui.command_line.main())
  File "C:\PROGRA~1\Python26\lib\site-packages\libbe\ui\command_line.py",
line 332, in main
    ret = dispatch(ui, command, args)
  File "C:\PROGRA~1\Python26\lib\site-packages\libbe\ui\command_line.py",
line 264, in dispatch
    ret = ui.run(command, options, args)
  File "C:\PROGRA~1\Python26\lib\site-packages\libbe\command\base.py", line
535, in run
    return command.run(options, args)
  File "C:\PROGRA~1\Python26\lib\site-packages\libbe\command\base.py", line
262, in run
    self.status = self._run(**params)
  File "C:\PROGRA~1\Python26\lib\site-packages\libbe\command\init.py", line
90,in _run
    storage.connect()
  File "C:\PROGRA~1\Python26\lib\site-packages\libbe\storage\base.py", line
216, in connect
    self._connect()
  File "C:\PROGRA~1\Python26\lib\site-packages\libbe\storage\vcs\base.py",
line 614, in _connect
    self.root()
  File "C:\PROGRA~1\Python26\lib\site-packages\libbe\storage\vcs\base.py",
line 577, in root
    root = self._vcs_root(self.repo)
  File "C:\PROGRA~1\Python26\lib\site-packages\libbe\storage\vcs\bzr.py",
line 140, in _vcs_root
    cmd.cleanup_now()
  File "C:\PROGRA~1\Python26\lib\site-packages\bzrlib\commands.py", line
441, in cleanup_now
    self._operation.cleanup_now()
AttributeError: 'cmd_root' object has no attribute '_operation'

C:\XXX\ZZZ>bzr version
Bazaar (bzr) 2.2.3
  Python interpreter: C:\Program Files\Bazaar\python26.dll 2.6.4
  Python standard library: C:\Program Files\Bazaar\lib\library.zip
  Platform: Windows-XP-5.1.2600-SP3
  bzrlib: C:\Program Files\Bazaar\lib\library.zip\bzrlib
  Bazaar configuration: C:\Documents and Settings\mch2usb\Application
Data\bazaar\2.0
  ...
** SNIP **

A quick check of the code for libbe\storage\vcs\bzr.py on line 140 shows :

** SNIP **
    def _vcs_root(self, path):
        """Find the root of the deepest repository containing path."""
        cmd = bzrlib.builtins.cmd_root()
        cmd.outf = StringIO.StringIO()
        cmd.run(filename=path)
        if self.version_cmp(2,3,0) < 0:
            cmd.cleanup_now()
        return cmd.outf.getvalue().rstrip('\n')
** SNIP **

But I am running Bzr 2.2.3 ... so version_cmp(...) would return -1 where -1
< 0 and it will call cmd.cleanup_now( ).

I made a quick change to the following, and re-installed.

** SNIP **
    def _vcs_root(self, path):
        """Find the root of the deepest repository containing path."""
        cmd = bzrlib.builtins.cmd_root()
        cmd.outf = StringIO.StringIO()
        cmd.run(filename=path)
        if self.version_cmp(2,3,0) >= 0:
            cmd.cleanup_now()
        return cmd.outf.getvalue().rstrip('\n')
** SNIP **

Which gave me the following traceback error :

** SNIP **
C:\XXX\ZZZ>be init
Traceback (most recent call last):
  File "C:\Program Files\Python26\Scripts\be.py", line 26, in <module>
    sys.exit(libbe.ui.command_line.main())
  File "C:\PROGRA~1\Python26\lib\site-packages\libbe\ui\command_line.py",
line 332, in main
    ret = dispatch(ui, command, args)
  File "C:\PROGRA~1\Python26\lib\site-packages\libbe\ui\command_line.py",
line 264, in dispatch
    ret = ui.run(command, options, args)
  File "C:\PROGRA~1\Python26\lib\site-packages\libbe\command\base.py", line
535, in run
    return command.run(options, args)
  File "C:\PROGRA~1\Python26\lib\site-packages\libbe\command\base.py", line
262, in run
    self.status = self._run(**params)
  File "C:\PROGRA~1\Python26\lib\site-packages\libbe\command\init.py", line
95,in _run
    storage.init()
  File "C:\PROGRA~1\Python26\lib\site-packages\libbe\storage\base.py", line
194, in init
    return self._init()
  File "C:\PROGRA~1\Python26\lib\site-packages\libbe\storage\vcs\base.py",
line 602, in _init
    self._vcs_add(self._u_rel_path(self.be_dir))
  File "C:\PROGRA~1\Python26\lib\site-packages\libbe\storage\vcs\bzr.py",
line 159, in _vcs_add
    cmd.run(file_list=[path], file_ids_from=self.repo)
  File "C:\PROGRA~1\Python26\lib\site-packages\bzrlib\commands.py", line
705, in run
    return self._operation.run_simple(*args, **kwargs)
  File "C:\PROGRA~1\Python26\lib\site-packages\bzrlib\cleanup.py", line 135,
in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "C:\PROGRA~1\Python26\lib\site-packages\bzrlib\cleanup.py", line 165,
in _do_with_cleanups
    result = func(*args, **kwargs)
  File "C:\PROGRA~1\Python26\lib\site-packages\bzrlib\builtins.py", line
690, in run
    no_recurse, action=action, save=not dry_run)
  File "C:\PROGRA~1\Python26\lib\site-packages\bzrlib\mutabletree.py", line
48,in tree_write_locked
    self.lock_tree_write()
  File "C:\PROGRA~1\Python26\lib\site-packages\bzrlib\workingtree_4.py",
line 622, in lock_tree_write
    return self._lock_self_write()
  File "C:\PROGRA~1\Python26\lib\site-packages\bzrlib\workingtree_4.py",
line 602, in _lock_self_write
    state.lock_write()
  File "C:\PROGRA~1\Python26\lib\site-packages\bzrlib\dirstate.py", line
3065, in lock_write
    self._lock_token = lock.WriteLock(self._filename)
  File "C:\PROGRA~1\Python26\lib\site-packages\bzrlib\lock.py", line 413, in
__init__
    os.O_RDWR, "rb+")
  File "C:\PROGRA~1\Python26\lib\site-packages\bzrlib\lock.py", line 371, in
_open
    raise errors.LockContention(filename, e)
bzrlib.errors.LockContention: Could not acquire lock
"C:/XXX/ZZZ/.bzr/checkout/dirstate": (32, 'CreateFileW', 'The process cannot
access the file because it is being used by another process.')
** SNIP **

King > ... These will probably be pretty boring, but until I can reproduce
your error I can't do much to fix it...

Thank you for the help ... as I have said I can poke things a little bit
from my end as well. I guess the short easy answer is ... there is no magic
switch I am missing or package to install? This might be a bug between Bugs
Everywhere and bzlib for now?
_______________________________________________
Be-devel mailing list
[email protected]
http://void.printf.net/cgi-bin/mailman/listinfo/be-devel

Reply via email to