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
Google App Engine / Pandas Request Failing: #19
Comments
I've posted a stack q here |
Yeah stack exchange might have more answers for you, the problem may just be that something doesn't work in multiple processes. Have you tried this code without the decorators? If it doesn't work even without the decorators you should debug that first and then try adding them back in. If it continues to not work, we're hoping to add support for Python threads. Running this in separate threads rather than processes may fix your issue. Hopefully we'll have this done by the end of the week, so hold tight. Thanks for bring this up, and let us know if stack exchange has any insight. |
Thanks Alex. Yeah it runs fine without decorators! I remember trying to do something similar with Pooling before and ran into a similar error with the locking of a file in Would be cool to have threading! But not sure if that would help as it needs to be async io for any sort of speed benefit on something like the above right? |
It doesn't need to be explicit Python 3 async io, I think a lot of IO operations will release the GIL on their own. HTTP requests will probably fall into this category. So with threading you may not be able to execute any computations in parallel, but at least your network requests can all happen at the same time and you'll see some speedup there. Ideally when we support these different concurrent backends, you'll be able to have these network operations happen in threads, and maybe some computation on the results afterwards happen in processes. |
The latest commit contains a change that allows you to use from multiprocessing.pool import ThreadPool
threaded = concurrent.custom(ThreadPool) Then just replace your use of |
I'll check it out some time this week when I have time, thanks Alex! |
I think I'm going to close this for now, even if using threads doesn't fix it I'm not sure there's much that I could do in Do let me know if anything changes though, and thanks again for bringing this up! |
Hi guys,
I'm on Windows so forgive me in advance if that's the cause of any problems I'm also a beginner when it comes to async io and so I might just be misunderstanding something.
I'm making a request to the google app-engine (google analytics) using the pandas ga module, which uses OAuth to communicate with the analytics portion of the app engine.
Here's the code I had written:
And the error that was being raised:
Thanks!
Matt
The text was updated successfully, but these errors were encountered: