I have tried installing both mentioned versions of setuptools, but the error persists in both cases.
Dependencies are pulled down and installed, but installation fails with the following stacktrace:
Running setup.py install for gevent
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-eqBfwh/gevent/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record
/tmp/pip-zTkXgi-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.6
creating build/lib.linux-x86_64-2.6/gevent
copying gevent/thread.py -> build/lib.linux-x86_64-2.6/gevent
copying gevent/queue.py -> build/lib.linux-x86_64-2.6/gevent
copying gevent/timeout.py -> build/lib.linux-x86_64-2.6/gevent
copying gevent/pywsgi.py -> build/lib.linux-x86_64-2.6/gevent
copying gevent/socket.py -> build/lib.linux-x86_64-2.6/gevent
copying gevent/__init__.py -> build/lib.linux-x86_64-2.6/gevent
copying gevent/ssl.py -> build/lib.linux-x86_64-2.6/gevent
copying gevent/win32util.py -> build/lib.linux-x86_64-2.6/gevent
copying gevent/server.py -> build/lib.linux-x86_64-2.6/gevent
copying gevent/baseserver.py -> build/lib.linux-x86_64-2.6/gevent
copying gevent/local.py -> build/lib.linux-x86_64-2.6/gevent
copying gevent/http.py -> build/lib.linux-x86_64-2.6/gevent
copying gevent/coros.py -> build/lib.linux-x86_64-2.6/gevent
copying gevent/select.py -> build/lib.linux-x86_64-2.6/gevent
copying gevent/backdoor.py -> build/lib.linux-x86_64-2.6/gevent
copying gevent/dns.py -> build/lib.linux-x86_64-2.6/gevent
copying gevent/event.py -> build/lib.linux-x86_64-2.6/gevent
copying gevent/wsgi.py -> build/lib.linux-x86_64-2.6/gevent
copying gevent/rawgreenlet.py -> build/lib.linux-x86_64-2.6/gevent
copying gevent/httplib.py -> build/lib.linux-x86_64-2.6/gevent
copying gevent/pool.py -> build/lib.linux-x86_64-2.6/gevent
copying gevent/util.py -> build/lib.linux-x86_64-2.6/gevent
copying gevent/sslold.py -> build/lib.linux-x86_64-2.6/gevent
copying gevent/greenlet.py -> build/lib.linux-x86_64-2.6/gevent
copying gevent/hub.py -> build/lib.linux-x86_64-2.6/gevent
copying gevent/monkey.py -> build/lib.linux-x86_64-2.6/gevent
running build_ext
building 'gevent.core' extension
creating build/temp.linux-x86_64-2.6
creating build/temp.linux-x86_64-2.6/gevent
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.6 -c gevent/core.c -o build/temp.linux-x86_64-2.6/gevent/core.o
In file included from gevent/core.c:225:
gevent/libevent.h:9:19: error: event.h: No such file or directory
gevent/libevent.h:38:20: error: evhttp.h: No such file or directory
gevent/libevent.h:39:19: error: evdns.h: No such file or directory
gevent/core.c:361: error: field ‘ev’ has incomplete type
gevent/core.c:741: warning: parameter names (without types) in function declaration
gevent/core.c: In function ‘__pyx_f_6gevent_4core___event_handler’:
gevent/core.c:1619: warning: implicit declaration of function ‘event_pending’
gevent/core.c:1619: error: ‘EV_READ’ undeclared (first use in this function)
gevent/core.c:1619: error: (Each undeclared identifier is reported only once
gevent/core.c:1619: error: for each function it appears in.)
gevent/core.c:1619: error: ‘EV_WRITE’ undeclared (first use in this function)
gevent/core.c:1619: error: ‘EV_SIGNAL’ undeclared (first use in this function)
gevent/core.c:1619: error: ‘EV_TIMEOUT’ undeclared (first use in this function)
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_5event___init__’:
gevent/core.c:1827: warning: implicit declaration of function ‘evtimer_set’
gevent/core.c:1839: warning: implicit declaration of function ‘event_set’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_5event_7pending___get__’:
gevent/core.c:1970: error: ‘EV_TIMEOUT’ undeclared (first use in this function)
gevent/core.c:1970: error: ‘EV_SIGNAL’ undeclared (first use in this function)
gevent/core.c:1970: error: ‘EV_READ’ undeclared (first use in this function)
gevent/core.c:1970: error: ‘EV_WRITE’ undeclared (first use in this function)
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_5event_10events_str___get__’:
gevent/core.c:2126: error: ‘EV_TIMEOUT’ undeclared (first use in this function)
gevent/core.c:2136: error: ‘EV_READ’ undeclared (first use in this function)
gevent/core.c:2146: error: ‘EV_WRITE’ undeclared (first use in this function)
gevent/core.c:2164: error: ‘EV_SIGNAL’ undeclared (first use in this function)
gevent/core.c:2174: error: ‘EV_PERSIST’ undeclared (first use in this function)
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_5event_9flags_str___get__’:
gevent/core.c:2466: error: ‘EVLIST_TIMEOUT’ undeclared (first use in this function)
gevent/core.c:2476: error: ‘EVLIST_INSERTED’ undeclared (first use in this function)
gevent/core.c:2486: error: ‘EVLIST_SIGNAL’ undeclared (first use in this function)
gevent/core.c:2504: error: ‘EVLIST_ACTIVE’ undeclared (first use in this function)
gevent/core.c:2514: error: ‘EVLIST_INTERNAL’ undeclared (first use in this function)
gevent/core.c:2524: error: ‘EVLIST_INIT’ undeclared (first use in this function)
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_5event_1add’:
gevent/core.c:2801: warning: implicit declaration of function ‘event_add’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_5event_2cancel’:
gevent/core.c:3048: error: ‘EV_TIMEOUT’ undeclared (first use in this function)
gevent/core.c:3048: error: ‘EV_SIGNAL’ undeclared (first use in this function)
gevent/core.c:3048: error: ‘EV_READ’ undeclared (first use in this function)
gevent/core.c:3048: error: ‘EV_WRITE’ undeclared (first use in this function)
gevent/core.c:3058: warning: implicit declaration of function ‘event_del’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_10read_event___init__’:
gevent/core.c:3886: error: ‘EV_READ’ undeclared (first use in this function)
gevent/core.c:3905: error: ‘EV_PERSIST’ undeclared (first use in this function)
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_11write_event___init__’:
gevent/core.c:4088: error: ‘EV_WRITE’ undeclared (first use in this function)
gevent/core.c:4107: error: ‘EV_PERSIST’ undeclared (first use in this function)
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_15readwrite_event___init__’:
gevent/core.c:4302: error: ‘EV_READ’ undeclared (first use in this function)
gevent/core.c:4302: error: ‘EV_WRITE’ undeclared (first use in this function)
gevent/core.c:4321: error: ‘EV_PERSIST’ undeclared (first use in this function)
gevent/core.c: In function ‘__pyx_f_6gevent_4core___simple_handler’:
gevent/core.c:4710: error: ‘EV_READ’ undeclared (first use in this function)
gevent/core.c:4710: error: ‘EV_WRITE’ undeclared (first use in this function)
gevent/core.c:4710: error: ‘EV_SIGNAL’ undeclared (first use in this function)
gevent/core.c:4710: error: ‘EV_TIMEOUT’ undeclared (first use in this function)
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_6signal___init__’:
gevent/core.c:5040: error: ‘EV_SIGNAL’ undeclared (first use in this function)
gevent/core.c:5040: error: ‘EV_PERSIST’ undeclared (first use in this function)
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_12active_event___init__’:
gevent/core.c:5195: warning: implicit declaration of function ‘event_active’
gevent/core.c:5195: error: ‘EV_TIMEOUT’ undeclared (first use in this function)
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_init’:
gevent/core.c:5305: warning: implicit declaration of function ‘event_init’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_1dispatch’:
gevent/core.c:5355: warning: implicit declaration of function ‘event_dispatch’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_2loop’:
gevent/core.c:5504: error: ‘EVLOOP_ONCE’ undeclared (first use in this function)
gevent/core.c:5523: error: ‘EVLOOP_NONBLOCK’ undeclared (first use in this function)
gevent/core.c:5549: warning: implicit declaration of function ‘event_loop’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_3get_version’:
gevent/core.c:5656: warning: implicit declaration of function ‘event_get_version’
gevent/core.c:5656: warning: passing argument 1 of ‘PyString_FromString’ makes pointer from integer without a cast
/usr/include/python2.6/stringobject.h:63: note: expected ‘const char *’ but argument is of type ‘int’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_4get_method’:
gevent/core.c:5699: warning: implicit declaration of function ‘event_get_method’
gevent/core.c:5699: warning: passing argument 1 of ‘PyString_FromString’ makes pointer from integer without a cast
/usr/include/python2.6/stringobject.h:63: note: expected ‘const char *’ but argument is of type ‘int’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_5get_header_version’:
gevent/core.c:5768: warning: label ‘__pyx_L1_error’ defined but not used
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_6reinit’:
gevent/core.c:5829: warning: label ‘__pyx_L1_error’ defined but not used
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_7dns_init’:
gevent/core.c:5862: warning: implicit declaration of function ‘evdns_init’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_8dns_shutdown’:
gevent/core.c:5934: warning: implicit declaration of function ‘evdns_shutdown’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_9dns_err_to_string’:
gevent/core.c:5977: warning: implicit declaration of function ‘evdns_err_to_string’
gevent/core.c:5977: warning: assignment makes pointer from integer without a cast
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_10dns_resolve_ipv4’:
gevent/core.c:6480: warning: implicit declaration of function ‘evdns_resolve_ipv4’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_11dns_resolve_ipv6’:
gevent/core.c:6638: warning: implicit declaration of function ‘evdns_resolve_ipv6’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_12dns_resolve_reverse’:
gevent/core.c:6796: warning: implicit declaration of function ‘evdns_resolve_reverse’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_13dns_resolve_reverse_ipv6’:
gevent/core.c:6954: warning: implicit declaration of function ‘evdns_resolve_reverse_ipv6’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_6buffer_1__len__’:
gevent/core.c:7159: warning: implicit declaration of function ‘EVBUFFER_LENGTH’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_6buffer_6read’:
gevent/core.c:7545: warning: implicit declaration of function ‘EVBUFFER_DATA’
gevent/core.c:7545: warning: cast to pointer from integer of different size
gevent/core.c:7591: warning: implicit declaration of function ‘evbuffer_drain’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_6buffer_7readline’:
gevent/core.c:7849: warning: cast to pointer from integer of different size
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_6buffer_9write’:
gevent/core.c:8222: warning: implicit declaration of function ‘evbuffer_add’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_17http_request_base_6get_input_headers’:
gevent/core.c:9277: error: dereferencing pointer to incomplete type
gevent/core.c:9286: error: dereferencing pointer to incomplete type
gevent/core.c:9319: error: dereferencing pointer to incomplete type
gevent/core.c:9328: error: dereferencing pointer to incomplete type
gevent/core.c:9396: error: dereferencing pointer to incomplete type
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_17http_request_base_10connection___get__’:
gevent/core.c:9477: error: dereferencing pointer to incomplete type
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_17http_request_base_11remote_host___get__’:
gevent/core.c:9552: error: dereferencing pointer to incomplete type
gevent/core.c:9563: error: dereferencing pointer to incomplete type
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_17http_request_base_11remote_port___get__’:
gevent/core.c:9633: error: dereferencing pointer to incomplete type
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_17http_request_base_4kind___get__’:
gevent/core.c:9754: error: dereferencing pointer to incomplete type
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_17http_request_base_4type___get__’:
gevent/core.c:9821: error: dereferencing pointer to incomplete type
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_17http_request_base_7typestr___get__’:
gevent/core.c:9895: error: dereferencing pointer to incomplete type
gevent/core.c:9909: error: dereferencing pointer to incomplete type
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_17http_request_base_3uri___get__’:
gevent/core.c:9991: error: dereferencing pointer to incomplete type
gevent/core.c:10002: error: dereferencing pointer to incomplete type
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_17http_request_base_5major___get__’:
gevent/core.c:10072: error: dereferencing pointer to incomplete type
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_17http_request_base_5minor___get__’:
gevent/core.c:10139: error: dereferencing pointer to incomplete type
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_17http_request_base_7version___get__’:
gevent/core.c:10208: error: dereferencing pointer to incomplete type
gevent/core.c:10210: error: dereferencing pointer to incomplete type
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_17http_request_base_13response_code___get__’:
gevent/core.c:10287: error: dereferencing pointer to incomplete type
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_17http_request_base_18response_code_line___get__’:
gevent/core.c:10353: error: dereferencing pointer to incomplete type
gevent/core.c:10364: error: dereferencing pointer to incomplete type
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_17http_request_base_7chunked___get__’:
gevent/core.c:10488: error: dereferencing pointer to incomplete type
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_17http_request_base_12input_buffer___get__’:
gevent/core.c:10580: error: dereferencing pointer to incomplete type
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_17http_request_base_13output_buffer___get__’:
gevent/core.c:10695: error: dereferencing pointer to incomplete type
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_17http_request_base_7find_input_header’:
gevent/core.c:10795: warning: implicit declaration of function ‘evhttp_find_header’
gevent/core.c:10795: error: dereferencing pointer to incomplete type
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_17http_request_base_8find_output_header’:
gevent/core.c:10895: error: dereferencing pointer to incomplete type
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_17http_request_base_9add_input_header’:
gevent/core.c:11028: warning: implicit declaration of function ‘evhttp_add_header’
gevent/core.c:11028: error: dereferencing pointer to incomplete type
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_17http_request_base_10add_output_header’:
gevent/core.c:11151: error: dereferencing pointer to incomplete type
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_17http_request_base_11remove_input_header’:
gevent/core.c:11242: warning: implicit declaration of function ‘evhttp_remove_header’
gevent/core.c:11242: error: dereferencing pointer to incomplete type
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_17http_request_base_12remove_output_header’:
gevent/core.c:11325: error: dereferencing pointer to incomplete type
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_17http_request_base_13clear_input_headers’:
gevent/core.c:11396: warning: implicit declaration of function ‘evhttp_clear_headers’
gevent/core.c:11396: error: dereferencing pointer to incomplete type
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_17http_request_base_14clear_output_headers’:
gevent/core.c:11458: error: dereferencing pointer to incomplete type
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_12http_request_3send_reply’:
gevent/core.c:12050: warning: implicit declaration of function ‘evhttp_send_reply’
gevent/core.c:12091: warning: implicit declaration of function ‘evbuffer_new’
gevent/core.c:12091: warning: assignment makes pointer from integer without a cast
gevent/core.c:12124: warning: implicit declaration of function ‘evbuffer_free’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_12http_request_4send_reply_start’:
gevent/core.c:12277: warning: implicit declaration of function ‘evhttp_send_reply_start’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_12http_request_5send_reply_chunk’:
gevent/core.c:12361: warning: implicit declaration of function ‘evhttp_send_reply_chunk’
gevent/core.c:12388: warning: assignment makes pointer from integer without a cast
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_12http_request_6send_reply_end’:
gevent/core.c:12516: warning: implicit declaration of function ‘evhttp_send_reply_end’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_12http_request_7send_error’:
gevent/core.c:12636: warning: implicit declaration of function ‘evhttp_send_error’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_19http_request_client___init__’:
gevent/core.c:12831: warning: implicit declaration of function ‘evhttp_request_new’
gevent/core.c:12831: warning: assignment makes pointer from integer without a cast
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_19http_request_client_1__dealloc__’:
gevent/core.c:13070: warning: implicit declaration of function ‘evhttp_request_free’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_15http_connection_1new’:
gevent/core.c:13347: warning: implicit declaration of function ‘evhttp_connection_new’
gevent/core.c:13347: warning: assignment makes pointer from integer without a cast
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_15http_connection_2__dealloc__’:
gevent/core.c:13458: warning: implicit declaration of function ‘evhttp_connection_free’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_15http_connection_4peer___get__’:
gevent/core.c:13877: error: ‘ev_uint16_t’ undeclared (first use in this function)
gevent/core.c:13877: error: expected ‘;’ before ‘__pyx_v_port’
gevent/core.c:13928: error: ‘__pyx_v_port’ undeclared (first use in this function)
gevent/core.c:13937: warning: implicit declaration of function ‘evhttp_connection_get_peer’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_15http_connection_6set_local_address’:
gevent/core.c:14073: warning: implicit declaration of function ‘evhttp_connection_set_local_address’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_15http_connection_7set_timeout’:
gevent/core.c:14145: warning: implicit declaration of function ‘evhttp_connection_set_timeout’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_15http_connection_8set_retries’:
gevent/core.c:14217: warning: implicit declaration of function ‘evhttp_connection_set_retries’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_15http_connection_9make_request’:
gevent/core.c:14318: warning: implicit declaration of function ‘evhttp_make_request’
gevent/core.c: In function ‘__pyx_f_6gevent_4core__http_cb_handler’:
gevent/core.c:14846: error: dereferencing pointer to incomplete type
gevent/core.c:14870: warning: implicit declaration of function ‘evhttp_connection_set_closecb’
gevent/core.c: In function ‘__pyx_f_6gevent_4core_report_internal_error’:
gevent/core.c:15344: error: dereferencing pointer to incomplete type
gevent/core.c:15358: error: dereferencing pointer to incomplete type
gevent/core.c:15367: error: dereferencing pointer to incomplete type
gevent/core.c:15376: warning: assignment makes pointer from integer without a cast
gevent/core.c:15385: error: dereferencing pointer to incomplete type
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_4http___init__’:
gevent/core.c:15559: warning: implicit declaration of function ‘evhttp_new’
gevent/core.c:15559: warning: assignment makes pointer from integer without a cast
gevent/core.c:15568: warning: implicit declaration of function ‘evhttp_set_gencb’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_4http_1__dealloc__’:
gevent/core.c:15620: warning: implicit declaration of function ‘evhttp_free’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_4http_3bind’:
gevent/core.c:15812: warning: implicit declaration of function ‘evhttp_bind_socket’
gevent/core.c: In function ‘__pyx_pf_6gevent_4core_4http_4accept’:
gevent/core.c:15914: warning: implicit declaration of function ‘evhttp_accept_socket’
gevent/core.c: At top level:
gevent/core.c:21272: error: expected ‘)’ before ‘val’
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-eqBfwh/gevent/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-zTkXgi-record/install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-eqBfwh/gevent
[root@localhost vagrant]# python setup.py develop
python: can't open file 'setup.py': [Errno 2] No such file or directory