Coder Social home page Coder Social logo

Comments (4)

ross avatar ross commented on July 19, 2024

For the most part ProcessPoolExecutor is caveat emptor as passing python objects around between processes can be tricky and a lot of times the stuff that gets run into can't be addressed by requests_futures (as it's actually problems with underlying libraries.)

My only thought would be to add some debugging prints in get_translation to see if it's even getting called. It's possible requests session hooks don't make it over into the other process correctly.

from requests-futures.

nickryand avatar nickryand commented on July 19, 2024

I think I have tracked this down to behavior with pickle. Pickle calls a couple of methods dealing with getting and setting state during the marshal and unmarshal process. My guess is requests Response object does not handle that use case.

I'll dig more. I don't know if there is a good fix for this if you are trying to keep support for older versions of python.

from requests-futures.

ross avatar ross commented on July 19, 2024

Ah, yeah that's exactly the sort of problem that's been run into a number of times over the years. It'd require requests fixing it as I don't really have the ability to make its objects pickle-able w/o some really nasty monkey patching that I wouldn't even consider doing.

from requests-futures.

github-actions avatar github-actions commented on July 19, 2024

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.

from requests-futures.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.