Comment 39 for bug 354036

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 354036] Re: ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad

On Thu, 2009-04-23 at 23:28 +0000, Rick McBride wrote:
> Robert Collins wrote:
> > On Thu, 2009-04-23 at 22:20 +0000, Rick McBride wrote:
> >> when I try that script on an affected branch, I get
> >>
> >> Traceback (most recent call last):
> >> File "/home/rmcbride/foo.py", line 3, in <module>
> >> b = bzrlib.branch.Branch.open(argv[1])
> >> NameError: name 'argv' is not defined
> >>
> >>
> >> I'm guessing there's a parameter I should be passing
> >
> > New version that should fix that.
> >
> > And yes, run as
> > python foo.py lp:BRANCHONLP
> >
> >
> > ** Attachment added: "foo.py"
> > http://launchpadlibrarian.net/25904342/foo.py
> >
>
>
> When I do that
> (rmcbride@strangiato:~/canonical/ubunet/homepage-teh-client-pkg$ python
> /home/rmcbride/foo.py lp:~rmcbride/ubunet/homepage-teh-client-pkg)
>
> I get
>
> bzrlib.errors.NotBranchError: Not a branch:
> "/home/rmcbride/canonical/ubunet/homepage-teh-client-pkg/lp:~rmcbride/ubunet/homepage-teh-client-pkg/".

Oh,I haven't loaded plugins.

use bzr
+ssh://bazaar.launchpad.net/~rmcbride/ubunet/homepage-teh-client-pkg