Closed caioremedio closed 8 years ago
I got the same problem:
Collecting grequests Collecting gevent (from grequests) Using cached gevent-1.0.2.tar.gz Requirement already satisfied (use --upgrade to upgrade): requests>=1.0.0 in /Users/ramon/Development/benchmark/lib/python3.4/site-packages (from grequests) Requirement already satisfied (use --upgrade to upgrade): greenlet>=0.4.7 in /Users/ramon/Development/benchmark/lib/python3.4/site-packages (from gevent->grequests) Building wheels for collected packages: gevent Running setup.py bdist_wheel for gevent Complete output from command /Users/ramon/Development/benchmark/bin/python3.4 -c "import setuptools;__file__='/private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-ex_nshl1/gevent/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/tmpmw7td0f3pip-wheel-: running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.10-x86_64-3.4 creating build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/__init__.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/_ssl2.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/_sslgte279.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/_threading.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/backdoor.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/baseserver.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/coros.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/event.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/fileobject.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/greenlet.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/hub.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/local.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/lock.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/monkey.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/os.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/pool.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/pywsgi.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/queue.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/resolver_ares.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/resolver_thread.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/select.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/server.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/socket.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/ssl.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/subprocess.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/thread.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/threading.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/threadpool.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/timeout.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/util.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/win32util.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/wsgi.py -> build/lib.macosx-10.10-x86_64-3.4/gevent running build_ext Traceback (most recent call last): File "", line 1, in File "/private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-ex_nshl1/gevent/setup.py", line 317, in run_setup(ext_modules) File "/private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-ex_nshl1/gevent/setup.py", line 312, in run_setup "Development Status :: 4 - Beta"]) File "/usr/local/Cellar/python3/3.4.3_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/local/Cellar/python3/3.4.3_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/usr/local/Cellar/python3/3.4.3_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/Users/ramon/Development/benchmark/lib/python3.4/site-packages/wheel/bdist_wheel.py", line 175, in run self.run_command('build') File "/usr/local/Cellar/python3/3.4.3_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/local/Cellar/python3/3.4.3_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/usr/local/Cellar/python3/3.4.3_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/command/build.py", line 126, in run self.run_command(cmd_name) File "/usr/local/Cellar/python3/3.4.3_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/local/Cellar/python3/3.4.3_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/usr/local/Cellar/python3/3.4.3_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/usr/local/Cellar/python3/3.4.3_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/command/build_ext.py", line 448, in build_extensions self.build_extension(ext) File "/private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-ex_nshl1/gevent/setup.py", line 234, in build_extension self.gevent_prepare(ext) File "/private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-ex_nshl1/gevent/setup.py", line 231, in gevent_prepare configure(self, ext) File "/private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-ex_nshl1/gevent/setup.py", line 139, in configure_libev make_universal_header('config.h', 'SIZEOF_LONG', 'SIZEOF_SIZE_T', 'SIZEOF_TIME_T') File "/private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-ex_nshl1/gevent/setup.py", line 111, in make_universal_header print >>f, line TypeError: unsupported operand type(s) for >>: 'builtin_function_or_method' and '_io.TextIOWrapper' Running '/bin/sh /private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-ex_nshl1/gevent/libev/configure > configure-output.txt' in /private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-ex_nshl1/gevent/build/temp.macosx-10.10-x86_64-3.4/libev ---------------------------------------- Failed building wheel for gevent Failed to build gevent Installing collected packages: gevent, grequests Running setup.py install for gevent Complete output from command /Users/ramon/Development/benchmark/bin/python3.4 -c "import setuptools, tokenize;__file__='/private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-ex_nshl1/gevent/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-bvk694a2-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/ramon/Development/benchmark/bin/../include/site/python3.4/gevent: running install running build running build_py running build_ext building 'gevent.core' extension creating build/temp.macosx-10.10-x86_64-3.4/gevent clang -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -U__llvm__ -DLIBEV_EMBED=1 -DEV_COMMON= -DEV_CLEANUP_ENABLE=0 -DEV_EMBED_ENABLE=0 -DEV_PERIODIC_ENABLE=0 -Ibuild/temp.macosx-10.10-x86_64-3.4/libev -Ilibev -I/usr/local/Cellar/python3/3.4.3_1/Frameworks/Python.framework/Versions/3.4/include/python3.4m -c gevent/gevent.core.c -o build/temp.macosx-10.10-x86_64-3.4/gevent/gevent.core.o In file included from gevent/gevent.core.c:249: In file included from gevent/libev.h:2: libev/ev.c:483:48: warning: '/*' within block comment [-Wcomment] /*#define MIN_INTERVAL 0.00000095367431640625 /* 1/2**20, good till 2200 */ ^ libev/ev.c:1029:42: error: '_Noreturn' keyword must precede function declarator ecb_inline void ecb_unreachable (void) ecb_noreturn; ^~~~~~~~~~~~ _Noreturn libev/ev.c:832:26: note: expanded from macro 'ecb_noreturn' #define ecb_noreturn _Noreturn ^ libev/ev.c:1625:31: warning: 'extern' variable has an initializer [-Wextern-initializer] EV_API_DECL struct ev_loop *ev_default_loop_ptr = 0; /* needs to be initialised to make it a definition despite extern */ ^ libev/ev.c:1796:7: warning: unused variable 'ocur_' [-Wunused-variable] array_needsize (ANPENDING, pendings [pri], pendingmax [pri], w_->pending, EMPTY2); ^ libev/ev.c:1758:22: note: expanded from macro 'array_needsize' int ecb_unused ocur_ = (cur); \ ^ libev/ev.c:1807:3: warning: unused variable 'ocur_' [-Wunused-variable] array_needsize (W, rfeeds, rfeedmax, rfeedcnt + 1, EMPTY2); ^ libev/ev.c:1758:22: note: expanded from macro 'array_needsize' int ecb_unused ocur_ = (cur); \ ^ libev/ev.c:1934:7: warning: unused variable 'ocur_' [-Wunused-variable] array_needsize (int, fdchanges, fdchangemax, fdchangecnt, EMPTY2); ^ libev/ev.c:1758:22: note: expanded from macro 'array_needsize' int ecb_unused ocur_ = (cur); \ ^ In file included from gevent/gevent.core.c:249: In file included from gevent/libev.h:2: In file included from libev/ev.c:2484: libev/ev_kqueue.c:50:3: warning: unused variable 'ocur_' [-Wunused-variable] array_needsize (struct kevent, kqueue_changes, kqueue_changemax, kqueue_changecnt, EMPTY2); ^ libev/ev.c:1758:22: note: expanded from macro 'array_needsize' int ecb_unused ocur_ = (cur); \ ^ In file included from gevent/gevent.core.c:249: In file included from gevent/libev.h:2: In file included from libev/ev.c:2490: libev/ev_poll.c:66:7: warning: unused variable 'ocur_' [-Wunused-variable] array_needsize (struct pollfd, polls, pollmax, pollcnt, EMPTY2); ^ libev/ev.c:1758:22: note: expanded from macro 'array_needsize' int ecb_unused ocur_ = (cur); \ ^ libev/ev.c:3648:34: warning: '&' within '|' [-Wbitwise-op-parentheses] fd_change (EV_A_ fd, w->events & EV__IOFDSET | EV_ANFD_REIFY); ~~~~~~~~~~^~~~~~~~~~~~~ ~ libev/ev.c:3648:34: note: place parentheses around the '&' expression to silence this warning fd_change (EV_A_ fd, w->events & EV__IOFDSET | EV_ANFD_REIFY); ^ ( ) libev/ev.c:3687:3: warning: unused variable 'ocur_' [-Wunused-variable] array_needsize (ANHE, timers, timermax, ev_active (w) + 1, EMPTY2); ^ libev/ev.c:1758:22: note: expanded from macro 'array_needsize' int ecb_unused ocur_ = (cur); \ ^ libev/ev.c:4367:5: warning: unused variable 'ocur_' [-Wunused-variable] array_needsize (ev_idle *, idles [ABSPRI (w)], idlemax [ABSPRI (w)], active, EMPTY2); ^ libev/ev.c:1758:22: note: expanded from macro 'array_needsize' int ecb_unused ocur_ = (cur); \ ^ libev/ev.c:4407:3: warning: unused variable 'ocur_' [-Wunused-variable] array_needsize (ev_prepare *, prepares, preparemax, preparecnt, EMPTY2); ^ libev/ev.c:1758:22: note: expanded from macro 'array_needsize' int ecb_unused ocur_ = (cur); \ ^ libev/ev.c:4445:3: warning: unused variable 'ocur_' [-Wunused-variable] array_needsize (ev_check *, checks, checkmax, checkcnt, EMPTY2); ^ libev/ev.c:1758:22: note: expanded from macro 'array_needsize' int ecb_unused ocur_ = (cur); \ ^ libev/ev.c:4592:3: warning: unused variable 'ocur_' [-Wunused-variable] array_needsize (ev_fork *, forks, forkmax, forkcnt, EMPTY2); ^ libev/ev.c:1758:22: note: expanded from macro 'array_needsize' int ecb_unused ocur_ = (cur); \ ^ libev/ev.c:4675:3: warning: unused variable 'ocur_' [-Wunused-variable] array_needsize (ev_async *, asyncs, asyncmax, asynccnt, EMPTY2); ^ libev/ev.c:1758:22: note: expanded from macro 'array_needsize' int ecb_unused ocur_ = (cur); \ ^ 14 warnings and 1 error generated. error: command 'clang' failed with exit status 1 ---------------------------------------- Command "/Users/ramon/Development/benchmark/bin/python3.4 -c "import setuptools, tokenize;__file__='/private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-ex_nshl1/gevent/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-bvk694a2-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/ramon/Development/benchmark/bin/../include/site/python3.4/gevent" failed with error code 1 in /private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-ex_nshl1/gevent
I solved this issue by following this post : http://bradleyayers.blogspot.com/2011/06/osx-homebrew-gevent.html
@lequangminh17101985 your solution don't work for me, are you using virtualenv?
@ramonPires : yes, I used virtualenv . You should do exactly in that post .
same problem, @lequangminh17101985 your solution not work, not the same problem
pip install 'cython>=0.23.4' git+git://github.com/gevent/gevent.git#egg=gevent pip install grequests
@lianghong your solution work's , but only running as super user :
(BENCHMARK)➜ bench pip install 'cython>=0.23.4' git+git://github.com/gevent/gevent.git#egg=gevent Collecting cython>=0.23.4 Downloading Cython-0.23.4-cp34-cp34m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (3.6MB) 100% |████████████████████████████████| 3.6MB 107kB/s Collecting gevent from git+git://github.com/gevent/gevent.git#egg=gevent Cloning git://github.com/gevent/gevent.git to /private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-7t41ymt4/gevent Requirement already satisfied (use --upgrade to upgrade): greenlet>=0.4.9 in /Users/ramon/Development/BENCHMARK/lib/python3.4/site-packages (from gevent) Installing collected packages: cython, gevent Running setup.py install for gevent Complete output from command /Users/ramon/Development/BENCHMARK/bin/python3.4 -c "import setuptools, tokenize;__file__='/private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-7t41ymt4/gevent/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-_cph786e-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/ramon/Development/BENCHMARK/bin/../include/site/python3.4/gevent: /Users/ramon/Development/BENCHMARK/bin/python3.4 util/cythonpp.py -o gevent.corecext.c gevent/core.ppyx Running cython -o gevent.corecext.c gevent/core.pyx # !EV_USE_SIGNALFD && !defined(LIBEV_EMBED) && !defined(_WIN32) Running cython -o gevent.corecext.c gevent/core.pyx # !EV_USE_SIGNALFD && !defined(LIBEV_EMBED) && defined(_WIN32) Running cython -o gevent.corecext.c gevent/core.pyx # !EV_USE_SIGNALFD && defined(LIBEV_EMBED) && !defined(_WIN32) Running cython -o gevent.corecext.c gevent/core.pyx # !EV_USE_SIGNALFD && defined(LIBEV_EMBED) && defined(_WIN32) Running cython -o gevent.corecext.c gevent/core.pyx # EV_USE_SIGNALFD && defined(LIBEV_EMBED) && !defined(_WIN32) Running cython -o gevent.corecext.c gevent/core.pyx # EV_USE_SIGNALFD && defined(LIBEV_EMBED) && defined(_WIN32) Reusing cython -o gevent.corecext.c gevent/core.pyx # EV_USE_SIGNALFD && defined(LIBEV_EMBED) && !defined(_WIN32) Reusing cython -o gevent.corecext.c gevent/core.pyx # EV_USE_SIGNALFD && defined(LIBEV_EMBED) && defined(_WIN32) Generating gevent.corecext.c 2007055 bytes Saving gevent/core.pyx echo '#include "callbacks.c"' >> gevent.corecext.c mv gevent.corecext.* gevent/ cython -o gevent.ares.c gevent/ares.pyx mv gevent.ares.* gevent/ cp gevent/_semaphore.pyx gevent/_semaphore.py cython -o gevent._semaphore.c gevent/_semaphore.py mv gevent._semaphore.* gevent/ rm gevent/_semaphore.py cython -o gevent._util.c gevent/_util.pyx mv gevent._util.* gevent/ Running 'make ' in /private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-7t41ymt4/gevent running install running build running build_py creating build creating build/lib.macosx-10.10-x86_64-3.4 creating build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/__init__.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/_fileobject2.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/_fileobject3.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/_fileobjectcommon.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/_fileobjectposix.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/_socket2.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/_socket3.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/_socketcommon.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/_ssl2.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/_ssl3.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/_sslgte279.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/_tblib.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/_threading.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/_util_py2.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/backdoor.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/baseserver.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/builtins.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/core.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/corecffi.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/coros.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/event.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/fileobject.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/greenlet.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/hub.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/local.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/lock.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/monkey.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/os.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/pool.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/pywsgi.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/queue.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/resolver_ares.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/resolver_thread.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/select.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/server.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/signal.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/socket.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/ssl.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/subprocess.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/thread.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/threading.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/threadpool.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/timeout.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/util.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/win32util.py -> build/lib.macosx-10.10-x86_64-3.4/gevent copying gevent/wsgi.py -> build/lib.macosx-10.10-x86_64-3.4/gevent running build_ext Running '(cd "/private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-7t41ymt4/gevent/libev" && /bin/sh ./configure && mv config.h "$OLDPWD") > configure-output.txt' in /private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-7t41ymt4/gevent/build/temp.macosx-10.10-x86_64-3.4/libev building 'gevent.core' extension creating build/temp.macosx-10.10-x86_64-3.4/gevent clang -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/brew/include -U__llvm__ -DLIBEV_EMBED=1 -DEV_COMMON= -DEV_CLEANUP_ENABLE=0 -DEV_EMBED_ENABLE=0 -DEV_PERIODIC_ENABLE=0 -Ibuild/temp.macosx-10.10-x86_64-3.4/libev -Ilibev -I/usr/local/Cellar/python3/3.4.3_1/Frameworks/Python.framework/Versions/3.4/include/python3.4m -c gevent/gevent.corecext.c -o build/temp.macosx-10.10-x86_64-3.4/gevent/gevent.corecext.o In file included from gevent/gevent.corecext.c:241: In file included from gevent/libev.h:2: libev/ev.c:483:48: warning: '/*' within block comment [-Wcomment] /*#define MIN_INTERVAL 0.00000095367431640625 /* 1/2**20, good till 2200 */ ^ libev/ev.c:1692:31: warning: 'extern' variable has an initializer [-Wextern-initializer] EV_API_DECL struct ev_loop *ev_default_loop_ptr = 0; /* needs to be initialised to make it a definition despite extern */ ^ libev/ev.c:3715:34: warning: '&' within '|' [-Wbitwise-op-parentheses] fd_change (EV_A_ fd, w->events & EV__IOFDSET | EV_ANFD_REIFY); ~~~~~~~~~~^~~~~~~~~~~~~ ~ libev/ev.c:3715:34: note: place parentheses around the '&' expression to silence this warning fd_change (EV_A_ fd, w->events & EV__IOFDSET | EV_ANFD_REIFY); ^ ( ) gevent/gevent.corecext.c:48228:32: warning: unused function '__Pyx_PyUnicode_FromString' [-Wunused-function] static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) { ^ gevent/gevent.corecext.c:48343:33: warning: unused function '__Pyx_PyIndex_AsSsize_t' [-Wunused-function] static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) { ^ gevent/gevent.corecext.c:45974:32: warning: unused function '__Pyx_GetItemInt_List_Fast' [-Wunused-function] static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, ^ gevent/gevent.corecext.c:45989:32: warning: unused function '__Pyx_GetItemInt_Tuple_Fast' [-Wunused-function] static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, ^ 7 warnings generated. clang -bundle -undefined dynamic_lookup -I/brew/include -U__llvm__ build/temp.macosx-10.10-x86_64-3.4/gevent/gevent.corecext.o -o build/lib.macosx-10.10-x86_64-3.4/gevent/core.so configure: error: Can not continue. Fix errors mentioned immediately above this line. Traceback (most recent call last): File "", line 1, in File "/private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-7t41ymt4/gevent/setup.py", line 425, in run_setup(ext_modules, run_make=run_make) File "/private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-7t41ymt4/gevent/setup.py", line 411, in run_setup "Development Status :: 4 - Beta"] File "/usr/local/Cellar/python3/3.4.3_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/local/Cellar/python3/3.4.3_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/usr/local/Cellar/python3/3.4.3_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/Users/ramon/Development/BENCHMARK/lib/python3.4/site-packages/setuptools/command/install.py", line 61, in run return orig.install.run(self) File "/usr/local/Cellar/python3/3.4.3_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/command/install.py", line 539, in run self.run_command('build') File "/usr/local/Cellar/python3/3.4.3_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/local/Cellar/python3/3.4.3_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/usr/local/Cellar/python3/3.4.3_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/command/build.py", line 126, in run self.run_command(cmd_name) File "/usr/local/Cellar/python3/3.4.3_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/usr/local/Cellar/python3/3.4.3_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/usr/local/Cellar/python3/3.4.3_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/command/build_ext.py", line 339, in run self.build_extensions() File "/usr/local/Cellar/python3/3.4.3_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/distutils/command/build_ext.py", line 448, in build_extensions self.build_extension(ext) File "/private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-7t41ymt4/gevent/setup.py", line 259, in build_extension self.gevent_prepare(ext) File "/private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-7t41ymt4/gevent/setup.py", line 256, in gevent_prepare configure(self, ext) File "/private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-7t41ymt4/gevent/setup.py", line 185, in configure_ares rc = _system(ares_configure_command) File "/private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-7t41ymt4/gevent/setup.py", line 138, in _system return check_call(cmd, shell=True) File "/usr/local/Cellar/python3/3.4.3_1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/subprocess.py", line 561, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '(cd "/private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-7t41ymt4/gevent/c-ares" && if [ -e ares_build.h ]; then cp ares_build.h ares_build.h.orig; fi && /bin/sh ./configure CONFIG_COMMANDS= CONFIG_FILES= && cp ares_config.h ares_build.h "$OLDPWD" && mv ares_build.h.orig ares_build.h) > configure-output.txt' returned non-zero exit status 1 Linking /private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-7t41ymt4/gevent/build/lib.macosx-10.10-x86_64-3.4/gevent/core.so to /private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-7t41ymt4/gevent/gevent/core.so Running '(cd "/private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-7t41ymt4/gevent/c-ares" && if [ -e ares_build.h ]; then cp ares_build.h ares_build.h.orig; fi && /bin/sh ./configure CONFIG_COMMANDS= CONFIG_FILES= && cp ares_config.h ares_build.h "$OLDPWD" && mv ares_build.h.orig ares_build.h) > configure-output.txt' in /private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-7t41ymt4/gevent/build/temp.macosx-10.10-x86_64-3.4/c-ares ---------------------------------------- Command "/Users/ramon/Development/BENCHMARK/bin/python3.4 -c "import setuptools, tokenize;__file__='/private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-7t41ymt4/gevent/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-_cph786e-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/ramon/Development/BENCHMARK/bin/../include/site/python3.4/gevent" failed with error code 1 in /private/var/folders/f6/9mb0149s1xj5wsc305rqn8y00000gp/T/pip-build-7t41ymt4/gevent
Now as super user:
(BENCHMARK)➜ bench sudo pip install 'cython>=0.23.4' git+git://github.com/gevent/gevent.git#egg=gevent Password: The directory '/Users/ramon/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/Users/ramon/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Requirement already satisfied (use --upgrade to upgrade): cython>=0.23.4 in /Users/ramon/Development/BENCHMARK/lib/python3.4/site-packages Collecting gevent from git+git://github.com/gevent/gevent.git#egg=gevent Cloning git://github.com/gevent/gevent.git to /private/tmp/pip-build-580cksd9/gevent Requirement already satisfied (use --upgrade to upgrade): greenlet>=0.4.9 in /Users/ramon/Development/BENCHMARK/lib/python3.4/site-packages (from gevent) Installing collected packages: gevent Running setup.py install for gevent Successfully installed gevent-1.1b7.dev0 (BENCHMARK)➜ bench pip install grequests Collecting grequests Requirement already satisfied (use --upgrade to upgrade): requests>=1.0.0 in /Users/ramon/Development/BENCHMARK/lib/python3.4/site-packages (from grequests) Requirement already satisfied (use --upgrade to upgrade): gevent in /Users/ramon/Development/BENCHMARK/lib/python3.4/site-packages (from grequests) Requirement already satisfied (use --upgrade to upgrade): greenlet>=0.4.9 in /Users/ramon/Development/BENCHMARK/lib/python3.4/site-packages (from gevent->grequests) Installing collected packages: grequests Successfully installed grequests-0.2.0 (BENCHMARK)➜ bench python Python 3.4.3 (default, Jul 3 2015, 01:28:31) [GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import grequests >>> urls = [ ... 'http://www.heroku.com', ... 'http://python-tablib.org', ... 'http://httpbin.org', ... 'http://python-requests.org', ... 'http://kennethreitz.com' ... ] >>> rs = (grequests.get(u) for u in urls) >>> grequests.map(rs) [, , , , ] >>>
@lianghong method works fine in virtual env. Thanks!
For reference: https://twitter.com/kennethreitz/status/687048747059032064
Can't find anything that solves my problem, I don't know what else to do.