iojw / socialscan

Python library for accurately querying username and email usage on online platforms
Mozilla Public License 2.0
1.44k stars 186 forks source link

RuntimeError: Event loop is closed #2

Closed MatteoTomasini closed 5 years ago

MatteoTomasini commented 5 years ago

script completes but get get exception ignored in <function _ProactorBasePipeTransport.del at 0x0000026C701C83C0> with RuntimeError: Event loop is closed

iojw commented 5 years ago

Could you provide more details about the command executed and the output from the tool?

MatteoTomasini commented 5 years ago

Issue when run from command line as provided in usage examples and when importing library also as shown in documentation. Windows, Python 38

Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x000001FA2DAD21C0> Traceback (most recent call last): File "C:\Python38\lib\asyncio\proactor_events.py", line 95, in __del__ self.close() File "C:\Python38\lib\asyncio\proactor_events.py", line 87, in close self._loop.call_soon(self._call_connection_lost, None) File "C:\Python38\lib\asyncio\base_events.py", line 692, in call_soon self._check_closed() File "C:\Python38\lib\asyncio\base_events.py", line 485, in _check_closed raise RuntimeError('Event loop is closed') RuntimeError: Event loop is closed Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x000001FA2DAD21C0> Traceback (most recent call last): File "C:\Python38\lib\asyncio\proactor_events.py", line 95, in __del__ self.close() File "C:\Python38\lib\asyncio\proactor_events.py", line 87, in close self._loop.call_soon(self._call_connection_lost, None) File "C:\Python38\lib\asyncio\base_events.py", line 692, in call_soon self._check_closed() File "C:\Python38\lib\asyncio\base_events.py", line 485, in _check_closed raise RuntimeError('Event loop is closed') RuntimeError: Event loop is closed Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x000001FA2DAD21C0> Traceback (most recent call last): File "C:\Python38\lib\asyncio\proactor_events.py", line 95, in __del__ self.close() File "C:\Python38\lib\asyncio\proactor_events.py", line 87, in close self._loop.call_soon(self._call_connection_lost, None) File "C:\Python38\lib\asyncio\base_events.py", line 692, in call_soon self._check_closed() File "C:\Python38\lib\asyncio\base_events.py", line 485, in _check_closed raise RuntimeError('Event loop is closed') RuntimeError: Event loop is closed Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x000001FA2DAD21C0> Traceback (most recent call last): File "C:\Python38\lib\asyncio\proactor_events.py", line 95, in __del__ self.close() File "C:\Python38\lib\asyncio\proactor_events.py", line 87, in close self._loop.call_soon(self._call_connection_lost, None) File "C:\Python38\lib\asyncio\base_events.py", line 692, in call_soon self._check_closed() File "C:\Python38\lib\asyncio\base_events.py", line 485, in _check_closed raise RuntimeError('Event loop is closed') RuntimeError: Event loop is closed

iojw commented 5 years ago

Hi, you're using a pre-release version of Python (3.8), and this looks to be an issue with the changes in the async event loop.

In the meantime, since there are likely to be many more changes to 3.8, I suggest you use the stable Python 3.7 to run the script instead.

MatteoTomasini commented 5 years ago

no issues with 3.7, thanks and great job with this library!

leszekhanusz commented 3 years ago

Looks to be this bug