为了账号安全,请及时绑定邮箱和手机立即绑定

Locust.io:运行时警告:greenlet.greenlet 大小已更改,可能表示二进制不兼容

Locust.io:运行时警告:greenlet.greenlet 大小已更改,可能表示二进制不兼容

PHP
GCT1015 2023-11-09 20:19:45
这很烦人,所以我花了 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 回答

?
BIG阳

TA贡献1859条经验 获得超6个赞

Greenlet 运行时错误和在 docker 中部署的应用程序不断启动所有工作人员

尝试pip install --upgrade geventpip install greenlet==0.14.6


查看完整回答
反对 回复 2023-11-09
?
偶然的你

TA贡献1841条经验 获得超3个赞

尝试pip install greenlet==0.4.16



查看完整回答
反对 回复 2023-11-09
  • 2 回答
  • 0 关注
  • 190 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信