constverum / ProxyBroker

Proxy [Finder | Checker | Server]. HTTP(S) & SOCKS :performing_arts:
http://proxybroker.readthedocs.io
Apache License 2.0
3.83k stars 1.08k forks source link

DeprecationWarning: The loop argument is deprecated since Python 3.8 #179

Closed crazyreverser closed 2 years ago

crazyreverser commented 3 years ago

$proxybroker find --types https --lvl High -l 10
/home/user/.local/lib/python3.9/site-packages/proxybroker/cli.py:380: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
  proxies = asyncio.Queue(loop=loop)
/usr/lib/python3.9/asyncio/queues.py:48: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
  self._finished = locks.Event(loop=loop)
/home/user/.local/lib/python3.9/site-packages/proxybroker/api.py:97: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
  self._on_check = asyncio.Queue(maxsize=max_conn, loop=self._loop)
/usr/lib/python3/dist-packages/aiohttp/connector.py:964: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
  hosts = await asyncio.shield(self._resolve_host(
/usr/lib/python3/dist-packages/aiohttp/locks.py:21: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
  self._event = asyncio.Event(loop=loop)
/usr/lib/python3.9/asyncio/trsock.py:20: DeprecationWarning: Using send() method on sockets returned from get_extra_info('socket') will be prohibited in asyncio 3.9. Please report your use case to bugs.python.org.
  warnings.warn(
DeprecationWarning: Enable tracemalloc to get the object allocation traceback
/usr/lib/python3.9/asyncio/trsock.py:20: DeprecationWarning: Using recv() method on sockets returned from get_extra_info('socket') will be prohibited in asyncio 3.9. Please report your use case to bugs.python.org.
  warnings.warn(
DeprecationWarning: Enable tracemalloc to get the object allocation traceback
/usr/lib/python3.9/asyncio/trsock.py:20: DeprecationWarning: Using close() method on sockets returned from get_extra_info('socket') will be prohibited in asyncio 3.9. Please report your use case to bugs.python.org.
  warnings.warn(
DeprecationWarning: Enable tracemalloc to get the object allocation traceback

<Proxy RO 0.11s [HTTPS] 84.247.51.123:3128>
proxies*9```
vesper8 commented 3 years ago

I was also getting some other errors on Python 3.8. It would still collect proxies but it would never finish and always crash. I reverted to using Python 3.7 and all warnings/errors gone

Bazili028 commented 2 years ago

Python 3.9 The same errors

taewookim commented 2 years ago

same on 3.8.10

PSA: i think this repo isn't maintained anymore

ResistOrRegret commented 2 years ago

I got this as well. I agree with taewookim. This repo doesn't appear to be maintained.

bluet commented 2 years ago

As this project is not maintained by the original developer, we've forked ProxyBroker and continued maintaining the proxybroker2 project since 2020.

If anyone's interested, please join. We need more volunteers. :-)