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
I'm a newbie in Locust Performance test & very interested in the modern tool Locust.
Via the first round to start, I have just prepared some things but get a error after run locust:
Installed newest Locust as the guide "pip install locustio" (run from command line)
Prepare the pyhton file with the example code as below:
from locust import HttpLocust
from tasks import MyTasks
class UserBehavior(TaskSet):
def on_start(self):
""" on_start is called when a Locust start before any task is scheduled """
class WebsiteUser(HttpLocust):
task_set = UserBehavior
min_wait = 5000
max_wait = 9000
host="http://localhost"
I open command line & run via the statement: locust -f "C:\Users\Administrator\Desktop\install Locustio\Example Code\ex1.py"
==> Actual Result: Get error from the current command line:
"Traceback (most recent call last):
File "C:\Program Files (x86)\Python3.6.2\Scripts\locust-script.py", line 11, in
load_entry_point('locustio==0.7.5', 'console_scripts', 'locust')()
File "c:\program files (x86)\python3.6.2\lib\site-packages\pkg_resources_init_.py", line 565, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "c:\program files (x86)\python3.6.2\lib\site-packages\pkg_resources_init_.py", line 2631, in load_entry_point
return ep.load()
File "c:\program files (x86)\python3.6.2\lib\site-packages\pkg_resources_init_.py", line 2291, in load
return self.resolve()
File "c:\program files (x86)\python3.6.2\lib\site-packages\pkg_resources_init_.py", line 2297, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "c:\program files (x86)\python3.6.2\lib\site-packages\locust_init_.py", line 1, in
from core import HttpLocust, Locust, TaskSet, task
ModuleNotFoundError: No module named 'core'
"
Please help me via the case & Let me know if you has a other way to help me start it with the better result.
Many thanks,
The text was updated successfully, but these errors were encountered:
Hi locustio and community,
I'm a newbie in Locust Performance test & very interested in the modern tool Locust.
Via the first round to start, I have just prepared some things but get a error after run locust:
from locust import HttpLocust
from tasks import MyTasks
class UserBehavior(TaskSet):
def on_start(self):
""" on_start is called when a Locust start before any task is scheduled """
class WebsiteUser(HttpLocust):
task_set = UserBehavior
min_wait = 5000
max_wait = 9000
host="http://localhost"
==> Actual Result: Get error from the current command line:
"Traceback (most recent call last):
File "C:\Program Files (x86)\Python3.6.2\Scripts\locust-script.py", line 11, in
load_entry_point('locustio==0.7.5', 'console_scripts', 'locust')()
File "c:\program files (x86)\python3.6.2\lib\site-packages\pkg_resources_init_.py", line 565, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "c:\program files (x86)\python3.6.2\lib\site-packages\pkg_resources_init_.py", line 2631, in load_entry_point
return ep.load()
File "c:\program files (x86)\python3.6.2\lib\site-packages\pkg_resources_init_.py", line 2291, in load
return self.resolve()
File "c:\program files (x86)\python3.6.2\lib\site-packages\pkg_resources_init_.py", line 2297, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "c:\program files (x86)\python3.6.2\lib\site-packages\locust_init_.py", line 1, in
from core import HttpLocust, Locust, TaskSet, task
ModuleNotFoundError: No module named 'core'
"
Please help me via the case & Let me know if you has a other way to help me start it with the better result.
Many thanks,
The text was updated successfully, but these errors were encountered: