Assertion error in get_inventory_xml

John Arbash Meinel john at arbash-meinel.com
Mon Feb 27 00:10:59 GMT 2006


Chris Seaton wrote:
> Hello,
> 
> I was having trouble pushing my branch earlier, but I used SFTP to copy
> it by hand and now I'm trying to branch it over HTTP but I get the error
> 
> bzr: ERROR: exceptions.AssertionError: <type 'NoneType'>
>   at /usr/local/lib/python2.4/site-packages/bzrlib/branch.py line 952
>   in get_inventory_xml
> 
> Is bzr ready for real use yet? Am being too optimistic in expecting to
> be able to get it running at the moment? I know it's only a 0.x release.
> 
> Chris Seaton
> 

I'm not sure why you are having such problems. Quite a few of us use it
as our primary (only) source management system.

It shouldn't be asking for a revision whose id is None. So there is
definitely a bug here.

Is your branch publicly available so that we can see if we have the same
 problem?

When I try to do
bzr log http://chrisseaton.skylis.net/projects/clifton/bzr

It tells me that there are no revisions. Did you actually do a "bzr
commit" after you did the 'bzr init; bzr add'?

Otherwise, that is probably what you are experiencing. (That there is no
data to be pushed to the remote SFTP machine, or pulled from it, because
you haven't committed anything yet).

Obviously the error messages need to be more helpful.

Also, if you go to IRC, almost always there is someone there to help.

#bzr on irc.freenode.net

John
=:->


> 
> My log is
> 
> 
> bzr 0.7 invoked on python 2.4.2.final.0 (darwin)
>   arguments: ['/usr/local/bin/bzr', 'branch',
> 'http://chrisseaton.skylis.net/projects/clifton/bzr', 'Test']
>   working dir: u'/Users/chrisseaton/Projects'
> looking for plugins in
> /usr/local/lib/python2.4/site-packages/bzrlib/plugins
> Plugin name __init__ already loaded
> Plugin name __init__ already loaded
> looking for plugins in /Users/chrisseaton/.bazaar/plugins
> WARNING: using slower ElementTree; consider installing cElementTree and
> make sure it's on your PYTHONPATH
> trying to open u'http://chrisseaton.skylis.net/projects/clifton/bzr'
> with transport <bzrlib.transport.http.HttpTransport object at 0x65bc30>
> get_url
> http://chrisseaton.skylis.net/projects/clifton/bzr/.bzr/branch-format
> got branch format u'Bazaar-NG branch, format 6\n'
> created control directory in /Users/chrisseaton/Projects/Test
> got branch format u'Bazaar-NG branch, format 6\n'
> copy branch from
> BzrBranch(u'http://chrisseaton.skylis.net/projects/clifton/bzr') to
> BzrBranch(u'/Users/chrisseaton/Projects/Test')
> failed to open /Users/chrisseaton/Projects/Test/.bzr/stat-cache: [Errno
> 2] No such file or directory:
> u'/Users/chrisseaton/Projects/Test/.bzr/stat-cache'
> write hc
> get_url
> http://chrisseaton.skylis.net/projects/clifton/bzr/.bzr/revision-history
> [  356] Sun 22:03:26.219 ERROR: exceptions.AssertionError: <type
> 'NoneType'>
>   at /usr/local/lib/python2.4/site-packages/bzrlib/branch.py line 952
>   in get_inventory_xml
> Traceback (most recent call last):
>   File "/usr/local/lib/python2.4/site-packages/bzrlib/commands.py", line
> 572, in run_bzr_catch_errors
>     return run_bzr(argv)
>   File "/usr/local/lib/python2.4/site-packages/bzrlib/commands.py", line
> 534, in run_bzr
>     ret = cmd_obj.run_argv(argv)
>   File "/usr/local/lib/python2.4/site-packages/bzrlib/commands.py", line
> 233, in run_argv
>     return self.run(**all_cmd_args)
>   File "/usr/local/lib/python2.4/site-packages/bzrlib/builtins.py", line
> 594, in run
>     copy_branch(br_from, to_location, revision_id, basis_branch)
>   File "/usr/local/lib/python2.4/site-packages/bzrlib/clone.py", line
> 84, in copy_branch
>     basis_branch)
>   File "/usr/local/lib/python2.4/site-packages/bzrlib/clone.py", line
> 155, in copy_branch_slower
>     br_to.working_tree().set_root_id(branch_from.get_root_id())
>   File "/usr/local/lib/python2.4/site-packages/bzrlib/branch.py", line
> 78, in decorated
>     return unbound(self, *args, **kwargs)
>   File "/usr/local/lib/python2.4/site-packages/bzrlib/branch.py", line
> 848, in get_root_id
>     inv = self.get_inventory(self.last_revision())
>   File "/usr/local/lib/python2.4/site-packages/bzrlib/branch.py", line
> 946, in get_inventory
>     xml = self.get_inventory_xml(revision_id)
>   File "/usr/local/lib/python2.4/site-packages/bzrlib/branch.py", line
> 952, in get_inventory_xml
>     assert isinstance(revision_id, basestring), type(revision_id)
> AssertionError: <type 'NoneType'>
> 
> return code 3
> 
> 
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060226/2316bb9f/attachment.pgp 


More information about the bazaar mailing list