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
$ locust -f my/path/locustfile.py -H http://127.0.0.1:8000
Traceback (most recent call last):
File "/some/path/clm/bin/locust", line 8, in <module>
sys.exit(main())
File "/some/path/clm/lib/python3.8/site-packages/locust/main.py", line 125, in main
docstring, user_classes, shape_class = load_locustfile(locustfile)
File "/some/path/clm/lib/python3.8/site-packages/locust/main.py", line 82, in load_locustfile
imported = source.load_module()
File "<frozen importlib._bootstrap_external>", line 522, in _check_name_wrapper
File "<frozen importlib._bootstrap_external>", line 1027, in load_module
File "<frozen importlib._bootstrap_external>", line 852, in load_module
File "<frozen importlib._bootstrap>", line 265, in _load_module_shim
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 848, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/path/to/locustfile/locustfile.py", line 34, in <module>
class MyLocust(HttpLocust):
File "/some/path/lib/python3.8/site-packages/locust/util/deprecation.py", line 27, in __new__
raise ImportError(deprecation_message)
ImportError: The HttpLocust class has been renamed to HttpUser in version 1.0. For more info see: https://docs.locust.io/en/latest/changelog.html#changelog-1-0
The text was updated successfully, but these errors were encountered:
Hello folks :),
first of all, thanks for this amazing tool!
Locust team did a lot of renaming https://docs.locust.io/en/latest/changelog.html#changelog-1-0
so when I try to run tests generated by the swagger-to-locustfile lib I get:
The text was updated successfully, but these errors were encountered: