Fail to debug run_example
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
研究方向
在建置 app.zip 後,重現 run_example 的 VSCode 偵錯流程,從日誌中顯示的 lib\main.dart 和已封裝的 flet\app\main.py 開始。檢查為什麼偵錯執行階段無法載入 lru._lru,儘管該封存檔與 release 模式共用。完成標準是 run_example 偵錯完成並顯示 PASS,且沒有 ModuleNotFoundError。
由索引模型根據 Issue 內容生成。
描述
Hi I tried to run run_example using VSCode, and I package app.zip and build run_example.exe successfully. But when I tried to Debug it, there is a python file name shown in panel instead of PASS. I checked the OUTPUT and DEBUG CONSOLE, I find an error "no module named lru".
Detailed information are as followed:
Launching lib\main.dart on Windows in debug mode...
√ Built build\windows\x64\runner\Debug\run_example.exe
Connecting to VM Service at ws://127.0.0.1:13522/phIZ-tCvqZQ=/ws
Connected to the VM Service.
flutter: extractAssetOrFile directory: D:\Users\aiden.guo\AppData\Roaming\com.example\run_example\flet\app
flutter: Start unpacking archive: app/app.zip
flutter: Finished unpacking application archive in 0:00:05.363893
starting
Hello from Python program!
HELLO!
Original : 26 b'This is the original text.'
Compressed : 62 b'425a683931415926535916be35a600000293804001040022e59c402000314c000111e93d434da223028cf9e73148cae0a0d6ed7f17724538509016be35a6'
Decompressed : 26 b'This is the original text.'
start check
exePath: D:\github_code\serious-python\src\serious_python\example\run_example\build\windows\x64\runner\Debug\run_example.exe
exeDir: D:\github_code\serious-python\src\serious_python\example\run_example\build\windows\x64\runner\Debug
appPath: D:\Users\aiden.guo\AppData\Roaming\com.example\run_example\flet\app\main.py
PYTHONPATH: D:\Users\aiden.guo\AppData\Roaming\com.example\run_example\flet\app;D:\Users\aiden.guo\AppData\Roaming\com.example\run_example\flet\app\__pypackages__;D:\github_code\serious-python\src\serious_python\example\run_example\build\windows\x64\runner\Debug\DLLs;D:\github_code\serious-python\src\serious_python\example\run_example\build\windows\x64\runner\Debug\Lib;D:\github_code\serious-python\src\serious_python\example\run_example\build\windows\x64\runner\Debug\Lib\site-packages
env_var: RESULT_FILENAME=C:\Users\aiden.guo\AppData\Local\Temp\run_example7eec0265\out.txt
env_var: RESULT_VALUE=JtcxBxeHxYdnsgbyndWJ
sync: false
Running Python program asynchronously...Traceback (most recent call last):
File "D:\Users\aiden.guo\AppData\Roaming\com.example\run_example\flet\app\main.py", line 86, in <module>
test_lru()
File "D:\Users\aiden.guo\AppData\Roaming\com.example\run_example\flet\app\main.py", line 41, in test_lru
from lru import LRU
File "D:\Users\aiden.guo\AppData\Roaming\com.example\run_example\flet\app\__pypackages__\lru\__init__.py", line 1, in <module>
from ._lru import LRU as LRU # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'lru._lru'
It really confused me because I think the same app.zip is used in both release and debug mode, it should contain the lru dependency.
I submitted an issue #116 yesterday about that I can't compile the app automatically, I manually moved some files, I don't know if it caused the problem.
- 主要語言
- Dart
- 星號
- 325
- 分支
- 46
- 平均合併
- 19 小時 50 分鐘
- 30 天內合併 PR
- 4
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
flet-dev/serious-python 的其他 Issue
-
難度 5/5 一週以上 新手友好度 38/100
flet-dev/serious-python#255 ·
-
難度 2/5 1-3 小時 新手友好度 55/100
flet-dev/serious-python#254 ·
-
難度 4/5 3-5 天 新手友好度 45/100
flet-dev/serious-python#226 ·
-
難度 4/5 3-5 天 新手友好度 35/100
flet-dev/serious-python#169 ·
-
iOS Build Failure: Missing site-xcframeworks Directory in serious_python_darwin PhaseScriptExecution未關閉
難度 3/5 1-2 天 新手友好度 42/100
flet-dev/serious-python#168 ·
查看 flet-dev/serious-python 的全部 Issue
相似的 Issue
-
documentation good first issue
難度 1/5 1 小時以內 新手友好度 88/100
djazairdev/wilayas#22 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 80/100
rajput-hemant/calculator#199 ·
-
難度 2/5 1-3 小時 新手友好度 62/100
leancodepl/app-rating#35 ·
-
Mobile login: "Sign In" button is squashed to 16 px with its label cut while the keyboard is open未關閉ai-driven-qa bug claude
難度 2/5 1-3 小時 新手友好度 78/100
linagora/tmail-flutter#4976 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 78/100
aaronified/fluenough#503 ·
維護者通常 1 天內回覆