Comments (10)
In user code, it can be solved by adding
if sys.platform == 'win32':
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
Maybe it should be part of the example?
from aiodns.
Okay, thanks. By the way, I made an improvement to let other users know about this issue, and merge it if you think it's good. #105
from aiodns.
Having the same problem on windows. So the workaround would be to run this under WSL.
from aiodns.
Same problem in CPython3.9 on windows10.
from aiodns.
Exactly the same problem on Python 3.9.4 on Windows 10 using the example program. Any suggestions?
from aiodns.
I'm having the same issue.
from aiodns.
Still got problem on Windows 10 with python3.9.5 and Windows 11 with python 3.10
from aiodns.
c-ares, what is used underneath, requires a readyness style API, which is not supported on Windows unless you are using a SelectorEventLoop implementation: https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.SelectorEventLoop
from aiodns.
Oh that's nice! When did they add to Python?
Happy to take a PR if you're up for it!
from aiodns.
WindowsSelectorEventLoopPolicy
was added in 3.7
In 3.8 the default event loop for windows was changed to ProactorEventLoop
. At which point this became necessary.
Seems this was already discussed in #78
from aiodns.
Related Issues (20)
- Error when retrieving binary data in TXT records HOT 8
- test_query_bad_chars started failing
- I was wondering if it would be worth creating more robust error responses when a query fails? HOT 1
- Support for non-standard ports? HOT 2
- [drive-by feedback] Update the GHA workflow for publishing to PyPI HOT 2
- Queries intermittently freezing asyncio event loop HOT 3
- Convert Type Annotations to Py3 syntax HOT 4
- NotImplementedError on Win10 x64 OS HOT 5
- Support for DNSSEC HOT 3
- Issue a release please HOT 8
- [2.0.0] will rely on pip typing HOT 4
- aiodns.error.DNSError: (12, 'Timeout while contacting DNS servers')
- Return fully qualified name when querying domain HOT 1
- Python CFFI Error HOT 1
- Use PEP-0561 to indicate to library users that type hints are available HOT 1
- Python 3.10 test failure: ERROR: test_future_cancel: TypeError: sleep() got an unexpected keyword argument 'loop' HOT 4
- AttributeError: module 'pycares' has no attribute 'QUERY_TYPE_CAA' HOT 3
- Import error in termux HOT 4
- Retry behavior HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aiodns.