graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #04323
[Question #234779]: Graphite Upgrade issue - (SyntaxError: invalid syntax)
New question #234779 on Graphite:
https://answers.launchpad.net/graphite/+question/234779
Centos 5.8 - Trying to upgrade graphite-web and I'm getting the following error in error.log:
[Wed Aug 28 11:06:58 2013] [error] [client X.X.X.X] mod_wsgi (pid=31685): Target WSGI script '/opt/graphite/conf/graphite.wsgi' cannot be loaded as Python module.
[Wed Aug 28 11:06:58 2013] [error] [client X.X.X.X] mod_wsgi (pid=31685): Exception occurred processing WSGI script '/opt/graphite/conf/graphite.wsgi'.
[Wed Aug 28 11:06:58 2013] [error] [client X.X.X.X] Traceback (most recent call last):
[Wed Aug 28 11:06:58 2013] [error] [client X.X.X.X] File "/opt/graphite/conf/graphite.wsgi", line 16, in ?
[Wed Aug 28 11:06:58 2013] [error] [client X.X.X.X] import graphite.metrics.search
[Wed Aug 28 11:06:58 2013] [error] [client X.X.X.X] File "/opt/graphite/webapp/graphite/metrics/search.py", line 6, in ?
[Wed Aug 28 11:06:58 2013] [error] [client X.X.X.X] from graphite.storage import is_pattern, match_entries
[Wed Aug 28 11:06:58 2013] [error] [client X.X.X.X] File "/opt/graphite/webapp/graphite/storage.py", line 190
[Wed Aug 28 11:06:58 2013] [error] [client X.X.X.X] except OSError as e:
[Wed Aug 28 11:06:58 2013] [error] [client X.X.X.X] ^
[Wed Aug 28 11:06:58 2013] [error] [client X.X.X.X] SyntaxError: invalid syntax
----------------------------------
I'm pretty sure this is a python2.4 vs python2.6 issue but I can't seem to find a solution. I tried installing it with pip-2.6 and didn't get the error on install, but still not working when loading the page. I bet that's because my default python on this machine is 2.4.3.
Using /usr/bin/pip-python install --upgrade graphite-web to install.
Any suggestions or things I'm missing would be greatly appreciated.
Zac
--
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.