graphite-project / carbonate

Utilities for managing graphite clusters
MIT License
516 stars 80 forks source link

Carbonate does not work on older version of Whisper? #8

Closed bmhatfield closed 10 years ago

bmhatfield commented 10 years ago

Hi,

I'm trying to use carbonate to sync an old cluster (0.9.9) to a new one. When I try to run carbon-list, though:

Traceback (most recent call last):
  File "/usr/local/bin/carbon-list", line 9, in <module>
    load_entry_point('carbonate==0.2.0', 'console_scripts', 'carbon-list')()
  File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.40-py2.7.egg/pkg_resources.py", line 343, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.40-py2.7.egg/pkg_resources.py", line 2325, in load_entry_point
    return ep.load()
  File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.40-py2.7.egg/pkg_resources.py", line 2031, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/local/lib/python2.7/dist-packages/carbonate-0.2.0-py2.7.egg/carbonate/cli.py", line 11, in <module>
    from .fill import fill_archives
  File "/usr/local/lib/python2.7/dist-packages/carbonate-0.2.0-py2.7.egg/carbonate/fill.py", line 17, in <module>
    from whisper import info, operator, fetch, update_many
ImportError: cannot import name operator
jssjr commented 10 years ago

Yep. There are some difference's between whisper 0.9.10 and 0.9.9 that would cause this. Let me take a stab at catching this exception and working around it.

Sorry for the delay getting back to you.