Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In macos. Packaged with [Chinese name.app] cannot run. When it was running, it started and it just exited. #2212

Closed
fushun1990 opened this issue Jan 22, 2024 · 9 comments

Comments

@fushun1990
Copy link

In macos. Packaged with [Chinese name.app] cannot run. When it was running, it started and it just exited.

在macos中。使用【中文名称.app】打包的不能运行。运行的时候时候启动就直接退出了。

Screenshots
If applicable, add screenshots to help explain your problem.

https://github.com/marcelotduarte/cx_Freeze/assets/10917744/0a3c2e37-707a-4009-b99a-8b1af19d7ab5
image
image

Desktop (please complete the following information):
macOS Sonoma 版本14.0
Python 3.10.13
cx-Freeze 6.15.12
PyQt5 5.15.10
PyQt5-Qt5 5.15.12
PyQt5-sip 12.13.0

Additional context

This is sample code from sample/pyqt5

使用的就是sample/pyqt5的示例代码

@marcelotduarte
Copy link
Owner

Please check if this issue is duplicate of #1228

@fushun1990
Copy link
Author

Please check if this issue is duplicate of #1228
image

No, I use open Hello. The app works
不, 我使用 open 你好.app 可以正常运行

@fushun1990
Copy link
Author

@marcelotduarte

@marcelotduarte
Copy link
Owner

marcelotduarte commented Jan 31, 2024

Let me see if I got it. If you use sample/pyqt5 without modifications, you compile it and can run it. But if you change and use Chinese characters in the name or bundle_name, then you can't execute it?

EDIT:
https://github.com/marcelotduarte/cx_Freeze/blob/main/cx_Freeze/hooks/pyqt5/_append_to_init.py#L10

@fushun1990
Copy link
Author

yes

@fushun1990
Copy link
Author

我的需求是,将应用打包为中文名称的app应用。并不一定需要将hello.py文件修改为您好.py

My requirement is to package the application as an app with a Chinese name. It's not necessary to change 'hello.py' to '你好.py'

@fushun1990
Copy link
Author

@marcelotduarte

@marcelotduarte
Copy link
Owner

Recently when implementing a patch, I had to deal with the utf8 name situation. See if it resolved it for you.
I even tested it with Chinese characters here.

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

Please give me feedback.

@marcelotduarte
Copy link
Owner

Release 7.1.0 is out!
Documentation

@fushun1990 Can you test and give me feedback?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants