'Inter1and2Helper' object has no attribute 'source_repo'

Bug #515325 reported by Pat Tressel on 2010-02-01
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Bazaar
High
Unassigned

Bug Description

bzr branch fails when done inside a shared repository. This is on WinXP, using bzr 2.0.3 or 2.0.4., with bzr commands run under Cygwin. Both bzr installs were done using the "standalone" installer.

Between attempts, I deleted the entire contents of the directory in which the shared repository was made. At first, I was placing the branch directory inside of a directory where a checkout --lightweight had been done, with the checkout directory inside the directory holding the shared repository (as in bug #376931). That is, the command sequence was (showing the actual branches I was fetching so you can try it with the same if you want):

mkdir repo
cd repo
bzr init-repo .
bzr checkout --lightweight lp:~mdipierro/web2py/devel web2py
cd web2py/applications
bzr branch lp:sahana/sahanapy trunk

Two attempts, one each with 2.0.3 and 2.0.4, both crashed with the same error (see below). I was expecting that this might not be legal, so abandoned it.

I then tried making the branch without any checkout directory in the way:

rm -r repo
mkdir repo
cd repo
bzr init-repo .
bzr branch lp:~mdipierro/web2py/devel web2py

After running for over an hour, that hung (i.e. download progress meter stopped), so I ^C'd out. (Had that worked, I would have tried making the other branch within it.) I then the other branch:

rm -r repo
mkdir repo
cd repo
bzr init-repo .
bzr branch lp:sahana/sahanapy trunk

=================================

That crashed with the same error as had the original two attempts. Here is the session, showing the trace, from the final attempt. (Note this is not the same error as was reported in bug #376931.)

Patricia Tressel@phobos ~/my_documents/sahanapy/sahanapy_repo
$ bzr init-repo .
Shared repository with trees (format: 2a)
Location:
  shared repository: .

Patricia Tressel@phobos ~/my_documents/sahanapy/sahanapy_repo
$ bzr branch lp:sahana/sahanapy trunk
bzr: ERROR: bzrlib.errors.ErrorFromSmartServer: Error received from smart server
: ('error', "'Inter1and2Helper' object has no attribute 'source_repo'")

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 842, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1037, in run_bzr
  File "bzrlib\commands.pyo", line 654, in run_argv_aliases
  File "bzrlib\builtins.pyo", line 1243, in run
  File "bzrlib\bzrdir.pyo", line 1183, in sprout
  File "bzrlib\repository.pyo", line 1696, in fetch
  File "bzrlib\decorators.pyo", line 192, in write_locked
  File "bzrlib\repository.pyo", line 3414, in fetch
  File "bzrlib\fetch.pyo", line 81, in __init__
  File "bzrlib\fetch.pyo", line 107, in __fetch
  File "bzrlib\fetch.pyo", line 135, in _fetch_everything_for_search
  File "bzrlib\repository.pyo", line 4245, in insert_stream
  File "bzrlib\repository.pyo", line 4278, in _locked_insert_stream
  File "bzrlib\groupcompress.pyo", line 1608, in insert_record_stream
  File "bzrlib\groupcompress.pyo", line 1663, in _insert_record_stream
  File "bzrlib\versionedfile.pyo", line 1604, in read
  File "bzrlib\smart\repository.pyo", line 578, in iter_substream_bytes
  File "bzrlib\smart\repository.pyo", line 568, in iter_stream_decoder
  File "bzrlib\smart\message.pyo", line 338, in read_streamed_body
  File "bzrlib\smart\message.pyo", line 361, in _translate_error
ErrorFromSmartServer: Error received from smart server: ('error', "'Inter1and2Helper' object has no attribute 'source_repo'")

bzr 2.0.4 on python 2.5.4 (Windows-XP-5.1.2600-SP3)
arguments: ['c:\\Program Files\\Bazaar\\bzr.exe', 'branch', 'lp:sahana/sahanapy', 'trunk']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  bzrtools C:\Program Files\Bazaar\plugins\bzrtools [2.0.1]
  explorer C:\Program Files\Bazaar\plugins\explorer [0.8.3]
  launchpad C:\Program Files\Bazaar\plugins\launchpad [2.0.4]
  netrc_credential_store C:\Program Files\Bazaar\plugins\netrc_credential_store
[2.0.4]
  qbzr C:\Program Files\Bazaar\plugins\qbzr [0.14.6]
  rebase C:\Program Files\Bazaar\plugins\rebase [0.5.4]
  svn C:\Program Files\Bazaar\plugins\svn [1.0.0]
  upload C:\Program Files\Bazaar\plugins\upload [1.0.0dev]
  xmloutput C:\Program Files\Bazaar\plugins\xmloutput [0.8.5]

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.

=================================

Version info:

$ bzr version -v
Bazaar (bzr) 2.0.4
  Python interpreter: c:\Program Files\Bazaar\python25.dll 2.5.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\Patricia Tressel\Application Data\bazaar\2.0
  Bazaar log file: C:\Documents and Settings\Patricia Tressel\My Documents\.bzr.log

=================================

The relevant sections of the log may have a little more info than the above trace:

Sun 2010-01-31 15:51:45 -0800
0.141 bzr arguments: [u'init-repo', u'.']
0.157 looking for plugins in C:/Documents and Settings/Patricia Tressel/Application Data/bazaar/2.0/plugins
0.157 looking for plugins in C:/Program Files/Bazaar/plugins
0.375 encoding stdout as sys.stdout encoding 'cp437'
0.469 creating repository in file:///C:/Documents%20and%20Settings/Patricia%20Tressel/My%20Documents/sahanapy/sahanapy_repo/.bzr/.
0.516 return code 0

Sun 2010-01-31 15:53:24 -0800
0.141 bzr arguments: [u'branch', u'lp:sahana/sahanapy', u'trunk']
0.156 looking for plugins in C:/Documents and Settings/Patricia Tressel/Application Data/bazaar/2.0/plugins
0.156 looking for plugins in C:/Program Files/Bazaar/plugins
0.375 encoding stdout as sys.stdout encoding 'cp437'
2.906 bzr-svn: using Subversion 1.5.6 ()
10.234 Using fetch logic to copy between RemoteRepository(bzr+ssh://bazaar.launchpad.net/~flavour/sahana/sahanapy-trunk/.bzr/)(<RemoteRepositoryFormat>) and CHKInventoryRepository('file:///C:/Documents%20and%20Settings/Patricia%20Tressel/My%20Documents/sahanapy/sahanapy_repo/.bzr/repository/')(<RepositoryFormat2a>)
10.234 fetch up to rev {<email address hidden>}
1069.797 Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 842, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1037, in run_bzr
  File "bzrlib\commands.pyo", line 654, in run_argv_aliases
  File "bzrlib\builtins.pyo", line 1243, in run
  File "bzrlib\bzrdir.pyo", line 1183, in sprout
  File "bzrlib\repository.pyo", line 1696, in fetch
  File "bzrlib\decorators.pyo", line 192, in write_locked
  File "bzrlib\repository.pyo", line 3414, in fetch
  File "bzrlib\fetch.pyo", line 81, in __init__
  File "bzrlib\fetch.pyo", line 107, in __fetch
  File "bzrlib\fetch.pyo", line 135, in _fetch_everything_for_search
  File "bzrlib\repository.pyo", line 4245, in insert_stream
  File "bzrlib\repository.pyo", line 4278, in _locked_insert_stream
  File "bzrlib\groupcompress.pyo", line 1608, in insert_record_stream
  File "bzrlib\groupcompress.pyo", line 1663, in _insert_record_stream
  File "bzrlib\versionedfile.pyo", line 1604, in read
  File "bzrlib\smart\repository.pyo", line 578, in iter_substream_bytes
  File "bzrlib\smart\repository.pyo", line 568, in iter_stream_decoder
  File "bzrlib\smart\message.pyo", line 338, in read_streamed_body
  File "bzrlib\smart\message.pyo", line 361, in _translate_error
ErrorFromSmartServer: Error received from smart server: ('error', "'Inter1and2Helper' object has no attribute 'source_repo'")

1069.797 couldn't find apport bug-reporting library: No module named apport
1069.797 return code 4

=================================

Path is:

$ printenv PATH
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/Program Files/CollabNet/Subversion Server:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/system3/wbem:/cygdrive/c/Program Files/MATLAB/R2006a/bin/win32:/cygdrive/c/Program Files/Microsoft SQL Server/90/Tools/binn/:/cygdrive/c/Python26:/usr/bin:/cygdrive/c/Program Files/Support Tools/:/cygdrive/c/Program Files/PuTTY:/cygdrive/c/Program Files/QuickTime/QTSystem/:/cygdrive/c/Program Files/Bazaar

There are two other versions of Python in before the version installed with Bazaar, earlier in the path (in the Python26 dir and in /usr/bin -- latter was installed with Cygwin). Bazaar seems to be using its own Python, and in any case, making a branch outside of a shared repository works, as do other bzr commands, so I'm assuming Python versions aren't the problem.

I don't currently have a Linux system to try this on.

Barry Warsaw (barry) wrote :

% bzr init-repo updatemanager
% cd updatemanager
% bzr branch lp:update-manager

% bzr branch lp:update-manager
bzr: ERROR: bzrlib.errors.ErrorFromSmartServer: Error received from smart server: ('error', "'Inter1and2Helper' object has no attribute 'source_repo'")

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    attaching the crash file
        /home/barry/.cache/crash/bzr-20100201204654-5438.crash
    and including a description of the problem.

    The crash file is plain text and you

Changed in bzr:
importance: Undecided → High
status: New → Confirmed
summary: - branch inside shared repository crashes
+ 'Inter1and2Helper' object has no attribute 'source_repo'
Barry Warsaw (barry) wrote :

lp:update-manager is pack-0.92 and if you 'bzr init-repo --pack-0.92' and then branch it, it'll work fine.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers