bluet / proxybroker2

The New (auto rotate) Proxy [Finder | Checker | Server]. HTTP(S) & SOCKS :performing_arts:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NotImplementedError:

Vergil1000x opened this issue · comments

For the given code:

import asyncio
from proxybroker import Broker

async def show(proxies):
while True:
proxy = await proxies.get()
if proxy is None:
break
print("Found proxy: %s" % proxy)

proxies = asyncio.Queue()
broker = Broker(proxies)
tasks = asyncio.gather(broker.find(types=["HTTP", "HTTPS"], limit=10), show(proxies))

loop = asyncio.get_event_loop()
loop.run_until_complete(tasks)

I am getting this 10 times:

Exception ignored from cffi callback <function sock_state_cb at 0x000001A7DF3798A0>:
Traceback (most recent call last):
File "C:\Users\koush\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\pycares_init
.py", line 99, in sock_state_cb
sock_state_cb(socket_fd, readable, writable)
File "C:\Users\koush\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\aiodns_init
.py", line 111, in _sock_state_cb
self.loop.add_reader(fd, self._handle_event, fd, READ)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1264.0_x64__qbz5n2kfra8p0\Lib\asyncio\events.py", line 530, in add_reader
raise NotImplementedError
NotImplementedError:

how to fix bro? also no proxy is showing
Screenshot 2023-07-05 122318

were you able to solve this problem, if so, how?

Doesn't reproducible error, no problem on Linux for now