Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installer issues #34

Closed
coreindustries opened this issue Dec 8, 2011 · 1 comment
Closed

installer issues #34

coreindustries opened this issue Dec 8, 2011 · 1 comment

Comments

@coreindustries
Copy link

Just tried to install this on CentOS 5

works up to this point:

byte-compiling build/bdist.linux-x86_64/egg/amon/backends/mongodb.py to mongodb.pyc
File "build/bdist.linux-x86_64/egg/amon/backends/mongodb.py", line 10
class MongoBackend():

Then, fails on every "if" afterwards:
byte-compiling build/bdist.linux-x86_64/egg/amon/web/template.py to template.pyc
File "build/bdist.linux-x86_64/egg/amon/web/template.py", line 136
total = total if total != 0 else 1
^
SyntaxError: invalid syntax

Extracting amon-0.6_dev-py2.4.egg to /usr/lib/python2.4/site-packages
File "/usr/lib/python2.4/site-packages/amon-0.6_dev-py2.4.egg/amon/backends/mongodb.py", line 10
class MongoBackend():
^
SyntaxError: invalid syntax
File "/usr/lib/python2.4/site-packages/amon-0.6_dev-py2.4.egg/amon/web/template.py", line 136
total = total if total != 0 else 1
^
SyntaxError: invalid syntax
File "/usr/lib/python2.4/site-packages/amon-0.6_dev-py2.4.egg/amon/web/api.py", line 9
content_type = content_type_dict[0] if len(content_type_dict) > 0 else ''
^
SyntaxError: invalid syntax
File "/usr/lib/python2.4/site-packages/amon-0.6_dev-py2.4.egg/amon/system/collector.py", line 61
with open('/proc/meminfo', 'r') as lines:
^

@martinrusev
Copy link
Member

That's because you have Python 2.4 and Amon runs on Python 2.5+ ( 2.5, 2.6, 2.7 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants