vasko
By:
vasko

Juju & DigitalOcean

September 24, 2016 523 views
Applications API DigitalOcean Deployment Ubuntu

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/pkg_resources.py", line 351, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2363, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2088, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/local/lib/python2.7/dist-packages/juju_docean/cli.py", line 5, in <module>
    from juju_docean.config import Config
  File "/usr/local/lib/python2.7/dist-packages/juju_docean/config.py", line 5, in <module>
    from juju_docean.env import Environment
  File "/usr/local/lib/python2.7/dist-packages/juju_docean/env.py", 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! :)

1 Answer

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.

Have another answer? Share your knowledge.