[Windows] using ray.init(), unknown error occurred when packaging the program to an exe using cx_Freeze #38405
Labels
bug
Something that is supposed to be working; but isn't
@external-author-action-required
Alternate tag for PRs where the author doesn't have labeling permission.
QS
Quantsight triage label
windows
What happened + What you expected to happen
This is the simple code I use for packaging. Running the exe after packaging results in an error
use_main.py
This code runs fine directly, but when it's packaged and executed as 'use_main.exe', an error occurs
Moreover, it causes my computer to become very sluggish as it keeps generating processes incessantly
What could be the cause of this issue?
event_GCS.log
Versions / Dependencies
Python 3.8.17 | packaged by conda-forge | (default, Jun 16 2023, 07:01:59) [MSC v.1929 64 bit (AMD64)] on win32
cx_Freeze==6.15.5
ray==2.6.2
Reproduction script
use_main.py
setup.py
run
python setup.py build
replace the
build/exe.win-amd64-3.8/lib/ray
folder with thesite-packages/ray
folder from the python environment you're using. If you encounter errors indicating that certain packages are missing, similarly copy them from the environment to 'build/exe.win-amd64-3.8/libthen run use_main.exe, an unexpected error occur
Issue Severity
Medium: It is a significant difficulty but I can work around it.
The text was updated successfully, but these errors were encountered: