0

I am facing the below issue

my python version python3 --version Python 3.6.9 pip3 --version pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)

if I check the locust version I am facing the below error

locust -v

Traceback (most recent call last):
File "/usr/local/bin/locust", line 11, in
load_entry_point('locust', 'console_scripts', 'locust')()
File "/locust-task/src/locust/locust/main.py", line 123, in main
docstring, user_classes, shape_class = load_locustfile(locustfile)
File "/locust-task/src/locust/locust/main.py", line 79, in load_locustfile
imported = source.load_module()
File "", line 399, in _check_name_wrapper
File "", line 823, in load_module
File "", line 682, in load_module
File "", line 265, in _load_module_shim
File "", line 684, in _load
File "", line 665, in _load_unlocked
File "", line 678, in exec_module
File "", line 219, in _call_with_frames_removed
File "/locust-task/locustfile.py", line 1, in
from locust import HttpLocust, TaskSet, task, InterruptTaskSet
ImportError: cannot import name 'InterruptTaskSet'

can someone help me to resolve it?

Nagarjuna
  • 39
  • 6

1 Answers1

0

You should use locust -V command to check the version

TechFree
  • 2,600
  • 1
  • 17
  • 18