martinrusev/amon — Issue #49: Easy installation fails with Python invalid syntax error
Author: mytechnix
Created: 2012-01-27 04:23:46+00:00
State: open

Hi,
Amon looks great! I've been wishing for such an awesome, lightweight app that does this.
I'm trying to install it using the easy `curl install.amon.cx | bash` command, but it fails with a Python SyntaxError: invalid syntax.

Here's the last bit of the output:
Installed /usr/lib/python2.5/site-packages/pymongo-2.1.1-py2.5-linux-i686.egg
Finished processing dependencies for amon==0.7.0
generate_config.py:31: Warning: 'with' will become a reserved keyword in Python 2.6
File "generate_config.py", line 31
with open(generated_config_path,'w+') as f:
^
SyntaxError: invalid syntax

Oh well, it fails... :D
I then tried to install amon manually using the steps on your website, but got another Python error:
root# /etc/init.d/amond start
Traceback (most recent call last):
File "/etc/init.d/amond", line 20, in
from amon.core import settings
File "/usr/lib/python2.5/site-packages/amon/core/__init__.py", line 1, in
from amon.core.settings import Settings
File "/usr/lib/python2.5/site-packages/amon/core/settings.py", line 1, in
from amon import defaults
File "/usr/lib/python2.5/site-packages/amon/defaults.py", line 42, in
host = "http://{0}".format(host)
AttributeError: 'str' object has no attribute 'format'

Where might be the problem?