question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mac install locust by pip in error of gevent

See original GitHub issue

My Mac is 10.11.4, and install libevent with brew was OK, but install lucust with commands below are all failed in gevent.

pip install locustio

or

sudo pip install locustio

and the error message, please check below.

Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-yqcZWg/gevent/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-MKMr18-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-yqcZWg/gevent/

any others I missed to install locust?

thanks.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
molskycommented, May 26, 2016

That gevent version lock is causing problems with OSX. I have run locust without any problems with gevent versions 1.1.1 and 1.1X in OSX but maybe that 1.1b4 had some bugs that was causing problems with locust. https://github.com/locustio/locust/pull/335

You can try this before installing locust 0.7.4 CFLAGS='-std=c99' pip install gevent==1.0.1 https://github.com/gevent/gevent/issues/656

1reaction
CCissiecommented, Oct 26, 2016

centos 7.2 has this issue too

Command “/bin/python -u -c “import setuptools, tokenize;file=‘/tmp/pip-build-hvdDPL/gevent/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(‘\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-4XdmYt-record/install-record.txt --single-version-externally-managed --compile” failed with error code 1 in /tmp/pip-build-hvdDPL/gevent/

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR: Failed building wheel for gevent when installing Locust
I found the solution to this issue, the gevent 22.10.1 is just released yesterday (Released: Oct 15, 2022) causes the problem. I installed...
Read more >
Installation — Locust 0.14.3 documentation
Locust is available on PyPI and can be installed with pip. ... be fixed by first installing the pre built binary packages for...
Read more >
What is gevent? — gevent 22.10.3.dev0 documentation
gevent is a coroutine -based Python networking library that uses greenlet to provide a high-level synchronous API on top of the libev or...
Read more >
locust - PyPI
Locust makes it easy to run load tests distributed over multiple machines. It is event-based (using gevent), which makes it possible for a...
Read more >
Setup Locust (Python/load testing) on Windows - Qxf2 BLOG
I got the below error when install locust using pip install locustio. building 'gevent.corecext' extension error: Microsoft Visual C++ 9.0 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found