Locust: Unable to install on windows

Created on 5 Feb 2020  ·  11Comments  ·  Source: locustio/locust

Hi,

I'm unable to install on widows 10. I've tried python version 3.8 and downgraded to 3.7.6 as a colleague has successfully installed locust with this version.

It still fails. It always provides the following:

"ERROR: Could not build wheels for gevent which use PEP 517 and cannot be installed directly"

I've tried installing the compiled gevent as per the locust installation instructions but that doesnt work either.

I'm at a loss, please help.

Full Exception is:

 ERROR: Command errored out with exit status 1:
   command: 'c:\program files\python37\python.exe' 'c:\program files\python37\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\u6073762\AppData\Local\Temp\tmp67jt7egq'
       cwd: C:\Users\u6073762\AppData\Local\Temp\pip-install-z1pqeevk\gevent
  Complete output (470 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.7
  creating build\lib.win-amd64-3.7\gevent
  copying src\gevent\ares.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\backdoor.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\baseserver.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\builtins.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\core.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\event.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\events.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\exceptions.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\fileobject.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\greenlet.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\hub.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\local.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\lock.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\monkey.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\os.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\pool.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\pywsgi.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\queue.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\resolver_ares.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\resolver_thread.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\select.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\server.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\signal.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\socket.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\ssl.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\subprocess.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\thread.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\threading.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\threadpool.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\time.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\timeout.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\util.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\win32util.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_abstract_linkable.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_compat.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_config.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_fileobjectcommon.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_fileobjectposix.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_greenlet_primitives.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_hub_local.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_hub_primitives.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_ident.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_imap.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_interfaces.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_monitor.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_patcher.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_semaphore.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_socket2.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_socket3.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_socketcommon.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_ssl2.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_ssl3.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_sslgte279.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_tblib.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_threading.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_tracer.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_util.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_util_py2.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_waiter.py -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\__init__.py -> build\lib.win-amd64-3.7\gevent
  creating build\lib.win-amd64-3.7\gevent\libev
  copying src\gevent\libev\corecffi.py -> build\lib.win-amd64-3.7\gevent\libev
  copying src\gevent\libev\watcher.py -> build\lib.win-amd64-3.7\gevent\libev
  copying src\gevent\libev\_corecffi_build.py -> build\lib.win-amd64-3.7\gevent\libev
  copying src\gevent\libev\__init__.py -> build\lib.win-amd64-3.7\gevent\libev
  creating build\lib.win-amd64-3.7\gevent\libuv
  copying src\gevent\libuv\loop.py -> build\lib.win-amd64-3.7\gevent\libuv
  copying src\gevent\libuv\watcher.py -> build\lib.win-amd64-3.7\gevent\libuv
  copying src\gevent\libuv\_corecffi_build.py -> build\lib.win-amd64-3.7\gevent\libuv
  copying src\gevent\libuv\__init__.py -> build\lib.win-amd64-3.7\gevent\libuv
  creating build\lib.win-amd64-3.7\gevent\resolver
  copying src\gevent\resolver\ares.py -> build\lib.win-amd64-3.7\gevent\resolver
  copying src\gevent\resolver\blocking.py -> build\lib.win-amd64-3.7\gevent\resolver
  copying src\gevent\resolver\dnspython.py -> build\lib.win-amd64-3.7\gevent\resolver
  copying src\gevent\resolver\thread.py -> build\lib.win-amd64-3.7\gevent\resolver
  copying src\gevent\resolver\_addresses.py -> build\lib.win-amd64-3.7\gevent\resolver
  copying src\gevent\resolver\_hostsfile.py -> build\lib.win-amd64-3.7\gevent\resolver
  copying src\gevent\resolver\__init__.py -> build\lib.win-amd64-3.7\gevent\resolver
  creating build\lib.win-amd64-3.7\gevent\testing
  copying src\gevent\testing\errorhandler.py -> build\lib.win-amd64-3.7\gevent\testing
  copying src\gevent\testing\exception.py -> build\lib.win-amd64-3.7\gevent\testing
  copying src\gevent\testing\flaky.py -> build\lib.win-amd64-3.7\gevent\testing
  copying src\gevent\testing\hub.py -> build\lib.win-amd64-3.7\gevent\testing
  copying src\gevent\testing\leakcheck.py -> build\lib.win-amd64-3.7\gevent\testing
  copying src\gevent\testing\modules.py -> build\lib.win-amd64-3.7\gevent\testing
  copying src\gevent\testing\monkey_test.py -> build\lib.win-amd64-3.7\gevent\testing
  copying src\gevent\testing\openfiles.py -> build\lib.win-amd64-3.7\gevent\testing
  copying src\gevent\testing\params.py -> build\lib.win-amd64-3.7\gevent\testing
  copying src\gevent\testing\patched_tests_setup.py -> build\lib.win-amd64-3.7\gevent\testing
  copying src\gevent\testing\resources.py -> build\lib.win-amd64-3.7\gevent\testing
  copying src\gevent\testing\six.py -> build\lib.win-amd64-3.7\gevent\testing
  copying src\gevent\testing\skipping.py -> build\lib.win-amd64-3.7\gevent\testing
  copying src\gevent\testing\sockets.py -> build\lib.win-amd64-3.7\gevent\testing
  copying src\gevent\testing\support.py -> build\lib.win-amd64-3.7\gevent\testing
  copying src\gevent\testing\switching.py -> build\lib.win-amd64-3.7\gevent\testing
  copying src\gevent\testing\sysinfo.py -> build\lib.win-amd64-3.7\gevent\testing
  copying src\gevent\testing\testcase.py -> build\lib.win-amd64-3.7\gevent\testing
  copying src\gevent\testing\testrunner.py -> build\lib.win-amd64-3.7\gevent\testing
  copying src\gevent\testing\timing.py -> build\lib.win-amd64-3.7\gevent\testing
  copying src\gevent\testing\travis.py -> build\lib.win-amd64-3.7\gevent\testing
  copying src\gevent\testing\util.py -> build\lib.win-amd64-3.7\gevent\testing
  copying src\gevent\testing\__init__.py -> build\lib.win-amd64-3.7\gevent\testing
  creating build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\getaddrinfo_module.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\known_failures.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\lock_tests.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__all__.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__api.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__api_timeout.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__ares_host_result.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__ares_timeout.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__backdoor.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__close_backend_fd.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__compat.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__core.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__core_async.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__core_callback.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__core_fork.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__core_loop_run.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__core_loop_run_sig_mod.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__core_stat.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__core_timer.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__core_watcher.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__destroy.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__destroy_default_loop.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__doctests.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__environ.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__event.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__events.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__examples.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__example_echoserver.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__example_portforwarder.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__example_udp_client.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__example_udp_server.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__example_webproxy.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__example_wsgiserver.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__example_wsgiserver_ssl.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__exc_info.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__execmodules.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__fileobject.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__getaddrinfo_import.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__greenio.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__greenlet.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__GreenletExit.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__greenletset.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__greenness.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__hub.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__hub_join.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__hub_join_timeout.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__import_blocking_in_greenlet.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__import_wait.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__issue112.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__issue230.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__issue330.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__issue467.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__issue6.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__issue600.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__issue607.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__issue639.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__issues461_471.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__issue_728.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__iwait.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__joinall.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__local.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__loop_callback.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__makefile_ref.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__memleak.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__monkey.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__monkey_builtins_future.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__monkey_futures_thread.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__monkey_hub_in_thread.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__monkey_logging.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__monkey_multiple_imports.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__monkey_queue.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__monkey_scope.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__monkey_selectors.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__monkey_sigchld.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__monkey_sigchld_2.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__monkey_sigchld_3.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__monkey_ssl_warning.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__monkey_ssl_warning2.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__monkey_ssl_warning3.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__nondefaultloop.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__order.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__os.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__pool.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__pywsgi.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__queue.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__real_greenlet.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__refcount.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__refcount_core.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__select.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__semaphore.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__server.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__server_pywsgi.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__signal.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__sleep0.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__socket.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__socketpair.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__socket_close.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__socket_dns.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__socket_dns6.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__socket_errors.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__socket_ex.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__socket_send_memoryview.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__socket_ssl.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__socket_timeout.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__ssl.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__subprocess.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__subprocess_interrupted.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__subprocess_poll.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__systemerror.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__threading.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__threading_2.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__threading_before_monkey.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__threading_holding_lock_while_monkey.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__threading_monkey_in_thread.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__threading_native_before_monkey.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__threading_patched_local.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__threading_vs_settrace.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__threadpool.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__threadpool_executor_patched.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__timeout.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test__util.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test___config.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test___ident.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test___monitor.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test___monkey_patching.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\_blocks_at_top_level.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\_imports_at_top_level.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\_imports_imports_at_top_level.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\_import_import_patch.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\_import_patch.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\_import_wait.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\__init__.py -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\__main__.py -> build\lib.win-amd64-3.7\gevent\tests
  creating build\lib.win-amd64-3.7\gevent\_ffi
  copying src\gevent\_ffi\callback.py -> build\lib.win-amd64-3.7\gevent\_ffi
  copying src\gevent\_ffi\loop.py -> build\lib.win-amd64-3.7\gevent\_ffi
  copying src\gevent\_ffi\watcher.py -> build\lib.win-amd64-3.7\gevent\_ffi
  copying src\gevent\_ffi\__init__.py -> build\lib.win-amd64-3.7\gevent\_ffi
  creating build\lib.win-amd64-3.7\gevent\tests\monkey_package
  copying src\gevent\tests\monkey_package\issue302monkey.py -> build\lib.win-amd64-3.7\gevent\tests\monkey_package
  copying src\gevent\tests\monkey_package\script.py -> build\lib.win-amd64-3.7\gevent\tests\monkey_package
  copying src\gevent\tests\monkey_package\__init__.py -> build\lib.win-amd64-3.7\gevent\tests\monkey_package
  copying src\gevent\tests\monkey_package\__main__.py -> build\lib.win-amd64-3.7\gevent\tests\monkey_package
  running egg_info
  writing src\gevent.egg-info\PKG-INFO
  writing dependency_links to src\gevent.egg-info\dependency_links.txt
  writing entry points to src\gevent.egg-info\entry_points.txt
  writing requirements to src\gevent.egg-info\requires.txt
  writing top-level names to src\gevent.egg-info\top_level.txt
  reading manifest file 'src\gevent.egg-info\SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no files found matching 'changelog.rst'
  warning: no files found matching 'Makefile.ext'
  warning: no files found matching 'known_failures.py'
  warning: no files found matching '.pep8'
  no previously-included directories found matching '*\__pycache__'
  warning: no previously-included files matching '*.so' found anywhere in distribution
  warning: no previously-included files matching '*.o' found anywhere in distribution
  warning: no previously-included files matching '*.lo' found anywhere in distribution
  warning: no previously-included files matching '*.la' found anywhere in distribution
  warning: no previously-included files matching '.dirstamp' found anywhere in distribution
  warning: no previously-included files matching 'config.log' found anywhere in distribution
  warning: no previously-included files matching 'config.status' found anywhere in distribution
  warning: no previously-included files matching 'config.cache' found anywhere in distribution
  no previously-included directories found matching 'docs\_build'
  warning: no previously-included files matching '*.pyc' found anywhere in distribution
  warning: no previously-included files matching '.coverage' found under directory 'src\greentest'
  no previously-included directories found matching 'src\greentest\htmlcov'
  warning: no previously-included files matching 'stamp-h?' found under directory 'deps\c-ares'
  warning: no previously-included files matching 'ares_build.h.orig' found under directory 'deps\c-ares'
  warning: no previously-included files matching '_corecffi.c' found under directory 'src\gevent'
  warning: no previously-included files found matching 'configure-output'
  warning: no previously-included files found matching 'configure-output.txt'
  warning: no previously-included files found matching 'deps\TAGS'
  warning: no previously-included files found matching 'deps\c-ares\ares_build.h'
  warning: no previously-included files found matching 'deps\c-ares\ares_config.h'
  warning: no previously-included files found matching 'deps\c-ares\libcares.pc'
  warning: no previously-included files found matching 'deps\c-ares\libtool'
  warning: no previously-included files found matching 'deps\c-ares\Makefile'
  no previously-included directories found matching 'deps\c-ares\.deps'
  no previously-included directories found matching 'deps\c-ares\.libs'
  no previously-included directories found matching 'deps\libev\.deps'
  no previously-included directories found matching 'deps\libev\.libs'
  warning: no previously-included files matching 'Makefile' found under directory 'deps\libev'
  warning: no previously-included files matching 'libtool' found under directory 'deps\libev'
  warning: no previously-included files matching 'stamp-h?' found under directory 'deps\libev'
  warning: no previously-included files matching 'config.h' found under directory 'deps\libev'
  no previously-included directories found matching 'deps\libuv\.deps'
  no previously-included directories found matching 'deps\libuv\.libs'
  no previously-included directories found matching 'deps\libuv\src\.deps'
  no previously-included directories found matching 'deps\libuv\src\unix\.deps'
  no previously-included directories found matching 'deps\libuv\src\win\.deps'
  no previously-included directories found matching 'deps\libuv\test\.deps'
  no previously-included directories found matching 'deps\libuv\autom4te.cache'
  no previously-included directories found matching 'deps\libuv\m4'
  warning: no previously-included files matching 'Makefile' found under directory 'deps\libuv'
  warning: no previously-included files matching 'Makefile.in' found under directory 'deps\libuv'
  warning: no previously-included files matching 'ar-lib' found under directory 'deps\libuv'
  warning: no previously-included files matching 'aclocal.m4' found under directory 'deps\libuv'
  warning: no previously-included files matching 'compile' found under directory 'deps\libuv'
  warning: no previously-included files matching 'configure' found under directory 'deps\libuv'
  warning: no previously-included files matching 'depcomp' found under directory 'deps\libuv'
  warning: no previously-included files matching 'install-sh' found under directory 'deps\libuv'
  warning: no previously-included files matching 'libtool' found under directory 'deps\libuv'
  warning: no previously-included files matching 'libuv.pc' found under directory 'deps\libuv'
  warning: no previously-included files matching 'ltmain.sh' found under directory 'deps\libuv'
  warning: no previously-included files matching 'missing' found under directory 'deps\libuv'
  writing manifest file 'src\gevent.egg-info\SOURCES.txt'
  copying src\gevent\__abstract_linkable.pxd -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\__greenlet_primitives.pxd -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\__hub_local.pxd -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\__hub_primitives.pxd -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\__ident.pxd -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\__imap.pxd -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\__semaphore.pxd -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\__tracer.pxd -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\__waiter.pxd -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_abstract_linkable.c -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_abstract_linkable.html -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_event.pxd -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_greenlet.pxd -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_greenlet_primitives.c -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_greenlet_primitives.html -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_hub_local.c -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_hub_local.html -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_hub_primitives.c -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_hub_primitives.html -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_ident.c -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_ident.html -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_imap.c -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_imap.html -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_local.pxd -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_queue.pxd -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_semaphore.c -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_semaphore.html -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_tracer.c -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_tracer.html -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_waiter.c -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\_waiter.html -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\event.c -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\event.html -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\greenlet.c -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\greenlet.html -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\local.c -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\local.html -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\queue.c -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\queue.html -> build\lib.win-amd64-3.7\gevent
  copying src\gevent\libev\_corecffi_cdef.c -> build\lib.win-amd64-3.7\gevent\libev
  copying src\gevent\libev\_corecffi_source.c -> build\lib.win-amd64-3.7\gevent\libev
  copying src\gevent\libev\callbacks.c -> build\lib.win-amd64-3.7\gevent\libev
  copying src\gevent\libev\callbacks.h -> build\lib.win-amd64-3.7\gevent\libev
  copying src\gevent\libev\corecext.c -> build\lib.win-amd64-3.7\gevent\libev
  copying src\gevent\libev\corecext.h -> build\lib.win-amd64-3.7\gevent\libev
  copying src\gevent\libev\corecext.html -> build\lib.win-amd64-3.7\gevent\libev
  copying src\gevent\libev\corecext.pyx -> build\lib.win-amd64-3.7\gevent\libev
  copying src\gevent\libev\libev.h -> build\lib.win-amd64-3.7\gevent\libev
  copying src\gevent\libev\libev.pxd -> build\lib.win-amd64-3.7\gevent\libev
  copying src\gevent\libev\libev_vfd.h -> build\lib.win-amd64-3.7\gevent\libev
  copying src\gevent\libev\stathelper.c -> build\lib.win-amd64-3.7\gevent\libev
  copying src\gevent\libuv\_corecffi_cdef.c -> build\lib.win-amd64-3.7\gevent\libuv
  copying src\gevent\libuv\_corecffi_source.c -> build\lib.win-amd64-3.7\gevent\libuv
  copying src\gevent\resolver\cares.c -> build\lib.win-amd64-3.7\gevent\resolver
  copying src\gevent\resolver\cares.html -> build\lib.win-amd64-3.7\gevent\resolver
  copying src\gevent\resolver\cares.pyx -> build\lib.win-amd64-3.7\gevent\resolver
  copying src\gevent\resolver\cares_ntop.h -> build\lib.win-amd64-3.7\gevent\resolver
  copying src\gevent\resolver\cares_pton.h -> build\lib.win-amd64-3.7\gevent\resolver
  copying src\gevent\resolver\dnshelper.c -> build\lib.win-amd64-3.7\gevent\resolver
  copying src\gevent\resolver\libcares.pxd -> build\lib.win-amd64-3.7\gevent\resolver
  creating build\lib.win-amd64-3.7\gevent\testing\coveragesite
  copying src\gevent\testing\coveragesite\sitecustomize.py -> build\lib.win-amd64-3.7\gevent\testing\coveragesite
  copying src\gevent\tests\2_7_keycert.pem -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\badcert.pem -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\badkey.pem -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\hosts_file.txt -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\https_svn_python_org_root.pem -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\keycert.pem -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\nullcert.pem -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\server.crt -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\server.key -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\sha256.pem -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test_server.crt -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\test_server.key -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\tests_that_dont_do_leakchecks.txt -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\tests_that_dont_monkeypatch.txt -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\tests_that_dont_use_resolver.txt -> build\lib.win-amd64-3.7\gevent\tests
  copying src\gevent\tests\wrongcert.pem -> build\lib.win-amd64-3.7\gevent\tests
  running build_ext
  generating cffi module 'build\\temp.win-amd64-3.7\\Release\\gevent.libuv._corecffi.c'
  creating build\temp.win-amd64-3.7
  creating build\temp.win-amd64-3.7\Release
  building 'gevent.libev.corecext' extension
  Traceback (most recent call last):
    File "c:\program files\python37\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 257, in <module>
      main()
    File "c:\program files\python37\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 240, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "c:\program files\python37\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 182, in build_wheel
      metadata_directory)
    File "C:\Users\u6073762\AppData\Local\Temp\pip-build-env-qxd0pzq1\overlay\Lib\site-packages\setuptools\build_meta.py", line 209, in build_wheel
      wheel_directory, config_settings)
    File "C:\Users\u6073762\AppData\Local\Temp\pip-build-env-qxd0pzq1\overlay\Lib\site-packages\setuptools\build_meta.py", line 194, in _build_with_temp_dir
      self.run_setup()
    File "C:\Users\u6073762\AppData\Local\Temp\pip-build-env-qxd0pzq1\overlay\Lib\site-packages\setuptools\build_meta.py", line 243, in run_setup
      self).run_setup(setup_script=setup_script)
    File "C:\Users\u6073762\AppData\Local\Temp\pip-build-env-qxd0pzq1\overlay\Lib\site-packages\setuptools\build_meta.py", line 142, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 420, in <module>
      run_setup(EXT_MODULES)
    File "setup.py", line 404, in run_setup
      "signal_os_incompat = gevent.monkey:_subscribe_signal_os",
    File "C:\Users\u6073762\AppData\Local\Temp\pip-build-env-qxd0pzq1\overlay\Lib\site-packages\setuptools\__init__.py", line 145, in setup
      return distutils.core.setup(**attrs)
    File "c:\program files\python37\lib\distutils\core.py", line 148, in setup
      dist.run_commands()
    File "c:\program files\python37\lib\distutils\dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "c:\program files\python37\lib\distutils\dist.py", line 985, in run_command
      cmd_obj.run()
    File "C:\Users\u6073762\AppData\Local\Temp\pip-build-env-qxd0pzq1\overlay\Lib\site-packages\wheel\bdist_wheel.py", line 223, in run
      self.run_command('build')
    File "c:\program files\python37\lib\distutils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "c:\program files\python37\lib\distutils\dist.py", line 985, in run_command
      cmd_obj.run()
    File "c:\program files\python37\lib\distutils\command\build.py", line 135, in run
      self.run_command(cmd_name)
    File "c:\program files\python37\lib\distutils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "c:\program files\python37\lib\distutils\dist.py", line 985, in run_command
      cmd_obj.run()
    File "C:\Users\u6073762\AppData\Local\Temp\pip-build-env-qxd0pzq1\overlay\Lib\site-packages\cffi\setuptools_ext.py", line 142, in run
      base_class.run(self)
    File "C:\Users\u6073762\AppData\Local\Temp\pip-build-env-qxd0pzq1\overlay\Lib\site-packages\setuptools\command\build_ext.py", line 84, in run
      _build_ext.run(self)
    File "C:\Users\u6073762\AppData\Local\Temp\pip-build-env-qxd0pzq1\overlay\Lib\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run
      _build_ext.build_ext.run(self)
    File "c:\program files\python37\lib\distutils\command\build_ext.py", line 340, in run
      self.build_extensions()
    File "C:\Users\u6073762\AppData\Local\Temp\pip-build-env-qxd0pzq1\overlay\Lib\site-packages\Cython\Distutils\old_build_ext.py", line 195, in build_extensions
      _build_ext.build_ext.build_extensions(self)
    File "c:\program files\python37\lib\distutils\command\build_ext.py", line 449, in build_extensions
      self._build_extensions_serial()
    File "c:\program files\python37\lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial
      self.build_extension(ext)
    File "C:\Users\u6073762\AppData\Local\Temp\pip-install-z1pqeevk\gevent\_setuputils.py", line 265, in build_extension
      return build_ext.build_extension(self, ext)
    File "C:\Users\u6073762\AppData\Local\Temp\pip-build-env-qxd0pzq1\overlay\Lib\site-packages\setuptools\command\build_ext.py", line 205, in build_extension
      _build_ext.build_extension(self, ext)
    File "c:\program files\python37\lib\distutils\command\build_ext.py", line 534, in build_extension
      depends=ext.depends)
    File "c:\program files\python37\lib\distutils\_msvccompiler.py", line 346, in compile
      self.initialize()
    File "c:\program files\python37\lib\distutils\_msvccompiler.py", line 239, in initialize
      vc_env = _get_vc_env(plat_spec)
    File "C:\Users\u6073762\AppData\Local\Temp\pip-build-env-qxd0pzq1\overlay\Lib\site-packages\setuptools\msvc.py", line 171, in msvc14_get_vc_env
      return EnvironmentInfo(plat_spec, vc_min_ver=14.0).return_env()
    File "C:\Users\u6073762\AppData\Local\Temp\pip-build-env-qxd0pzq1\overlay\Lib\site-packages\setuptools\msvc.py", line 1620, in return_env
      if self.vs_ver >= 14 and isfile(self.VCRuntimeRedist):
    File "c:\program files\python37\lib\genericpath.py", line 30, in isfile
      st = os.stat(path)
  TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
  ----------------------------------------
  ERROR: Failed building wheel for gevent
