GithubHelp home page GithubHelp logo

Comments (7)

marcelotduarte avatar marcelotduarte commented on August 11, 2024 1

@Daniel-I-Am I confirm the bug. I'll work on it.
@ntindle Can you check if #2435 is more related to your use case?

from cx_freeze.

marcelotduarte avatar marcelotduarte commented on August 11, 2024 1

Release 7.1.1 is out!
Documentation

from cx_freeze.

ntindle avatar ntindle commented on August 11, 2024
from multiprocessing import Process, freeze_support


def f():
    print("Hello from cx_Freeze")


if __name__ == "__main__":
    freeze_support()
    Process(target=f).start()

Potentially related broken case on macos without fastapi

from cx_freeze.

ntindle avatar ntindle commented on August 11, 2024

I think you're right that the issue you linked is more related

from cx_freeze.

marcelotduarte avatar marcelotduarte commented on August 11, 2024

@Daniel-I-Am I improved the hook for multiprocessing.
You can test the patch in the latest development build:
pip install --force --no-cache --pre --extra-index-url https://marcelotduarte.github.io/packages/ cx_Freeze
The provisional documentation: https://cx-freeze--2443.org.readthedocs.build/en/2443/faq.html#multiprocessing-support
The must create a hypercorn.py script with the additional freeze_support:

from hypercorn.__main__ import main
from multiprocessing import freeze_support

if __name__ == "__main__":
    freeze_support()
    sys.exit(main())

from cx_freeze.

Daniel-I-Am avatar Daniel-I-Am commented on August 11, 2024

I installed the development build and it looks like the problem is fixed now. I see the warning about requiring multiprocessing.freeze_support() to be called, but the application starts fine (as I'm running it in a linux environment).

I will have to check how to insert that call when using the Hypercorn package binary. But it seems Hypercorn is starting fine now. Thanks for the quick fix!

from cx_freeze.

marcelotduarte avatar marcelotduarte commented on August 11, 2024

I see the warning about requiring multiprocessing.freeze_support() to be called, but the application starts fine (as I'm running it in a linux environment).

Added a way to hide the message, check the provisional documentation:
https://cx-freeze--2443.org.readthedocs.build/en/2443/faq.html#multiprocessing-support

from cx_freeze.

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.