# Something wrong when I compile a py file to excutable with ray function

**URL:** https://discuss.ray.io/t/something-wrong-when-i-compile-a-py-file-to-excutable-with-ray-function/11867
**Category:** Kubernetes
**Created:** [August 20, 2023, 4:51pm UTC](https://discuss.ray.io/t/something-wrong-when-i-compile-a-py-file-to-excutable-with-ray-function/11867 "2023-08-20T16:51:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Hangjun\_Ji](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/hangjun_ji/32/4954_2.png) [@Hangjun\_Ji](https://discuss.ray.io/u/Hangjun_Ji)
#### Post date: [August 20, 2023, 4:51pm UTC](https://discuss.ray.io/t/something-wrong-when-i-compile-a-py-file-to-excutable-with-ray-function/11867/1 "2023-08-20T16:51:37Z")

</div>

When compiling a Python file to an executable file on Linux and encountering the error message `Failed to register worker` and `No such file or directory`, it is likely due to the fact that PyInstaller is not able to correctly bundle the dependencies required by Ray。  
I encountered an issue while compiling a Python file to an executable file on Linux. The error message I received is:2023-08-17 18:32:06,914 INFO worker.py:1621 – Started a local Ray instance. [2023-08-17 18:32:36,968 E 19173 19173] core\_worker.cc:201: Failed to register worker 01000000ffffffffffffffffffffffffffffffffffffffffffffffff to Raylet. IOError: [RayletClient] Unable to register worker with raylet. No such file or directory。  
I suspect that the issue is related to the compilation process using PyInstaller. I want to distribute my application on GitHub and would like to translate the above text into English to create a new issue. Thank you for your help!
