By Vasko
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! :)
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!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.