Fail to debug run_example
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
調査の方向性
app.zipをビルドした後のrun_exampleのVSCodeデバッグフローを再現し、ログに表示されているlib\main.dartとパッケージ化されたflet\app\main.pyから開始します。アーカイブがreleaseモードと共有されているにもかかわらず、デバッグランタイムがlru._lruを読み込めない理由を確認します。run_exampleのデバッグが完了し、ModuleNotFoundErrorなしでPASSが表示されれば完了です。
索引モデルが 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
- 平均マージ
- 14時間 53分
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
flet-dev/serious-python のほかの issue
-
難易度 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 ·
-
Update docs for site-packages再び着手できるかも @FeodorFitsner が 558 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンdocumentation
flet-dev/serious-python#157 · コメント 1 件 · 担当者 1 名 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
flet-dev/serious-python#133 · コメント 2 件 ·
flet-dev/serious-python の issue をすべて見る
似ている issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
flame-engine/flame#4067 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
mrgnhnt96/zonai#37 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
google/skills_lint.dart#58 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
nvim-flutter/flutter-tools.nvim#557 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
lugassawan/swe-workbench#755 ·
メンテナーはふだん 1 日以内に返信