[SRU] Executing the command gives an error of missing dependency
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
locust (Ubuntu) | Status tracked in Oracular | |||||
Noble |
Fix Released
|
Undecided
|
Unassigned | |||
Oracular |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
locust fails to run and crashes immediately when executed by the user.
$ locust --help
Traceback (most recent call last):
File "/usr/bin/locust", line 5, in <module>
from locust.main import main
File "/usr/lib/
from .contrib.fasthttp import FastHttpUser
File "/usr/lib/
from charset_normalizer import detect
ModuleNotFoundE
[ Test Plan ]
install locust.
As a basic test, execute "locust --help"
If the package is not fixed,it will fail with the above error.
With the fixed package, it will display the help menu.
As a more complete test:
excute on a terminal: locust -f /usr/share/
Open browser, and go to http://
It will display the locust interface.
On the interface, click on "NEW" and then "START SWARM" in the new window.
let it run for few minutes and then click "STOP".
then click on "CHARTS" tab to see the graph, and "LOGS" tab to see the log
[ Where problems could occur ]
The code is not changed, it just adds a runtime dependency on python3-
[ Other Info ]
1. This was caused by https:/
2. Debian is not affected by this problem as python3-requests in Debian still depends on python3-
3. The oracular fix also adds python3-
In this SRU "python3-
[ Original Bug Description ]
After having installed python3-locust, I have this issue :
```
Traceback (most recent call last):
File "/home/
from locust.main import main
File "/usr/lib/
from .contrib.fasthttp import FastHttpUser
File "/usr/lib/
from charset_normalizer import detect
ModuleNotFoundE
```
After installation of python3-
I use Ubuntu noble 24.04LTS.
Here are the versions of packages during installation :
15-python3-
python3-
Have a nice day.
Changed in locust (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Sudip Mukherjee (sudipmuk) |
tags: | added: noble oracular |
Changed in locust (Ubuntu Noble): | |
status: | New → In Progress |
assignee: | nobody → Sudip Mukherjee (sudipmuk) |
summary: |
- Executing the command gives an error of missing dependency + [SRU] Executing the command gives an error of missing dependency |
description: | updated |
Changed in locust (Ubuntu Oracular): | |
status: | In Progress → Fix Committed |
assignee: | Sudip Mukherjee (sudipmuk) → nobody |
This bug was fixed in the package locust - 2.24.0-1ubuntu1
---------------
locust (2.24.0-1ubuntu1) oracular; urgency=medium
* Add dependency on python3- charset- normalizer to fix crash. (LP: #2068036)
-- Sudip Mukherjee <email address hidden> Sat, 06 Jul 2024 11:27:33 +0100