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.

Unable to install on Mac OS X due to errors with greenlet

See original GitHub issue

Hi, I’m trying to install Locust on Mac OS X 10.11.3 El Capitan; I’ve installed libevent with brew and everything was ok. Then I tried to install locust with pip install locustio, and after lots of warnings the installation completes, but when I try to start locust I get this error:

Traceback (most recent call last):
  File "/usr/local/bin/locust", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2793, in <module>
    working_set.require(__requires__)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 673, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 576, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: greenlet>=0.4.9

And, if I try to re-install locust with Pip, I get this error at the end, relative to greenlet:

Command /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c "import setuptools;__file__='/private/var/folders/vg/s4jrqr550319kf9qx7btjtmr0000gn/T/pip_build_myuserid/greenlet/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/vg/s4jrqr550319kf9qx7btjtmr0000gn/T/pip-VErCi5-record/install-record.txt --single-version-externally-managed failed with error code 1 in /private/var/folders/vg/s4jrqr550319kf9qx7btjtmr0000gn/T/pip_build_myuserid/greenlet

Am I missing something?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

29reactions
cooperkacommented, Jul 13, 2018

Try pip install --user locustio instead of using sudo.

23reactions
davidgraciecommented, Jan 25, 2019

I was having install problems too but I fixed mine by installing command line tools: xcode-select --install

Read more comments on GitHub >

github_iconTop Results From Across the Web

macos - Can't install gevent OSX 10.11 - Stack Overflow
I ran into the same issue on my OSX 10.10.5, trying to install ... gevent, but I had to use version 1.0 to...
Read more >
Python – GCC-4.2 error on Mac OS-X Mountain Lion, unable ...
I'm trying to install libraries using pip. This problem was encountered with gevent, with psycopg2, and with greenlet. The issue seems to be...
Read more >
Error while installing requirement.txt in Mac - Odoo
Ignoring gevent: markers 'sys_platform != "win32" and python_version < "3.7"' don't match your environment. Ignoring gevent: markers 'sys_platform ...
Read more >
Installation and Requirements — gevent 22.10.3.dev0 ...
On Windows, macOS, and Linux, both gevent and greenlet are distributed as binary wheels. Tip. You need Pip 8.0 or later, or buildout...
Read more >
Unable to Install Rasa/ Rasa-x on MacOs High Sierra 10.13.6
6. Im getting below error. ERROR: Could not build wheels for alembic which use PEP 517 and cannot be installed directly. I have...
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