Closed jairtrejo closed 7 years ago
That's right. Try 2.7.7. I have been using pyenv for Python version management.
Thanks! Will do.
I updated the stack trace because I had pasted the wrong one. Feel free to close the issue, but it might be good to keep it around as reference.
Yeah, we'll close it once it has been resolved by gevent.
Trying to get this working with SSL. Installed pyenv
and downgraded to 2.7.7. Getting this on pip install locustio
:
Installing collected packages: greenlet, msgpack-python, requests, flask, gevent, locustio
Running setup.py install for greenlet
building 'greenlet' extension
clang -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/seanadkinson/.pyenv/versions/2.7.7/include/python2.7 -c greenlet.c -o build/temp.macosx-10.10-x86_64-2.7/greenlet.o
clang -bundle -bundle_loader python.exe -L/usr/local/opt/readline/lib -L/usr/local/opt/readline/lib -L/Users/seanadkinson/.pyenv/versions/2.7.7/lib build/temp.macosx-10.10-x86_64-2.7/greenlet.o -o build/lib.macosx-10.10-x86_64-2.7/greenlet.so
ld: file not found: python.exe
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'clang' failed with exit status 1
Complete output from command /Users/seanadkinson/.pyenv/versions/2.7.7/bin/python2.7 -c "import setuptools, tokenize;__file__='/private/var/folders/zp/2txhgsjj3sg6yrstr1gm1fnr0000gn/T/pip-build-2sHSIR/greenlet/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/zp/2txhgsjj3sg6yrstr1gm1fnr0000gn/T/pip-PeEoqU-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building 'greenlet' extension
creating build
creating build/temp.macosx-10.10-x86_64-2.7
clang -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/seanadkinson/.pyenv/versions/2.7.7/include/python2.7 -c greenlet.c -o build/temp.macosx-10.10-x86_64-2.7/greenlet.o
creating build/lib.macosx-10.10-x86_64-2.7
clang -bundle -bundle_loader python.exe -L/usr/local/opt/readline/lib -L/usr/local/opt/readline/lib -L/Users/seanadkinson/.pyenv/versions/2.7.7/lib build/temp.macosx-10.10-x86_64-2.7/greenlet.o -o build/lib.macosx-10.10-x86_64-2.7/greenlet.so
ld: file not found: python.exe
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'clang' failed with exit status 1
----------------------------------------
Command "/Users/seanadkinson/.pyenv/versions/2.7.7/bin/python2.7 -c "import setuptools, tokenize;__file__='/private/var/folders/zp/2txhgsjj3sg6yrstr1gm1fnr0000gn/T/pip-build-2sHSIR/greenlet/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/zp/2txhgsjj3sg6yrstr1gm1fnr0000gn/T/pip-PeEoqU-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/zp/2txhgsjj3sg6yrstr1gm1fnr0000gn/T/pip-build-2sHSIR/greenlet
Any guidance?
Strange for it to be looking for python.exe
when I am on Mac OS X
This page may help related to pyenv and common build problems: https://github.com/yyuu/pyenv/wiki/Common-build-problems
@aidylewis how do I force locust to use a specific version of python? I've used pyenv shell 2.7.7
and pyenv global 2.7.7
but whenever I try and run my locust version I get the following in the error stack: File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 352, in wrap_socket
which suggests it's still using 2.7.11
This should be resolved, but please raise again if you see it again.
Hi! I am trying to use locust on Mac OSX and Python 2.7.9. When trying to run any test that uses an https request, I see the following error:
It seems to be related with a breaking change in Python 2.7.9 http://bugs.python.org/issue22438 that causes a problem in gevent https://github.com/gevent/gevent/issues/477