carbon-cache.py cannot import name daemonize

Recently after installing graphite and starting carbon-cache.py I got following error:

Traceback (most recent call last):
File “bin/carbon-cache.py”, line 28, in <module>
from carbon.util import run_twistd_plugin
File “/opt/graphite/lib/carbon/util.py”, line 19, in <module>
from twisted.scripts._twistd_unix import daemonize
ImportError: cannot import name daemonize

To resolve this issue I did following things:

Install daemonize module with pip

$ ping install daemonize

After installing daemonize module open file /opt/graphite/lib/carbon/util.py and change following line:

from twisted.scripts._twistd_unix import daemonize

to

import daemonize

After doing above changes now try to start carbon-cache.py

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s