'Inter1and2Helper' object has no attribute 'source_repo'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
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/
$ bzr init-repo .
Shared repository with trees (format: 2a)
Location:
shared repository: .
Patricia Tressel@phobos ~/my_documents/
$ bzr branch lp:sahana/sahanapy trunk
bzr: ERROR: bzrlib.
: ('error', "'Inter1and2Helper' object has no attribute 'source_repo'")
Traceback (most recent call last):
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\fetch.pyo", line 81, in __init__
File "bzrlib\fetch.pyo", line 107, in __fetch
File "bzrlib\fetch.pyo", line 135, in _fetch_
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
ErrorFromSmartS
bzr 2.0.4 on python 2.5.4 (Windows-
arguments: ['c:\\Program Files\\
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
bzrtools C:\Program Files\Bazaar\
explorer C:\Program Files\Bazaar\
launchpad C:\Program Files\Bazaar\
netrc_
[2.0.4]
qbzr C:\Program Files\Bazaar\
rebase C:\Program Files\Bazaar\
svn C:\Program Files\Bazaar\
upload C:\Program Files\Bazaar\
xmloutput C:\Program Files\Bazaar\
*** 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:/
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\
Python standard library: c:\Program Files\Bazaar\
Platform: Windows-
bzrlib: c:\Program Files\Bazaar\
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/
0.157 looking for plugins in C:/Program Files/Bazaar/
0.375 encoding stdout as sys.stdout encoding 'cp437'
0.469 creating repository in file://
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/
0.156 looking for plugins in C:/Program Files/Bazaar/
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 RemoteRepositor
10.234 fetch up to rev {<email address hidden>}
1069.797 Traceback (most recent call last):
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\fetch.pyo", line 81, in __init__
File "bzrlib\fetch.pyo", line 107, in __fetch
File "bzrlib\fetch.pyo", line 135, in _fetch_
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
ErrorFromSmartS
1069.797 couldn't find apport bug-reporting library: No module named apport
1069.797 return code 4
=======
Path is:
$ printenv PATH
/usr/local/
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.
% bzr init-repo updatemanager
% cd updatemanager
% bzr branch lp:update-manager
% bzr branch lp:update-manager errors. ErrorFromSmartS erver: Error received from smart server: ('error', "'Inter1and2Helper' object has no attribute 'source_repo'")
bzr: ERROR: bzrlib.
*** Bazaar has encountered an internal error. This probably indicates a /bugs.launchpad .net/bzr/ +filebug
/home/ barry/. cache/crash/ bzr-20100201204 654-5438. crash
bug in Bazaar. You can help us fix it by filing a bug report at
https:/
attaching the crash file
and including a description of the problem.
The crash file is plain text and you