-
-
Notifications
You must be signed in to change notification settings - Fork 114
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 on Windows Python 3.8+ #113
Comments
Didn't mean to close the issue. Related: |
running into same problem. Any solution yet? |
I found a solution to this. The issue is relating to aiodns not really being maintained anymore. The last time the source code was updated was 2 years ago. I believe the current solution to this is to remove aiodns and replace it with dnspython A library which is kept more up to date. Hopefully I will be able to make a PR fixing this issue |
Here's the PR! #138.⚡ Sweep Free Trial: I used GPT-4 to create this ticket. You have 4 GPT-4 tickets left for the month and 1 for the day. For more GPT-4 tickets, visit our payment portal. To retrigger Sweep edit the issue.
Step 1: 🔍 Code SearchI found the following snippets in your repository. I will now analyze these snippets and come up with a plan. Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description.proxybroker2/proxybroker/__init__.py Lines 1 to 45 in cadfc4c
proxybroker2/proxybroker/negotiators.py Lines 1 to 90 in cadfc4c
proxybroker2/proxybroker/api.py Lines 31 to 147 in cadfc4c
Summaries of links found in the content: https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.loop.add_reader: The page is the documentation for the Event Loop in Python's asyncio library. It provides information on how to work with the event loop, including methods for running and stopping the loop, scheduling callbacks, creating futures and tasks, opening network connections, creating network servers, transferring files, and more. The page also includes examples of how to use the event loop, such as scheduling callbacks with In relation to the problem mentioned by the user, the page does not provide a direct solution. However, it does mention that asyncio ships with two different event loop implementations: Additionally, the page provides information on how to set the event loop policy using The code snippet suggested by some people to fix the issue involves setting the event loop policy to Overall, the page provides a comprehensive overview of the event loop in asyncio and includes examples that may be helpful in understanding and solving the problem. https://docs.python.org/3/library/asyncio-platforms.html#asyncio-platform-support: The page titled "Platform Support" in the Python 3.11.4 documentation discusses the platform-specific differences and limitations of the asyncio module. It mentions that the asyncio module is designed to be portable, but some platforms have subtle differences and limitations due to their underlying architecture and capabilities. The page provides information on platform support for all platforms, Windows, and macOS. It states that on all platforms, the methods For Windows, it mentions that the Regarding macOS, it states that modern macOS versions are fully supported. However, on macOS versions 10.6, 10.7, and 10.8, the default event loop uses In summary, the page provides information on the platform-specific differences and limitations of the asyncio module, including details about support on all platforms, Windows, and macOS. It does not specifically address the issue mentioned by the user, but it may provide some insights into the problem. Additionally, the page does not include the suggested code snippet to fix the issue. Step 2: 🧐 Snippet AnalysisFrom looking through the relevant snippets, I decided to make the following modifications:
Step 3: 📝 PlanningI have created a plan for writing the pull request. I am now working my plan and coding the required changes to address this issue. Here is the planned pull request: Fix NotImplementedError on Windows Python 3.8+
Step 4: ⌨️ Coding
Step 5: 🔁 Code ReviewHere are my self-reviews of my changes at Here is the 1st review
I finished incorporating these changes. To recreate the pull request edit the issue title or description. |
@bluet The issue doesn't seem fixed with #138 at all. The exception isn't raised anymore, but the whole program seems to be doing absolutely nothing after this change - it just hangs doing literally nothing. |
@anon88391 the fix was based on your suggestion. |
Seems like aiodns' back in the game |
yes, I updated the pull request just to update aiodns and aiohttp dependencies. just need to fix a unit test that broke |
@ziloka I just fixed the error in the unit test and dumped dependencies. Not sure about windows support. |
Running proxybroker from CLI has been broken for me on any Python version >= 3.8
Apparently, Python 3.8 introduced a backwards-incompatible change to asyncio.
https://docs.python.org/3/library/asyncio-platforms.html#asyncio-platform-support
https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.loop.add_reader
Some people suggested adding the following code to fix it:
Checklist
proxybroker/cli.py
The text was updated successfully, but these errors were encountered: