graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #03116
Re: [Question #207507]: syntax error from amqp_listener.py
Question #207507 on Graphite changed:
https://answers.launchpad.net/graphite/+question/207507
Status: Open => Answered
Brian Hatfield proposed the following answer:
Alon,
You'll have to launch the entire carbon daemon using Python2.6 to get this
to work.
Often, when packagers provide things like python 2.6, they don't replace
the system python, but rather provide a side version of python that can be
used by calling it directly; for example, on my Mac, I have a few versions
of python installed:
[bhatfield@bhatfield-mac ~]$ python [TAB][TAB]
python python2-config python2.6 python2.7-config
pythonw2.5
python-config python2.5 python2.6-config pythonw
pythonw2.6
python2 python2.5-config python2.7 pythonw2
pythonw2.7
I am not sure the precise name of python2.6 on your system, the maintainer
can name it however they'd like.
Please also note that any dependencies that you installed for Python on 2.4
will also need to be installed for 2.6 - they don't share them when
installed side-by-side in this manner.
Good luck,
Brian
On Sun, Sep 2, 2012 at 10:25 AM, Alon Lutzker <
question207507@xxxxxxxxxxxxxxxxxxxxx> wrote:
> New question #207507 on Graphite:
> https://answers.launchpad.net/graphite/+question/207507
>
> Hi,
>
> Maybe someone has had some experience with this problem:
>
>
> - I've been trying to get the graphite AMQP plugin to work.
> - We have python 2.6 installed, which I understand is a requirement to
> have the plugin work
> - for some reason the amqp_listener.py doesn't use the python 2.6, only
> the 2.4
>
> When the AMQP plugin is enabled in carbon.conf, the restart gives this
> error. When the plugin is disabled, no problems.
>
> Starting carbon-cache:f...
> Starting carbon-cache (instance f)
> Traceback (most recent call last):
> File "/usr/bin/carbon-cache.py", line 30, in ?
> run_twistd_plugin(__file__)
> File "/usr/lib/python2.4/site-packages/carbon/util.py", line 92, in
> run_twistd_plugin
> runApp(config)
> File "/usr/lib64/python2.4/site-packages/twisted/scripts/twistd.py",
> line 23, in runApp
> _SomeApplicationRunner(config).run()
> File "/usr/lib64/python2.4/site-packages/twisted/application/app.py",
> line 411, in run
> self.application = self.createOrGetApplication()
> File "/usr/lib64/python2.4/site-packages/twisted/application/app.py",
> line 489, in createOrGetApplication
> ser = plg.makeService(self.config.subOptions)
> File
> "/usr/lib/python2.4/site-packages/twisted/plugins/carbon_cache_plugin.py",
> line 21, in makeService
> return service.createCacheService(options)
> File "/usr/lib/python2.4/site-packages/carbon/service.py", line 115, in
> createCacheService
> root_service = createBaseService(config)
> File "/usr/lib/python2.4/site-packages/carbon/service.py", line 50, in
> createBaseService
> from carbon import amqp_listener
> File "/usr/lib/python2.4/site-packages/carbon/amqp_listener.py", line 66
> chan = yield self.channel(1)
> ^
> SyntaxError: invalid syntax
> [FAILED]
>
> Regards,
> Alon
>
> --
> You received this question notification because you are a member of
> graphite-dev, which is an answer contact for Graphite.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~graphite-dev
> Post to : graphite-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~graphite-dev
> More help : https://help.launchpad.net/ListHelp
>
--
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.