我真的希望有人能帮到我,因为我至少花了15个小时来解决此问题。一个潜在的雇主给了我一个任务,我的解决方案是使用 Graphite /碳/收集的 Graphite 。我试图运行并安装碳/ Graphite 0.9.12,但我根本无法启动碳。每次尝试启动碳时,都会遇到以下错误。我正在使用bash脚本进行安装,以使所有内容保持一致。
我真的一点也不了解python,所以希望您能提供任何帮助。
/etc/rc0.d/K20carbon-cache -> ../init.d/carbon-cache
/etc/rc1.d/K20carbon-cache -> ../init.d/carbon-cache
/etc/rc6.d/K20carbon-cache -> ../init.d/carbon-cache
/etc/rc2.d/S20carbon-cache -> ../init.d/carbon-cache
/etc/rc3.d/S20carbon-cache -> ../init.d/carbon-cache
/etc/rc4.d/S20carbon-cache -> ../init.d/carbon-cache
/etc/rc5.d/S20carbon-cache -> ../init.d/carbon-cache
Traceback (most recent call last):
File "/opt/graphite/bin/carbon-cache.py",
line 28, in from carbon.util import run_twistd_plugin
File "/opt/graphite/lib/carbon/util.py",
line 21, in from twisted.scripts._twistd_unix import daemonize
ImportError: cannot import name daemonize
谢谢
谢恩
最佳答案
pip install 'Twisted<12.0'
如您在requirements.txt中看到的,较新版本的Twisted似乎不能很好地使用它
关于python - 无法启动Carbon-12.04-Python错误-ImportError : cannot import name daemonize,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/19894708/