Failed to install curator

I'm using elasticsearch ver2.4.0, followed the "Installation from source" to install curator, but hit below error. Please help, thanks a lot!

python setup.py install

Using /usr/lib/python2.6/site-packages/argparse-1.4.0-py2.6.egg
Finished processing dependencies for elasticsearch-curator==4.1.2
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/lib64/python2.6/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/usr/lib64/python2.6/multiprocessing/util.py", line 258, in _exit_function
info('process shutting down')
TypeError: 'NoneType' object is not callable
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/lib64/python2.6/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/usr/lib64/python2.6/multiprocessing/util.py", line 258, in _exit_function
info('process shutting down')
TypeError: 'NoneType' object is not callable
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/lib64/python2.6/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/usr/lib64/python2.6/multiprocessing/util.py", line 258, in _exit_function
info('process shutting down')
TypeError: 'NoneType' object is not callable
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/lib64/python2.6/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/usr/lib64/python2.6/multiprocessing/util.py", line 258, in _exit_function
info('process shutting down')
TypeError: 'NoneType' object is not callable
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/lib64/python2.6/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/usr/lib64/python2.6/multiprocessing/util.py", line 258, in _exit_function
info('process shutting down')
TypeError: 'NoneType' object is not callable
Error in sys.exitfunc:
Traceback (most recent call last):
File "/usr/lib64/python2.6/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/usr/lib64/python2.6/multiprocessing/util.py", line 258, in _exit_function
info('process shutting down')
TypeError: 'NoneType' object is not callable

Python 2.6 is very outdated. It's entirely possible that you do not have enough of a patch-level to install some of the dependencies. I say this because all of the errors listed are in the /usr/lib64/python2.6 path.

What operating system is this?

Something else to be concerned about is that these older versions of Python lack the most recent security patches for SSL. This doesn't matter as much if Curator will be connected to localhost, or in a private network. If you do plan on connecting via SSL, however, I recommend using the most recent patch-level of Python 2.7 or 3.5.

The new binary packages of Curator available via the yum repository are recommended for these older installations, as they bundle all of the most up-to-date libraries, ensuring that you can connect securely, and also that there are no conflicts with other versions of python modules.

Thanks a lot Aaron, I'll try it out.