Python子线程调用周立功can通讯包报错,报错如下。求解答

Exception ignored in: <module 'threading' from 'C:\Users\tangjiacheng\AppData\Local\Programs\Python\Python36\lib\threading.py'>
Traceback (most recent call last):
File "C:\Users\tangjiacheng\AppData\Local\Programs\Python\Python36\lib\threading.py", line 1288, in _shutdown
assert tlock is not None
AssertionError:


def _shutdown():
    # Obscure:  other threads may be waiting to join _main_thread.  That's
    # dubious, but some code does it.  We can't wait for C code to release
    # the main thread's tstate_lock - that won't happen until the interpreter
    # is nearly dead.  So we release it here.  Note that just calling _stop()
    # isn't enough:  other threads may already be waiting on _tstate_lock.
    tlock = _main_thread._tstate_lock
    # The main thread isn't finished yet, so its thread state lock can't have
    # been released.
    assert tlock is not None  #######此处为1288行
    assert tlock.locked()
    tlock.release()
    _main_thread._stop()
    t = _pickSomeNonDaemonThread()
    while t:
        t.join()
        t = _pickSomeNonDaemonThread()

你把threading.py, line 1288,行附近代码贴出来才好分析问题啊,周立功的包是通过dll提供的吗?如果是的话请参考我博客:https://blog.csdn.net/cyjbj/article/details/126996793?spm=1001.2014.3001.5502

说明tlock是None