我能';t在Pythonywhere for django webapp的bash控制台中运行蝗虫

我能';t在Pythonywhere for django webapp的bash控制台中运行蝗虫,django,pythonanywhere,locust,Django,Pythonanywhere,Locust,我已安装了locustio,但无法对其进行配置。这是错误的。我不知道我可以登录的端口。这给了我一个错误: [2020-03-15 08:29:22,509] blue-liveconsole4/ERROR/stderr: [2020-03-15 08:29:22,509] blue-liveconsole4/ERROR/stderr: File "/home/neso/.virtualenvs/django2/lib/python3.6/site-packages/psutil/__init_

我已安装了locustio,但无法对其进行配置。这是错误的。我不知道我可以登录的端口。这给了我一个错误:

[2020-03-15 08:29:22,509] blue-liveconsole4/ERROR/stderr: 
[2020-03-15 08:29:22,509] blue-liveconsole4/ERROR/stderr: File "/home/neso/.virtualenvs/django2/lib/python3.6/site-packages/psutil/__init__.py", line 386, in _init
raise NoSuchProcess(pid, None, msg)
[2020-03-15 08:29:22,509] blue-liveconsole4/ERROR/stderr: 
[2020-03-15 08:29:22,509] blue-liveconsole4/ERROR/stderr: psutil.NoSuchProcess: psutil.NoSuchProcess no 
process found with pid 6475
[2020-03-15 08:29:22,509] blue-liveconsole4/ERROR/stderr: 
[2020-03-15 08:29:22,509] blue-liveconsole4/ERROR/stderr: 2020-03-15T08:29:22Z
[2020-03-15 08:29:22,509] blue-liveconsole4/ERROR/stderr: 
[2020-03-15 08:29:22,509] blue-liveconsole4/ERROR/stderr: <Greenlet at 0x7f41eaff9148: <bound method 
LocustRunner.monitor_cpu of <locust.runners.LocalLocustRunner object at 0x7f41eaff2dd8>>> failed with 
NoSuchProcess

通过在您的帐户上启用新的Pythonywhere虚拟化(允许您的代码访问/proc),您将很容易解决所遇到的特定错误,但您将无法在Pythonywhere上使用web UI运行Occast,因为您无法从控制台运行web应用程序。看起来您需要在本地计算机上运行Occast。我如何启用虚拟机..我可以使用bashconsole结果不需要web ui,但我需要的是如何测试它要启用新的虚拟化系统,请向Pythonywhere支持发送请求。
from locust import HttpLocust, TaskSet, task, between



class UserBehaviour(TaskSet):
    def on_start(self):
    """ on_start is called when a Locust start before any task is scheduled """
    self.login()

def on_stop(self):
    """ on_stop is called when the TaskSet is stopping """
    self.logout()

def login(self):
    self.client.post("/login", {"username":"boy", "password":"testing321"})

def logout(self):
    self.client.post("/logout", {"username":"sourda", "password":"testing321"})

@task(1)
def index(self):
    self.client.get("/")


class WebsiteUser(HttpLocust):
    host = "http://127.0.0.1:8089"
    task_set = UserBehaviour
    wait_time = between(5.0, 9.0)