这很烦人,所以我花了 15 个小时试图找出为什么 locust.io 不会为我启动。在我的 mac 机器上,我试图获得一个运行 locust 的示例,以便我可以开始对该包的探索。我使用 pip 在虚拟环境(python v3.7.7)中安装了 locust:pip install locust所有软件包均已成功安装。这是示例代码:from locust import HttpLocust,TaskSetclass MyTasks(TaskSet):def index(self):self.client.get("https://refinery.nypl.org/api/nypl/ndo/v0.1/content/alerts?filter[scope]=all")class WebsiteUser(HttpLocust):task_set = MyTasks我运行 locust -f mytestloc.py 后出现此错误:/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap.py:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObjectreturn f(*args, **kwds)/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap.py:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObjectreturn f(*args, **kwds)/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap.py:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObjectreturn f(*args, **kwds)/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap.py:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObjectreturn f(*args, **kwds)/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap.py:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObjectreturn f(*args, **kwds)/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap.py:219: RuntimeWarning: greenlet.greenlet size changed, may indicate binary incompatibility. Expected 144 from C header, got 152 from PyObjectreturn f(*args, **kwds)
- 2 回答
- 0 关注
- 190 浏览
添加回答
举报
0/150
提交
取消