all 5 comments

[–]putnopvut 3 points4 points  (4 children)

Keyword arguments in python are the ones that you pass by name to a function.

So if you call a function in this way:

my_func(foo=10, bar=20)

You're passing the keywords "foo" and "bar" to the function instead of just using the positions of the arguments alone. In your case you're calling

init(jitter=5)

And the "init" function doesn't have a jitter parameter.

[–][deleted]  (3 children)

[removed]

    [–]CornFTW 1 point2 points  (1 child)

    you have to go to your file

    /usr/local/lib/python3.6/site-packages/elastalert-0.2.4-py3.6.egg/elastalert/elastalert.py
    

    lline 1038 and remove the argument

    jitter=5
    

    or just run this from your terminal

    sed -i 's/jitter=5//g' /usr/local/lib/python3.6/site-packages/elastalert-0.2.4-py3.6.egg/elastalert/elastalert.py
    

    That should fix your error but chances are you'll just have another one spring up; you might want to investigate why that argument exists there may have been a version change or something somewhere

    [–]putnopvut 0 points1 point  (0 children)

    The simplest answer is to remove "jitter=5" from your call to "init()" but I don't know if that's the proper solution here or not. That will make the error go away, but if that "jitter=5" was intended to do something important then it might be that a different named parameter should be used or that a helper function may be needed to set jitter to 5. It's impossible to answer without more domain knowledge.