proxybroker2 icon indicating copy to clipboard operation
proxybroker2 copied to clipboard

NotImplementedError:

Open Vergil1000x opened this issue 1 year ago • 2 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

Vergil1000x avatar Jul 05 '23 06:07 Vergil1000x

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

AstolfoBestGirl1 avatar Sep 10 '23 20:09 AstolfoBestGirl1

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

ZhymabekRoman avatar Dec 18 '23 15:12 ZhymabekRoman