Juju & DigitalOcean

Hello DO community,

I’ve been testing Juju on an Ubuntu 14.04 droplet, however I ran into a problem. After configuring juju and configuring it to use a DO environment i try to bootstrap, however I always end up getting an error. Here’s the entire traceback:

sudo juju docean bootstrap --constraints="mem=512m, region=ams2"
Traceback (most recent call last):
  File "/usr/local/bin/juju-docean", line 9, in <module>
    load_entry_point('juju-docean==0.6.0', 'console_scripts', 'juju-docean')()
  File "/usr/lib/python2.7/dist-packages/", line 351, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/", line 2363, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/", line 2088, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/local/lib/python2.7/dist-packages/juju_docean/", line 5, in <module>
    from juju_docean.config import Config
  File "/usr/local/lib/python2.7/dist-packages/juju_docean/", line 5, in <module>
    from juju_docean.env import Environment
  File "/usr/local/lib/python2.7/dist-packages/juju_docean/", line 12, in <module>
    from jujuclient import Environment as Client
ImportError: cannot import name Environment

I’ve quadruple-checked everything and it is all configured correctly (or at least I think so). Any ideas?

Thanks! :)

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This is a very odd issue. I’ve gone over the Juju and juju-docean repositories and open issues, done some searching and was not able to find anyone else having encountered this. My recommendation would be to start over with an Ubuntu 16.04 droplet, installing juju from the official repositories and go from there. If you can outline your setup process for us we can try and duplicate this issue on our end by taking the same steps you did but so far have been unable to replicate this.