Giter Club home page Giter Club logo

Comments (3)

ACEnglish avatar ACEnglish commented on June 25, 2024 1

Functional tests off of develop now pass on mac. If you're still seeing a problem, please re-open this ticket.

These changes will be present in v4.1. However It'll be some time before that release is cut as there's at least two more features to add and a lot of user testing happening for a publication tied to the next version.

from truvari.

ACEnglish avatar ACEnglish commented on June 25, 2024

Thank you for reporting this. I'm sure it wasn't easy to solve. I was able to recreate the issue and confirm that having multiprocessing.set_start_method('fork') before with multiprocessing.Pool.. calls can get tests to pass.

However, I don't think changing the set_start_method is a viable solution. The python docs state:

Changed in version 3.8: On macOS, the spawn start method is now the default. The fork start method should be considered unsafe as it can lead to crashes of the subprocess. See bpo-33725.

Possible solutions:

  • Make it clear that some truvari anno commands will fail on macOS
  • Make it clear that truvari is designed on/for unix and recommend docker (which is how I run truvari tests on my mac).
  • Change design pattern to not depending on 'fork' sharing semantics. Specifically it's the global namespace.

And as I'm digging deeper into bpo-33725 and the issues it references, I'm thinking changing the code might need to be the solution as this non-explicit sharing may become not possible in a future python version.. maybe.

from truvari.

natsukium avatar natsukium commented on June 25, 2024

Thanks for your response.

However, I don't think changing the set_start_method is a viable solution.

Yes, I don't think using set_start_method is a good way to fix it.

and thank you for starting the fix as quickly.
Let me know if I can help in any way.

from truvari.

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.