You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This means on import if you are using locust library but don't have charset_normalizer installed you will end up with:
[2023-12-06T16:04:04.623Z] ImportError while loading conftest '/workarea/locust_tests/conftest.py'.
[2023-12-06T16:04:04.623Z] locust_tests/conftest.py:1: in <module>
[2023-12-06T16:04:04.623Z] import locust
[2023-12-06T16:04:04.623Z] /opt/bb/lib/python3.8/site-packages/locust/__init__.py:22: in <module>
[2023-12-06T16:04:04.623Z] from .contrib.fasthttp import FastHttpUser
[2023-12-06T16:04:04.623Z] /opt/bb/lib/python3.8/site-packages/locust/contrib/fasthttp.py:27: in <module>
[2023-12-06T16:04:04.623Z] from charset_normalizer import detect
[2023-12-06T16:04:04.623Z] E ModuleNotFoundError: No module named 'charset_normalizer'
Command line
locust -f mylocustfile.py -t 10s --headless
Locustfile contents
Importfromfasthttpafterinstallinglatestlocust
Python version
3.11
Locust version
2.19.1
Operating system
Linux 7
The text was updated successfully, but these errors were encountered:
Hi, I've just got the same issue here. I was updating from an older version.
There is a dependency called 'charset-normalizer' which is missing. Perhaps on new installation, this does not happen, but I would add it in the requirements.txt just in case.
Prerequisites
Description
It appears that d4d92dc introduced charset_normalizer as a dependency without explciitely including it in https://github.com/locustio/locust/blob/master/pyproject.toml
This means on import if you are using locust library but don't have charset_normalizer installed you will end up with:
Command line
locust -f mylocustfile.py -t 10s --headless
Locustfile contents
Python version
3.11
Locust version
2.19.1
Operating system
Linux 7
The text was updated successfully, but these errors were encountered: