Can't Start Carbon - 12.04 - Python Error - ImportError: cannot import name daemonize Can't Start Carbon - 12.04 - Python Error - ImportError: cannot import name daemonize bash bash

Can't Start Carbon - 12.04 - Python Error - ImportError: cannot import name daemonize


pip install 'Twisted<12.0'

As you can see in the requirements.txt, the newer version of Twisted does not seems to play well with it


pip install daemonize

then I opened /opt/graphite/lib/carbon/util.py and changed

from twisted.scripts._twistd_unix import daemonize

to

import daemonize


I tried with pip install Twisted==11.1.0 but not got it downgrade my Twisted version. So, i renamed /usr/lib/python2.7/dist-packages/twisted/ to other name. After i install twisted pip install Twisted==11.1.0 and sudo ./bin/carbon-cache.py start works.