![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
遇到的各种bug
文章平均质量分 75
不吃茄子啦
这个作者很懒,什么都没留下…
展开
-
Windows和Linux的shell脚本报错:no such file or directory,command not found
问题运行脚本时明明有文件,提示找不到文件,路径不存在standard_init_linux.go:228: exec user process caused: no such file or directorycommand not found原因Windows和Linux下文件换行符不同解决办法Linux使用docs2unix工具将Windows下的换行符转换成Linux下换行符原理基本原理Linux和Windows文本文件的行结束标志不同。在Linux中,文本文件用"/n"表示回车换原创 2021-07-31 15:43:28 · 3544 阅读 · 0 评论 -
APScheduler Execution of job “***“ skipped: maximum number of running instances reached (1)
错误原因有错误提示所说,因为超过了最多实例个数,APScheduler的默认最大实例个数为1,导致之后任务调用阻塞,无法进行执行。解决办法提高代码效率,缩短代码运行时间。延长定时任务间隔时间。如将3秒改为10秒。增加最大的实例个数,scheduler.add_job(***, max_instances=3)解决顺序应当由1到3。...原创 2020-10-13 10:49:04 · 3501 阅读 · 0 评论 -
Effectinve Python的59个有效方法中第38条使用Lock防止数据竞争中运行错误的问题
在代码运行中出现错误的问题,源代码如下:代码为书中样例代码,但是在运行时候并没有出现将value锁定的情况。暂且记录下来,简单找了下没有找到答案,先记录下等日后再进行寻找。class Counter(object): def __init__(self): self.count = 0 def increment(self, offset): ...原创 2020-04-26 09:28:46 · 162 阅读 · 2 评论 -
AttributeError: type object 'Callable' has no attribute '_abc_registry'
Python升级到3.7后会遇到题问题pip uninstall typing原创 2019-07-22 18:38:51 · 4613 阅读 · 1 评论