juju / plugins

Basic collection of the first few plugins for Juju
28 stars 29 forks source link

debug-hooks-ext object 'Environment' has no attribute 'connect' #37

Closed deftdawg closed 9 years ago

deftdawg commented 9 years ago

When I run juju dhx I get the following error, environment was set-up created by juju-quickstart

juju dhx -r openam/0

Traceback (most recent call last):
  File "/home/user/juju/plugins/juju-dhx", line 289, in <module>
    unit_name, unit = choose_unit(args, opts)
  File "/home/user/juju/plugins/juju-dhx", line 255, in choose_unit
    status = get_env(opts).status()
  File "/home/user/juju/plugins/juju-dhx", line 156, in get_env
    get_env._env = jujuclient.Environment.connect(opts.env)
AttributeError: type object 'Environment' has no attribute 'connect'
ERROR subprocess encountered error code 1
johnsca commented 9 years ago

What version of python-jujuclient do you have installed? That error seems like you have a version older than 0.18.0 installed. The current version is 0.18.4. Hrm, I need to add that dependency to the README.

johnsca commented 9 years ago

README updated in PR #40