scripts icon indicating copy to clipboard operation
scripts copied to clipboard

脚本报错,几乎是每个脚本跑到最后都报这个,大佬看下

Open pizixi opened this issue 4 years ago • 2 comments

Exception ignored in: <function _ProactorBasePipeTransport.del at 0x00000201F9029A60> Traceback (most recent call last): File "C:\Python\Python38\lib\asyncio\proactor_events.py", line 116, in del Exception ignored in: Exception ignored in: <function _ProactorBasePipeTransport.del at 0x000001C486F19A60>Exception ignored in: Exception ignored in: <function _ProactorBasePipeTransport.del at 0x000001E56D6B9A60>Exception ignored in: Exception ignored in: <function _ProactorBasePipeTransport.del at 0x000001A039839A60> <function _ProactorBasePipeTransport.del at 0x00000241804C9A60>Exception ignored in: <function _ProactorBasePipeTransport.del at 0x000001CF2E2E9A60>self.close()<function _ProactorBasePipeTransport.del at 0x000001AAB34F9A60> Traceback (most recent call last):

<function _ProactorBasePipeTransport.del at 0x000002508C659A60>Traceback (most recent call last):

Traceback (most recent call last): File "C:\Python\Python38\lib\asyncio\proactor_events.py", line 116, in del Traceback (most recent call last):

File "C:\Python\Python38\lib\asyncio\proactor_events.py", line 116, in del Traceback (most recent call last): File "C:\Python\Python38\lib\asyncio\proactor_events.py", line 108, in close Traceback (most recent call last): File "C:\Python\Python38\lib\asyncio\proactor_events.py", line 116, in del File "C:\Python\Python38\lib\asyncio\proactor_events.py", line 116, in del Traceback (most recent call last): File "C:\Python\Python38\lib\asyncio\proactor_events.py", line 116, in del File "C:\Python\Python38\lib\asyncio\proactor_events.py", line 116, in del File "C:\Python\Python38\lib\asyncio\proactor_events.py", line 116, in del self.close() self.close()self._loop.call_soon(self._call_connection_lost, None)self.close()self.close() self.close()self.close()

self.close() File "C:\Python\Python38\lib\asyncio\proactor_events.py", line 108, in close

File "C:\Python\Python38\lib\asyncio\proactor_events.py", line 108, in close File "C:\Python\Python38\lib\asyncio\base_events.py", line 719, in call_soon File "C:\Python\Python38\lib\asyncio\proactor_events.py", line 108, in close File "C:\Python\Python38\lib\asyncio\proactor_events.py", line 108, in close

  File "C:\Python\Python38\lib\asyncio\proactor_events.py", line 108, in close

File "C:\Python\Python38\lib\asyncio\proactor_events.py", line 108, in close self._check_closed() File "C:\Python\Python38\lib\asyncio\proactor_events.py", line 108, in close self._loop.call_soon(self._call_connection_lost, None) self._loop.call_soon(self._call_connection_lost, None) self._loop.call_soon(self._call_connection_lost, None)

self._loop.call_soon(self._call_connection_lost, None)self._loop.call_soon(self._call_connection_lost, None)

File "C:\Python\Python38\lib\asyncio\base_events.py", line 508, in _check_closed self._loop.call_soon(self._call_connection_lost, None) File "C:\Python\Python38\lib\asyncio\base_events.py", line 719, in call_soon

self._loop.call_soon(self._call_connection_lost, None) File "C:\Python\Python38\lib\asyncio\base_events.py", line 719, in call_soon File "C:\Python\Python38\lib\asyncio\base_events.py", line 719, in call_soon File "C:\Python\Python38\lib\asyncio\base_events.py", line 719, in call_soon

  File "C:\Python\Python38\lib\asyncio\base_events.py", line 719, in call_soon

      File "C:\Python\Python38\lib\asyncio\base_events.py", line 719, in call_soon
raise RuntimeError('Event loop is closed')self._check_closed()

File "C:\Python\Python38\lib\asyncio\base_events.py", line 719, in call_soon self._check_closed()self._check_closed() self._check_closed() RuntimeError self._check_closed() self._check_closed() File "C:\Python\Python38\lib\asyncio\base_events.py", line 508, in _check_closed : self._check_closed() File "C:\Python\Python38\lib\asyncio\base_events.py", line 508, in _check_closed

File "C:\Python\Python38\lib\asyncio\base_events.py", line 508, in _check_closed Event loop is closed File "C:\Python\Python38\lib\asyncio\base_events.py", line 508, in _check_closed

File "C:\Python\Python38\lib\asyncio\base_events.py", line 508, in _check_closed File "C:\Python\Python38\lib\asyncio\base_events.py", line 508, in _check_closed

    raise RuntimeError('Event loop is closed')  File "C:\Python\Python38\lib\asyncio\base_events.py", line 508, in _check_closed
raise RuntimeError('Event loop is closed')    raise RuntimeError('Event loop is closed')raise RuntimeError('Event loop is closed')
raise RuntimeError('Event loop is closed')

RuntimeErrorraise RuntimeError('Event loop is closed')raise RuntimeError('Event loop is closed')RuntimeErrorRuntimeErrorRuntimeErrorRuntimeError:

: : : : Event loop is closedRuntimeErrorRuntimeErrorEvent loop is closedEvent loop is closedEvent loop is closedEvent loop is closed : :

Event loop is closedEvent loop is closedException ignored in:

<function _ProactorBasePipeTransport.del at 0x000001AAB34F9A60> Traceback (most recent call last): File "C:\Python\Python38\lib\asyncio\proactor_events.py", line 116, in del self.close() File "C:\Python\Python38\lib\asyncio\proactor_events.py", line 108, in close self._loop.call_soon(self._call_connection_lost, None) File "C:\Python\Python38\lib\asyncio\base_events.py", line 719, in call_soon self._check_closed() File "C:\Python\Python38\lib\asyncio\base_events.py", line 508, in _check_closed raise RuntimeError('Event loop is closed') RuntimeError: Event loop is closed

pizixi avatar Aug 01 '21 06:08 pizixi

Python only switched the default event loop to proactor from 3.8 onwards. https://docs.python.org/3/library/asyncio-policy.html#asyncio.DefaultEventLoopPolicy

ClassmateLin avatar Aug 01 '21 07:08 ClassmateLin

换到3.7试试

ClassmateLin avatar Aug 01 '21 07:08 ClassmateLin