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

无法通过pyinstaller进行打包 #151

Open
songzhishuo opened this issue Oct 18, 2024 · 1 comment
Open

无法通过pyinstaller进行打包 #151

songzhishuo opened this issue Oct 18, 2024 · 1 comment

Comments

@songzhishuo
Copy link

打包运行后提示:
File "Gallery_for_siui\start.py", line 5, in
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
File "siui_init
.py", line 4, in
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
File "siui\components_init
.py", line 1, in
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
File "siui\components\option_card_init
.py", line 1, in
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
File "siui\components\option_card\option_card.py", line 3, in
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
File "siui\components\option_card\abstracts_init
.py", line 1, in
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
File "siui\components\option_card\abstracts\option_card.py", line 1, in
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
File "siui\components\widgets_init
.py", line 1, in
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
File "siui\components\widgets\abstracts_init
.py", line 2, in
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
File "siui\components\widgets\abstracts\button.py", line 7, in
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
File "siui\components\widgets\abstracts\widget.py", line 7, in
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
File "siui\core_init
.py", line 14, in
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
File "siui\core\globals.py", line 9, in
File "siui\core\globals.py", line 24, in SiliconUIGlobal
File "siui\gui\icons\parser.py", line 17, in init
File "siui\gui\icons\parser.py", line 23, in reload_internals
FileNotFoundError: [WinError 3] 系统找不到指定的路径。: 'D:\study\Gallery_for_siui\dist\start\_internal\siui\gui\icons\packages'
[PYI-20516:ERROR] Failed to execute script 'start' due to unhandled exception!

@songzhishuo
Copy link
Author

直接编译目前master分支上的代码,通过pyinstaller 打包后提示如下:
Traceback (most recent call last):
File "Gallery for siui\start.py", line 6, in
ModuleNotFoundError: No module named 'ui'
[PYI-19660:ERROR] Failed to execute script 'start' due to unhandled exception!

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

No branches or pull requests

1 participant