-
I've encountered a problem, I tried to build application with library pypinyin and it fails to start due to missing some .json file, it looks like it fails to properly import/hook this library and I'm confused that usual methods of solving (like adding hidden import or copy_metadata) didnt solve the issue for me. I don't know is this bug or maybe I need to add some additional code in .spec file
I even created a test project with only this library (and two lines of code) and it still fails to run/start in build properly.
The .spec file config
Upd: I found one possible solution with copying the pypinyin library from site-packages into build foldere (_internal), but I think its the wrong way of handling the problem, I'd like to see some solution with a .spec file |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Okay after long search, using collect_data_files solved my issue. Just add this to the spec file or add command --collect-data to pyinstaller command
|
Beta Was this translation helpful? Give feedback.
Okay after long search, using collect_data_files solved my issue.
Just add this to the spec file or add command --collect-data to pyinstaller command