Gevent: Alpine Linux: Can not update my gevent dependency

Created on 12 Apr 2020  路  3Comments  路  Source: gevent/gevent

Description:

What are you trying to get done, what has happened, what went wrong, and what did you expect?
Expect updated package

ERROR: Command errored out with exit status 1:
   command: /usr/local/bin/python /usr/local/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmp36rxa7hw
       cwd: /tmp/pip-install-rh6qhdew/gevent
  Complete output (340 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.8
  creating build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/_util.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/_tracer.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/_waiter.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/queue.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/subprocess.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/builtins.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/select.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/__init__.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/backdoor.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/_socket3.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/_greenlet_primitives.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/server.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/socket.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/_threading.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/pywsgi.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/_interfaces.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/exceptions.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/local.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/_abstract_linkable.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/hub.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/baseserver.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/_imap.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/timeout.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/_sslgte279.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/win32util.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/pool.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/_socket2.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/_ident.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/threadpool.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/ssl.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/_fileobjectposix.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/fileobject.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/core.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/_fileobjectcommon.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/event.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/_monitor.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/_semaphore.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/_ssl2.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/ares.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/greenlet.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/_socketcommon.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/events.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/resolver_thread.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/_ssl3.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/threading.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/_hub_primitives.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/contextvars.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/os.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/monkey.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/signal.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/thread.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/resolver_ares.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/_util_py2.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/_hub_local.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/_patcher.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/util.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/_compat.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/lock.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/time.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/_tblib.py -> build/lib.linux-x86_64-3.8/gevent
  copying src/gevent/_config.py -> build/lib.linux-x86_64-3.8/gevent
  creating build/lib.linux-x86_64-3.8/gevent/testing
  copying src/gevent/testing/__init__.py -> build/lib.linux-x86_64-3.8/gevent/testing
  copying src/gevent/testing/errorhandler.py -> build/lib.linux-x86_64-3.8/gevent/testing
  copying src/gevent/testing/flaky.py -> build/lib.linux-x86_64-3.8/gevent/testing
  copying src/gevent/testing/support.py -> build/lib.linux-x86_64-3.8/gevent/testing
  copying src/gevent/testing/sysinfo.py -> build/lib.linux-x86_64-3.8/gevent/testing
  copying src/gevent/testing/modules.py -> build/lib.linux-x86_64-3.8/gevent/testing
  copying src/gevent/testing/params.py -> build/lib.linux-x86_64-3.8/gevent/testing
  copying src/gevent/testing/monkey_test.py -> build/lib.linux-x86_64-3.8/gevent/testing
  copying src/gevent/testing/travis.py -> build/lib.linux-x86_64-3.8/gevent/testing
  copying src/gevent/testing/hub.py -> build/lib.linux-x86_64-3.8/gevent/testing
  copying src/gevent/testing/timing.py -> build/lib.linux-x86_64-3.8/gevent/testing
  copying src/gevent/testing/skipping.py -> build/lib.linux-x86_64-3.8/gevent/testing
  copying src/gevent/testing/testrunner.py -> build/lib.linux-x86_64-3.8/gevent/testing
  copying src/gevent/testing/leakcheck.py -> build/lib.linux-x86_64-3.8/gevent/testing
  copying src/gevent/testing/six.py -> build/lib.linux-x86_64-3.8/gevent/testing
  copying src/gevent/testing/sockets.py -> build/lib.linux-x86_64-3.8/gevent/testing
  copying src/gevent/testing/patched_tests_setup.py -> build/lib.linux-x86_64-3.8/gevent/testing
  copying src/gevent/testing/openfiles.py -> build/lib.linux-x86_64-3.8/gevent/testing
  copying src/gevent/testing/switching.py -> build/lib.linux-x86_64-3.8/gevent/testing
  copying src/gevent/testing/util.py -> build/lib.linux-x86_64-3.8/gevent/testing
  copying src/gevent/testing/testcase.py -> build/lib.linux-x86_64-3.8/gevent/testing
  copying src/gevent/testing/resources.py -> build/lib.linux-x86_64-3.8/gevent/testing
  copying src/gevent/testing/exception.py -> build/lib.linux-x86_64-3.8/gevent/testing
  creating build/lib.linux-x86_64-3.8/gevent/libev
  copying src/gevent/libev/__init__.py -> build/lib.linux-x86_64-3.8/gevent/libev
  copying src/gevent/libev/_corecffi_build.py -> build/lib.linux-x86_64-3.8/gevent/libev
  copying src/gevent/libev/corecffi.py -> build/lib.linux-x86_64-3.8/gevent/libev
  copying src/gevent/libev/watcher.py -> build/lib.linux-x86_64-3.8/gevent/libev
  creating build/lib.linux-x86_64-3.8/gevent/_ffi
  copying src/gevent/_ffi/__init__.py -> build/lib.linux-x86_64-3.8/gevent/_ffi
  copying src/gevent/_ffi/callback.py -> build/lib.linux-x86_64-3.8/gevent/_ffi
  copying src/gevent/_ffi/loop.py -> build/lib.linux-x86_64-3.8/gevent/_ffi
  copying src/gevent/_ffi/watcher.py -> build/lib.linux-x86_64-3.8/gevent/_ffi
  creating build/lib.linux-x86_64-3.8/gevent/libuv
  copying src/gevent/libuv/__init__.py -> build/lib.linux-x86_64-3.8/gevent/libuv
  copying src/gevent/libuv/_corecffi_build.py -> build/lib.linux-x86_64-3.8/gevent/libuv
  copying src/gevent/libuv/loop.py -> build/lib.linux-x86_64-3.8/gevent/libuv
  copying src/gevent/libuv/watcher.py -> build/lib.linux-x86_64-3.8/gevent/libuv
  creating build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__threading_holding_lock_while_monkey.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__socket_errors.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__environ.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__threading_2.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__socket_ssl.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__ares_host_result.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__subprocess_interrupted.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__event.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__memleak.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__core.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__order.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__socket_close.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__issues461_471.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__sleep0.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__example_echoserver.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__greenio.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__monkey_module_run.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/_imports_at_top_level.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__loop_callback.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__issue639.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/known_failures.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__threading_monkey_in_thread.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__core_timer.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__threading.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__GreenletExit.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__threading_before_monkey.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__signal.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__threading_vs_settrace.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test___ident.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__example_wsgiserver_ssl.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__monkey_logging.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/__init__.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__import_blocking_in_greenlet.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__socket_timeout.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__core_async.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__issue230.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__socketpair.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__example_portforwarder.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__subprocess.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__refcount.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__os.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__util.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__monkey_builtins_future.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__api_timeout.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__socket_dns.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__core_loop_run.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__pool.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__core_fork.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__iwait.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__issue112.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__issue_728.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__local.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__compat.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__systemerror.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__semaphore.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__threading_patched_local.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__examples.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__ares_timeout.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__issue607.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__timeout.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__core_callback.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__destroy_default_loop.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__socket_dns6.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__monkey_hub_in_thread.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__issue467.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__core_watcher.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__all__.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__monkey_ssl_warning3.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__ssl.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__monkey_futures_thread.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__issue600.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__monkey_queue.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__monkey_multiple_imports.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__monkey_sigchld.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/_import_patch.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/_import_import_patch.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__resolver_dnspython.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__makefile_ref.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__destroy.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__import_wait.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__pywsgi.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__backdoor.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/getaddrinfo_module.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__server_pywsgi.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test___config.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__example_webproxy.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__monkey_ssl_warning2.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__monkey_sigchld_3.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__exc_info.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__socket.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__issue330.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test___monkey_patching.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/__main__.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__events.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__socket_send_memoryview.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__issue6.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/lock_tests.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__getaddrinfo_import.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__example_wsgiserver.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/_blocks_at_top_level.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__example_udp_client.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__nondefaultloop.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/_imports_imports_at_top_level.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__server.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test___monitor.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__fileobject.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__greenlet.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__real_greenlet.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__threadpool.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__greenness.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__socket_ex.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__hub_join.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__select.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__core_stat.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__hub.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__joinall.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__queue.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__monkey_ssl_warning.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__threading_native_before_monkey.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__api.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__example_udp_server.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__greenletset.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__threadpool_executor_patched.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__subprocess_poll.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__close_backend_fd.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__monkey.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__doctests.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__monkey_selectors.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__refcount_core.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__monkey_sigchld_2.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__hub_join_timeout.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test__execmodules.py -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/_import_wait.py -> build/lib.linux-x86_64-3.8/gevent/tests
  creating build/lib.linux-x86_64-3.8/gevent/resolver
  copying src/gevent/resolver/blocking.py -> build/lib.linux-x86_64-3.8/gevent/resolver
  copying src/gevent/resolver/dnspython.py -> build/lib.linux-x86_64-3.8/gevent/resolver
  copying src/gevent/resolver/__init__.py -> build/lib.linux-x86_64-3.8/gevent/resolver
  copying src/gevent/resolver/_addresses.py -> build/lib.linux-x86_64-3.8/gevent/resolver
  copying src/gevent/resolver/_hostsfile.py -> build/lib.linux-x86_64-3.8/gevent/resolver
  copying src/gevent/resolver/ares.py -> build/lib.linux-x86_64-3.8/gevent/resolver
  copying src/gevent/resolver/thread.py -> build/lib.linux-x86_64-3.8/gevent/resolver
  creating build/lib.linux-x86_64-3.8/gevent/tests/monkey_package
  copying src/gevent/tests/monkey_package/threadpool_monkey_patches.py -> build/lib.linux-x86_64-3.8/gevent/tests/monkey_package
  copying src/gevent/tests/monkey_package/__init__.py -> build/lib.linux-x86_64-3.8/gevent/tests/monkey_package
  copying src/gevent/tests/monkey_package/issue1526_no_monkey.py -> build/lib.linux-x86_64-3.8/gevent/tests/monkey_package
  copying src/gevent/tests/monkey_package/script.py -> build/lib.linux-x86_64-3.8/gevent/tests/monkey_package
  copying src/gevent/tests/monkey_package/issue1526_with_monkey.py -> build/lib.linux-x86_64-3.8/gevent/tests/monkey_package
  copying src/gevent/tests/monkey_package/issue302monkey.py -> build/lib.linux-x86_64-3.8/gevent/tests/monkey_package
  copying src/gevent/tests/monkey_package/threadpool_no_monkey.py -> build/lib.linux-x86_64-3.8/gevent/tests/monkey_package
  copying src/gevent/tests/monkey_package/__main__.py -> build/lib.linux-x86_64-3.8/gevent/tests/monkey_package
  creating build/lib.linux-x86_64-3.8/gevent/testing/coveragesite
  copying src/gevent/testing/coveragesite/sitecustomize.py -> build/lib.linux-x86_64-3.8/gevent/testing/coveragesite
  copying src/gevent/tests/keycert.pem -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/nullcert.pem -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/2_7_keycert.pem -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/badcert.pem -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/https_svn_python_org_root.pem -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/sha256.pem -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/wrongcert.pem -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/badkey.pem -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/server.crt -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test_server.crt -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/tests_that_dont_do_leakchecks.txt -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/tests_that_dont_monkeypatch.txt -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/hosts_file.txt -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/tests_that_dont_use_resolver.txt -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/test_server.key -> build/lib.linux-x86_64-3.8/gevent/tests
  copying src/gevent/tests/server.key -> build/lib.linux-x86_64-3.8/gevent/tests
  running build_ext
  generating cffi module 'build/temp.linux-x86_64-3.8/gevent.libuv._corecffi.c'
  creating build/temp.linux-x86_64-3.8
  Running '(cd  "/tmp/pip-install-rh6qhdew/gevent/deps/libev"  && sh ./configure -C > configure-output.txt )' in /tmp/pip-install-rh6qhdew/gevent
  ./configure: line 1: /usr/bin/file: not found
  config.status: error: in `/tmp/pip-install-rh6qhdew/gevent/deps/libev':
  config.status: error: Something went wrong bootstrapping makefile fragments
      for automatic dependency tracking.  Try re-running configure with the
      '--disable-dependency-tracking' option to at least be able to build
      the package (albeit without support for automatic dependency tracking).
  See `config.log' for more details
  Traceback (most recent call last):
    File "/usr/local/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
      main()
    File "/usr/local/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/usr/local/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 181, in build_wheel
      return _build_backend().build_wheel(wheel_directory, config_settings,
    File "/tmp/pip-build-env-_6uk4x62/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 212, in build_wheel
      return self._build_with_temp_dir(['bdist_wheel'], '.whl',
    File "/tmp/pip-build-env-_6uk4x62/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 198, in _build_with_temp_dir
      self.run_setup()
    File "/tmp/pip-build-env-_6uk4x62/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 249, in run_setup
      super(_BuildMetaLegacyBackend,
    File "/tmp/pip-build-env-_6uk4x62/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 143, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 436, in <module>
      run_setup(EXT_MODULES)
    File "setup.py", line 314, in run_setup
      setup(
    File "/tmp/pip-build-env-_6uk4x62/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 144, in setup
      return distutils.core.setup(**attrs)
    File "/usr/local/lib/python3.8/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/usr/local/lib/python3.8/distutils/dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "/usr/local/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-env-_6uk4x62/overlay/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 223, in run
      self.run_command('build')
    File "/usr/local/lib/python3.8/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/local/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/usr/local/lib/python3.8/distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/usr/local/lib/python3.8/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/local/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-env-_6uk4x62/overlay/lib/python3.8/site-packages/cffi/setuptools_ext.py", line 141, in run
      ext.sources[0] = make_mod(self.build_temp, pre_run)
    File "/tmp/pip-build-env-_6uk4x62/overlay/lib/python3.8/site-packages/cffi/setuptools_ext.py", line 126, in make_mod
      pre_run(ext, ffi)
    File "/tmp/pip-install-rh6qhdew/gevent/_setuputils.py", line 378, in pre_run
      action()
    File "/tmp/pip-install-rh6qhdew/gevent/_setuplibev.py", line 57, in configure_libev
      system(libev_configure_command)
    File "/tmp/pip-install-rh6qhdew/gevent/_setuputils.py", line 212, in system
      if _system(cmd, cwd=cwd, env=env, **kwargs):
    File "/tmp/pip-install-rh6qhdew/gevent/_setuputils.py", line 208, in _system
      return check_call(cmd, cwd=cwd, env=env, **kwargs)
    File "/usr/local/lib/python3.8/subprocess.py", line 364, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '(cd  "/tmp/pip-install-rh6qhdew/gevent/deps/libev"  && sh ./configure -C > configure-output.txt )' returned non-zero exit status 1.
  ----------------------------------------
  ERROR: Failed building wheel for gevent
ERROR: Could not build wheels for gevent which use PEP 517 and cannot be installed directly

What I've run:

pip install -r requirements.txt with gevent==1.5.0
pip list is:
Package Version


amqp 2.5.2
apipkg 1.5
apns2 0.7.1
appdirs 1.4.3
asgiref 3.2.7
attrs 19.3.0
autopep8 1.5.1
backcall 0.1.0
bandit 1.6.2
billiard 3.6.3.0
celery 4.4.2
certifi 2020.4.5.1
cffi 1.14.0
chardet 3.0.4
click 7.1.1
coreapi 2.3.3
coreschema 0.0.4
coverage 5.0.4
cryptography 2.9
decorator 4.4.2
distlib 0.3.0
Django 3.0.5
django-cors-headers 3.2.1
django-debug-toolbar 2.2
django-environ 0.4.5
django-extensions 2.2.9
django-filter 2.2.0
django-fsm 2.7.0
django-guardian 2.2.0
django-push-notifications 2.0.0
django-redis-cache 2.1.0
django-silk 4.0.1
django-solo 1.1.3
djangorestframework 3.11.0
djangorestframework-simplejwt 4.4.0
dparse 0.5.0
drf-yasg 1.17.1
entrypoints 0.3
eradicate 1.0
execnet 1.7.1
filelock 3.0.12
flake8 3.7.9
flake8-blind-except 0.1.1
flake8-broken-line 0.2.0
flake8-bugbear 20.1.4
flake8-builtins 1.5.2
flake8-comprehensions 3.2.2
flake8-eradicate 0.3.0
flake8-executable 2.0.3
gevent 1.4.0
gitdb 4.0.2
GitPython 3.1.0
glob2 0.7
gprof2dot 2019.11.30
greenlet 0.4.15
gunicorn 20.0.4
h2 2.6.2
hiredis 1.0.1
hpack 3.0.0
http-ece 1.1.0
hyper 0.7.0
hyperframe 3.2.0
idna 2.9
inflection 0.4.0
ipython 7.13.0
ipython-genutils 0.2.0
itypes 1.1.0
jedi 0.16.0
Jinja2 2.11.1
kombu 4.6.8
Mako 1.1.2
MarkupSafe 1.1.1
mccabe 0.6.1
more-itertools 8.2.0
mypy 0.770
mypy-extensions 0.4.3
packaging 20.3
parse 1.15.0
parse-type 0.5.2
parso 0.6.2
pbr 5.4.5
pexpect 4.8.0
pickleshare 0.7.5
pip 20.0.2
pipenv 2018.11.26
pluggy 0.13.1
prompt-toolkit 3.0.5
psycopg2-binary 2.8.5
ptyprocess 0.6.0
py 1.8.1
py-vapid 1.7.0
pycodestyle 2.5.0
pycparser 2.20
pyflakes 2.1.1
Pygments 2.6.1
PyJWT 1.7.1
pyparsing 2.4.7
pytest 5.3.5
pytest-bdd 3.2.1
pytest-cov 2.8.1
pytest-django 3.9.0
pytest-flake8 1.0.4
pytest-forked 1.1.3
pytest-xdist 1.31.0
python-dateutil 2.8.1
pytz 2019.3
pywebpush 1.10.1
PyYAML 5.3.1
redis 3.4.1
requests 2.23.0
responses 0.10.12
ruamel.yaml 0.16.10
ruamel.yaml.clib 0.2.0
safety 1.8.7
sentry-sdk 0.14.3
setuptools 46.1.3
six 1.14.0
smmap 3.0.1
SQLAlchemy 1.3.16
sqlparse 0.3.1
stevedore 1.32.0
toml 0.10.0
traitlets 4.3.3
typed-ast 1.4.1
typing-extensions 3.7.4.2
uritemplate 3.0.1
urllib3 1.25.8
vine 1.3.0
virtualenv 20.0.16
virtualenv-clone 0.5.4
wcwidth 0.1.9
wheel 0.34.2

POSIX cantfix not gevent Question

All 3 comments

The error reported:

 Running '(cd  "/tmp/pip-install-rh6qhdew/gevent/deps/libev"  && sh ./configure -C > configure-output.txt )' in /tmp/pip-install-rh6qhdew/gevent
  ./configure: line 1: /usr/bin/file: not found

indicates that your system is not compatible with compiling libev. There are a few options:

1) Fix that. Install /usr/bin/file and other dependencies until libev can be compiled.
2) Use a pre-compiled libev such as one provided by the system package manager. Note that this will cause gevent to be slower and use more memory. This requires setting some environment variables; see gevent's setup scripts for details.
3) Compile a binary gevent wheel on a similar system with one of those two options taken and install from that wheel in this environment so that you don't need to compile gevent at all.
4) Use a glibc system. It's not possible for gevent to distribute binary wheels for alpine because of its use of musl, but gevent does distribute binary wheels for glibc systems.

I was able to build it properly using the following dependencies: file, make, gcc, musl-dev, libffi-dev.

Dockerfile:

FROM python:3.8-alpine AS base
WORKDIR /code
RUN apk update \
  && apk add --virtual build-deps file make gcc musl-dev libffi-dev

RUN pip install "gevent"

I can confirm gevent==1.5.0 builds on python:alpine with apk add --virtual build-deps file make gcc musl-dev libffi-dev

Was this page helpful?
0 / 5 - 0 ratings