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 (rmcbr...@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 -- ErrorFromSmartServer - AbsentContentFactory object has no attribute 'get_bytes_as' exception while pulling from Launchpad https://bugs.launchpad.net/bugs/354036 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs