juju-solutions / cloud-weather-report

Apache License 2.0
3 stars 7 forks source link

CWR 0.3.9 breaks juju 1.x on ubuntu 14.04 compatibility #60

Closed merlijn-sebrechts closed 7 years ago

merlijn-sebrechts commented 8 years ago

Cloud weather report 0.3.9 on Ubuntu 14.04 speaking to a Juju 1 environment:

Traceback (most recent call last):
  File "/usr/local/bin/cwr", line 9, in <module>
    load_entry_point('cloud-weather-report==0.3.9', 'console_scripts', 'cwr')()
  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/cloudweatherreport/run.py", line 6, in <module>
    from cloud_weather_report import (
  File "/usr/local/lib/python2.7/dist-packages/cloudweatherreport/cloud_weather_report.py", line 16, in <module>
    from reporter import Reporter
  File "/usr/local/lib/python2.7/dist-packages/cloudweatherreport/reporter.py", line 14, in <module>
    from utils import (
  File "/usr/local/lib/python2.7/dist-packages/cloudweatherreport/utils.py", line 20, in <module>
    from jujuclient.juju1.environment import Environment as env1
ImportError: No module named juju1.environment
seman commented 8 years ago

Please update your jujuclient and juju-deployer packages to the latest.

merlijn-sebrechts commented 8 years ago

This is happening in lxc containers that are recreated and reinstalled before every test run so they should be the latest version... These containers have been reinstalled multiple times throughout the day with the same result...

2016-08-08 19:20 GMT+02:00 seman notifications@github.com:

Please update your jujuclient and juju-deployer packages to the latest.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/juju-solutions/cloud-weather-report/issues/60#issuecomment-238306581, or mute the thread https://github.com/notifications/unsubscribe-auth/ABbH9aTif5FWj-KYnXGWo1uv_EvTJOJGks5qd2VBgaJpZM4Je3sA .

tvansteenburgh commented 8 years ago

The problem is the "latest" packages are only available in ppa:tvansteenburgh/ppa right now.

merlijn-sebrechts commented 8 years ago

Using your ppa seems to work. I guess I'll use that as a workaround until the packages are added to trusty. Is it possible to notify me when that happens?

tvansteenburgh commented 8 years ago

@galgalesh Sure, I'll make an announcement on the Juju mailing list.

seman commented 7 years ago

With the current releases, we are targeting to support Juju 2.0