gpt4 book ai didi

Python - 无法启动新线程

转载 作者:行者123 更新时间:2023-11-28 19:16:04 27 4
gpt4 key购买 nike

我正在我的 Asus AC68 盒子中运行 python 2.7.10 脚本。我只是从我的脚本中调用 speedtest-cli.py(speedtest.net py 脚本)。

它在我重新启动之前工作正常,现在每次运行它时都会出现此错误:

    Testing download speed.......Exception in thread Thread-1:
Traceback (most recent call last):
File "/opt/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/opt/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/jffs/scripts/LaMetric/speedtestcli.py", line 268, in producer
thread.start()
File "/opt/lib/python2.7/threading.py", line 745, in start
_start_new_thread(self.__bootstrap, ())
error: can't start new thread

需要说明的是,我的华硕运行的是 Merlin,它是 Asuswrt 的增强版——所有最新的华硕路由器都使用该固件。

代码可以在这里找到:https://github.com/sivel/speedtest-cli

最佳答案

关于 ulimit(感谢 Google)和设置的一些测试

ulimit -s  256

解决了...

任何人都可以确认可能有任何副作用吗?

关于Python - 无法启动新线程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33318304/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com