Comment 2 for bug 812279

Revision history for this message
Nicholas Leskiw (nleskiw) wrote : Re: [Bug 812279] Re: twistd scripts don't work when installed

I'll take a look.

-Nick

On Jul 18, 2011, at 10:11 AM, wr0ngway <email address hidden> wrote:

> Looks like the twisted and twisted.plugins packages are missing from
> carbon/setup.py (ant he associated __init__.py in the associated
> directories)
>
> I tried adding them in, but then util.py can't find the system installed
> twisted package - I don't know enough about python to say how to fix
> this.
>
>
> root@matt:/opt/graphite# ./bin/carbon-cache.py start
> 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 8, in <module>
> from twisted.python.util import initgroups
> ImportError: No module named python.util
>
> --
> You received this bug notification because you are subscribed to
> Graphite.
> https://bugs.launchpad.net/bugs/812279
>
> Title:
> twistd scripts don't work when installed
>
> Status in Graphite - Enterprise scalable realtime graphing:
> New
>
> Bug description:
> I installed the latest graphite from bazaar (v426):
>
> mkdir -p /tmp/graphite_install
> cd /tmp/graphite_install
> bzr branch lp:graphite
>
> pushd graphite/whisper
> python setup.py install
> popd
>
> pushd graphite/carbon
> python setup.py install
> popd
>
> pushd graphite
> python setup.py install
> popd
>
> But when I try to rub carbon, I get an exception:
>
> # cd /opt/graphite
> # ./bin/carbon-cache.py start
> Traceback (most recent call last):
> File "/opt/graphite/bin/carbon-cache.py", line 30, in <module>
> run_twistd_plugin(__file__)
> File "/opt/graphite/lib/carbon/util.py", line 118, in run_twistd_plugin
> config.parseOptions(twistd_options)
> File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 606, in parseOptions
> usage.Options.parseOptions(self, options)
> File "/usr/lib/python2.7/dist-packages/twisted/python/usage.py", line 234, in parseOptions
> raise UsageError("Unknown command: %s" % sub)
> twisted.python.usage.UsageError: Unknown command: carbon-cache
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/graphite/+bug/812279/+subscriptions