skywind3000 / skywind3000/PyStand

Qt5 中文路径处理问题

Open
#58 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.2k
Forks
146
PR merge metrics
No merged PRs in 30d

Description

在使用 Pystand 打包后,如果目录中出现中文,会出现无法加载插件的情况,如下:
image

这应该不是 Qt 的问题,在不打包的情况下,是能够正常启动,或者,可以通过将 \lib\PyQt5\Qt5\plugins 中的 \platforms 文件夹移动到 exe 的平级目录中,那么此时在中文路径下也没问题了。请问如何修复该问题。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with a packed Pystand application whose directory contains Chinese characters, then compare it with the unpacked case and with lib\PyQt5\Qt5\plugins\platforms moved beside the executable. Trace how the packaged application locates the Qt platforms plugin; done means the plugin loads from the packaged layout under a Chinese path without relocation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.