Comment 38 for bug 354036

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

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/".

When I leave it out I now get

Traceback (most recent call last):
   File "/home/rmcbride/foo.py", line 4, in <module>
     b = bzrlib.branch.Branch.open(sys.argv[1])
IndexError: list index out of range