bug

Most helpful comment

@scottkirwanthomas I updated gevent version (on master, without a PR, like a boss. I did test it though...)

Try installing it like this (while waiting for a new release), and let us know if it works:

pip3 install git+https://github.com/locustio/locust.git#egg=locustio

All 11 comments

Hi! Have you tried installing Build Tools for Visual Studio? Maybe your issue is similar to #1208

Hmm, there seems to be prebuilt wheels for gevent, so I don't understand why it tries to build it from scratch.

What's the command you run when you try to install Locust?

@heyman We’re still on 1.5a2 though, and that one doesnt appear to have windows-wheels.

Maybe we should upgrade?

Aah, good catch! Yes, we should definitely do that.

I tried installing build tools didn't work

@scottkirwanthomas I updated gevent version (on master, without a PR, like a boss. I did test it though...)

Try installing it like this (while waiting for a new release), and let us know if it works:

pip3 install git+https://github.com/locustio/locust.git#egg=locustio

Will do when I'm back in work tomorrow

I've tried running the above command, it gave me the following:

ERROR: Exception:
Traceback (most recent call last):
File "c:\program files\python37\lib\site-packages\pip_internal\cli\base_command.py", line 186, in _main
status = self.run(options, args)
File "c:\program files\python37\lib\site-packages\pip_internal\commands\install.py", line 258, in run
isolated_mode=options.isolated_mode,
File "c:\program files\python37\lib\site-packages\pip_internal\commands\install.py", line 604, in decide_user_install
if site_packages_writable(root=root_path, isolated=isolated_mode):
File "c:\program files\python37\lib\site-packages\pip_internal\commands\install.py", line 549, in site_packages_writable
test_writable_dir(d) for d in set(get_lib_location_guesses(kwargs))
File "c:\program files\python37\lib\site-packages\pip_internal\commands\install.py", line 549, in
test_writable_dir(d) for d in set(get_lib_location_guesses(
kwargs))
File "c:\program files\python37\lib\site-packages\pip_internal\utils\filesystem.py", line 140, in test_writable_dir
return _test_writable_dir_win(path)
File "c:\program files\python37\lib\site-packages\pip_internal\utils\filesystem.py", line 153, in _test_writable_dir_win
fd = os.open(file, os.O_RDWR | os.O_CREAT | os.O_EXCL)
PermissionError: [Errno 13] Permission denied: 'c:\program files\python37\Lib\site-packages\accesstest_deleteme_fishfingers_custard_hs0lm6'

That looks super weird. Maybe the permissions on your site-packages folder is wrong? I would suggest reinstalling python completely.

That was my bad, not running the command prompt as administrator.

That has now worked

Thanks Muchly

You're welcome :)

Was this page helpful?
0 / 5 - 0 ratings