graphite-project / carbonate

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

Carbonate doesn't find Carbon already installed #27

Closed ricardmestre closed 10 years ago

ricardmestre commented 10 years ago

Hi everyone,

I have a problem with the carbonate dependencies. I had already installed carbon and whisper but carbonate doesn't find carbon neither in the installation neither in the execution. I'm going to detail the steps that I followed:

Here I saw the first error, it seems that carbonate is successfully installed but the process doesn't find carbon:

Installed /usr/local/lib/python2.7/dist-packages/carbonate-0.2.1-py2.7.egg Processing dependencies for carbonate==0.2.1 Searching for carbon Reading http://pypi.python.org/simple/carbon/ Download error on http://pypi.python.org/simple/carbon/: timed out -- Some packages may not be found! Reading http://pypi.python.org/simple/carbon/ Download error on http://pypi.python.org/simple/carbon/: timed out -- Some packages may not be found! Couldn't find index page for 'carbon' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading http://pypi.python.org/simple/ Download error on http://pypi.python.org/simple/: timed out -- Some packages may not be found! No local packages or download links found for carbon error: Could not find suitable distribution for Requirement.parse('carbon')

Here is the second error:

Traceback (most recent call last): File "/usr/local/bin/carbon-hosts", line 5, in from pkg_resources import load_entry_point File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2707, in working_set.require(requires) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: carbon

Can someone help me with this?

Thank you very much!

dimrozakis commented 10 years ago

I had already installed carbon and whisper but carbonate doesn't find carbon neither in the installation neither in the execution.

Carbon, whisper and graphite-web are installed by default in /opt/graphite/ which isn't included in pythonpath, so carbonate can't find the modules.

Try:

export PYTHONPATH="/opt/graphite/lib:/opt/graphite/webapp"
ricardmestre commented 10 years ago

It works! Thank you!

jssjr commented 10 years ago

Attempting a more reliable fix in https://github.com/jssjr/carbonate/pull/33

jssjr commented 10 years ago

Should be fixed in #33