python 项目报错 Fatal Python error: _enter_buffered_busy: could not acquire lock for <_io.BufferedWriter name='<stdout>'>

发布时间 2023-05-17 10:43:40作者: Luck-pig

Fatal Python error: _enter_buffered_busy: could not acquire lock for <_io.BufferedWriter name=''> at interpreter shutdown, possibly due to daemon threads
Python runtime state: finalizing (tstate=0x00005654c4008a40)

Current thread 0x00007fc18c8c4740 (most recent call first):

Extension modules: bson._cbson, pymongo._cmessage, _cffi_backend, MySQLdb._mysql (total: 4)

报错如上,初步怀疑是有个print stdout问题,还在分析