-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Locust Installation error on Ubuntu 16.04 and Debian Stretch #1418
Comments
Ignore my previous response... The problem is that you are on Python 3.5. Only 3.6 and up are supported. |
@cyberw - Ah, I was thinking the same but thought it would be wiser to confirm it the actual development team (since the behavior of how pip was installing the package was kind of confusing me). Nevertheless, thanks very much. Appreciate that you looked into it for me. |
@heyman Can you delete the locust 0.0 package? I dont have permissions... Once it is removed people should at least get a more reasonable error message. The reason for the strange error is that |
@cyberw - Makes sense. Thanks mate. |
It's now removed! |
No problem. If you absolutely need 3.5 support, you can use locustio==0.13.5, but it is getting old at this point :) |
@cyberw - Oh cool. I can get by using the higher versions of python3. Thanks again for the help 👍 |
When i try to locust in windows 10 and python 3.9 ; i got this error C:\Users\CEM>python -m pip install locustio **** Locust package has moved from 'locustio' to 'locust'. Please update your reference (or pin your version to 0.14.6 if you dont want to update to 1.0) **** ERROR: Failed building wheel for locustio
ERROR: Command errored out with exit status 1: 'C:\Users\CEM\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\CEM\AppData\Local\Temp\pip-install-6_kxt825\locustio\setup.py'"'"'; file='"'"'C:\Users\CEM\AppData\Local\Temp\pip-install-6_kxt825\locustio\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\CEM\AppData\Local\Temp\pip-record-gt6k0lvh\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\CEM\AppData\Local\Programs\Python\Python39\Include\locustio' Check the logs for full command output. |
my pip file located in Desktop\PIP file , i try to changed command to python -m pip install locust but it didnt work. |
What happens when you actually run the correct command? (installing locust instead of locustio) |
it is possible (likely even) that you are running into build issues, as there are no prebuilt locust / geventhttpclient wheels for python 3.9 yet. While you wait, you can try the solutions mentioned at https://stackoverflow.com/questions/61592069/locust-is-not-installing-on-my-windows-10-for-load-testing and see if any of them help |
This solution didnt work for me. C:\Users\CEM>pip install -U locust
|
when i try "python -m pip install locust"; i got this error C:\Users\CEM>python -m pip install locust
|
Did you try the fixes mentioned in the stackoverflow post? |
Yes ,i did ; but it didnt work for me |
You tried all three of the suggested fixes, right? Then I guess you'll have to wait for the next release (which will have pre-built wheels for python 3.9), or switch back to 3.8 |
A comment for others reading along: I received this error using python:3.9.0-slim-buster today and worked around it by using python:3.8.10-slim-buster in my Docker image instead, which worked. |
Describe the bug
As far as I understand, Locust package has moved from locustio to locust. I was developing an Ansible role to install locust on a few of Debian family operating systems such as the following:
Using python3's pip, locust is successfully installed on Ubuntu 20.04, Ubuntu 18.04 and Debian Buster. However, it attempts to install locustio along with locust and errors out on Ubuntu 16.04 and Debian Stretch.
Expected behavior
Clean installation on Ubuntu 16.04 and Debian Stretch.
Actual behavior
Outputs below error (running locally within a docker container of ubuntu 16.04):
Steps to reproduce
Install locust on an ubuntu 16.04 or debian stretch docker image.
OR try following:
docker run -it darkwizard242/ansible:ubuntu-16.04 /bin/bash -c 'python3 -m pip install locust'
docker run -it darkwizard242/ansible:debian-stretch /bin/bash -c 'python3 -m pip install locust'
Environment
The text was updated successfully, but these errors were encountered: