Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NotImplementedError: #133

Open
Vergil1000x opened this issue Jul 5, 2023 · 2 comments
Open

NotImplementedError: #133

Vergil1000x opened this issue Jul 5, 2023 · 2 comments

Comments

@Vergil1000x
Copy link

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

@AstolfoBestGirl1
Copy link

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

@ZhymabekRoman
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants