root issue ended up being a little different. my client wasn't explicitly
passing api facade versions, which meant i was getting version 0 of the
facade, per go default int value. all of which worked fine except when the
facade didn't have a version 0 as is the case for the Annotations, Charms,
HA on trunk.

thanks
Kapil

On Sun, Jan 25, 2015 at 4:18 PM, roger peppe <[email protected]> wrote:

> On 25 January 2015 at 16:53, Kapil Thangavelu
> <[email protected]> wrote:
> > odd, i don't show any deltas (godeps/install and output below).. and i'm
> > only getting it on a few of the facades (charms and annotations) not all.
> > i'll play around with it a bit more in a bit. good to know about the
> > functional api tests ( i was wondering). thanks for the tips.
> >
> > kapil@realms-slice:~/src/github.com/juju/juju$ godeps -u
> dependencies.tsv
> > kapil@realms-slice:~/src/github.com/juju/juju$ godeps -u
> dependencies.tsv
> > kapil@realms-slice:~/src/github.com/juju/juju$ go install -v
> github.com/juju/juju
> > kapil@realms-slice:~/src/github.com/juju/juju$
>
> Note that that last line only installs the top level juju Go package,
> not the juju command.
>
> Better would be "go install github.com/juju/juju/..." (or within
> the juju project directory, just "go install ./...") to install
> everything.
>
> "go install github.com/juju/juju/cmd/juju" would install
> the command only.
>
>   cheers,
>     rog.
>
> >
> >
> >
> > On Sun, Jan 25, 2015 at 10:04 AM, Andrew Wilkins
> > <[email protected]> wrote:
> >>
> >> On Fri, Jan 23, 2015 at 11:32 PM, Kapil Thangavelu
> >> <[email protected]> wrote:
> >>>
> >>> I'm having some problems actually using this api, is it enabled? or
> does
> >>> it need a feature flag?
> >>>
> >>>         return self.rpc._rpc({
> >>>             "Type": "Charms",
> >>>             "Request": "List",
> >>>             "Params": {"Names": names}})
> >>>
> >>> gets
> >>>
> >>> jujuclient.EnvError: <Env Error - Details:
> >>>  {   u'Error': u'unknown object type "Charms"',
> >>>     u'ErrorCode': u'not implemented',
> >>>     u'RequestId': 1,
> >>>     u'Response': {   }}
> >>>
> >>> same code works for every other facade, using a trunk checkout. I do
> see
> >>> the Charms facade in the login data, ie.
> >>
> >>
> >> Did you run "godeps -u dependencies.tsv"? I was seeing weird behaviour
> >> similar to this (different facade tho), updated dependencies and it went
> >> away.
> >>
> >> Cheers,
> >> Andrew
> >>
> >>>
> >>> {u'EnvironTag': u'environment-fb933e3d-5293-486a-8ff9-7ac565271c35',
> >>>  u'Facades': [{u'Name': u'Action', u'Versions': [0]},
> >>>               {u'Name': u'Agent', u'Versions': [0, 1]},
> >>>               {u'Name': u'AllWatcher', u'Versions': [0]},
> >>>               {u'Name': u'Annotations', u'Versions': [1]},
> >>>               {u'Name': u'Backups', u'Versions': [0]},
> >>>               {u'Name': u'CharmRevisionUpdater', u'Versions': [0]},
> >>>               {u'Name': u'Charms', u'Versions': [1]},
> >>>
> >>>
> >>> On Mon, Jan 19, 2015 at 1:59 AM, Anastasia Macmood
> >>> <[email protected]> wrote:
> >>>>
> >>>> Hi
> >>>>
> >>>> I have just landed a new charms client.
> >>>>
> >>>> This client can list charms.
> >>>>
> >>>> The intention is to have a dedicate charms client for 1.23,
> deprecating
> >>>> old client. However, at the moment the only "ported" method from old
> >>>> client is CharmInfo.
> >>>>
> >>>> Sincerely Yours,
> >>>>
> >>>> Anastasia
> >>>>
> >>>> --
> >>>> Juju-dev mailing list
> >>>> [email protected]
> >>>> Modify settings or unsubscribe at:
> >>>> https://lists.ubuntu.com/mailman/listinfo/juju-dev
> >>>
> >>>
> >>>
> >>> --
> >>> Juju-dev mailing list
> >>> [email protected]
> >>> Modify settings or unsubscribe at:
> >>> https://lists.ubuntu.com/mailman/listinfo/juju-dev
> >>>
> >>
> >
> >
> > --
> > Juju-dev mailing list
> > [email protected]
> > Modify settings or unsubscribe at:
> > https://lists.ubuntu.com/mailman/listinfo/juju-dev
> >
>
-- 
Juju-dev mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev

Reply via email to