-
Notifications
You must be signed in to change notification settings - Fork 49
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
Initializing AiopgConnector fails on Windows with Python 3.8 #286
Comments
Hello, thank you for your issue! I'm definitely interested in making Procrastinate available to a broader set of user! That being said, I don't have a Windows machine to test. We can work on it on our end, but would you be interested in a code / docs contribution towards this goal? Our path to supporting Windows could be:
There are things that might already be failing on Windows:
So here we are :) We will definitely need a bit of help to kickstart Windows compat, and maybe someone to occasionnaly ping if the Windows build doesn't run. |
Happy to help! If you want to assign issues to me, feel free! |
Well thanks! I've assigned you this one then. Feel free to give a go to your suggested changes, and if it makes procrastinate work for you, I'll be glad to merge. I'll create the other tickets :) Note: let it be said explicitly: I appreciate your offer a lot, but if, for any reason, you prefer not to commit time to this for now, it's perfectly ok to say so, and it's even better if you can tell us, so that someone else can take the ticket :) Have fun, good luck 👍 |
I've created a tag "Linked to: Windows". This way, we'll be able to track tickets more easily if they need someone familiar with Windows environments to take care of |
Just a note. I haven't forgotten about this. I discovered the bug while working on a client project. I wrapped up the project on Friday and am now on vacation. I intend to revisit this when I return next week. |
Nice :) It's always reassuring to have news, but it's perfectly ok for you to take all the time you need :) This is voluntary work, in the end. Wishing you all the best for your vacations 🏄 🌴 and stay safe :) |
Just so you know: the CI is now running with GH Actions, so we can now check with Windows (and Mac). It's not setup yet but feel free :) |
So, you also can hotfix it in asyncio package replace default event loop by change line in windows_events.py |
Good note, I have tried to tackle this twice and gotten stymied on setup for Windows. I have also thought about writing a setup script for Windows as a yak shave. |
Is there any update on Windows support? |
@wlievens Would you be interested in giving it a go ? |
This issue seems interesting for me. I'll see what I can do. |
Good idea. I'll create an official issue for windows support, so this issue can be focused on the original problem |
Not an issue with Procrastinate, but with the
aiopg
package, but there is a way to fix it in this package.This issue gives more context on the problem as the
tornado
package has the same bug: tornadoweb/tornado#2751In short, loop's add_reader() now "not implemented" by default on windows and asyncio platform uses it. This is probably related to this issue too: #126.
As a Windows user on Python 3.8, when I run the tutorial from the quickstart, I get:
What has worked for me is adding
To the head of my file. While
aiopg
sorts out this issue on their end, it may be worth adding the snippet to this package. But I could also see how that could be considered "monkey patching". If so, it may be worth noting the quirk in the installation section of the docs.Thanks!
The text was updated successfully, but these errors were encountered: