ProxyBroker icon indicating copy to clipboard operation
ProxyBroker copied to clipboard

DeprecationWarning: The loop argument is deprecated since Python 3.8

Open crazyreverser opened this issue 4 years ago • 4 comments

$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```

crazyreverser avatar Dec 29 '20 13:12 crazyreverser

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

vesper8 avatar Mar 14 '21 12:03 vesper8

Python 3.9 The same errors

Bazili028 avatar Feb 06 '22 07:02 Bazili028

same on 3.8.10

PSA: i think this repo isn't maintained anymore

taewookim avatar Mar 11 '22 04:03 taewookim

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

ResistOrRegret avatar Apr 18 '22 23:04 ResistOrRegret

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

  • https://github.com/bluet/proxybroker2
  • https://github.com/constverum/ProxyBroker/pull/161

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

bluet avatar Aug 20 '22 17:08 bluet