Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Fail to debug run_example

Offen
#117 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
dart, flutter, python, vscode

Rechercherichtung

Reproduziere den VSCode-Debug-Ablauf für run_example nach dem Erstellen von app.zip, beginnend mit lib\main.dart und der im Log angezeigten paketierten flet\app\main.py. Prüfe, warum die Debug-Laufzeit lru._lru nicht laden kann, obwohl das Archiv mit dem Release-Modus geteilt wird. Als erledigt gilt die Aufgabe, wenn das Debugging von run_example abgeschlossen wird und PASS ohne den ModuleNotFoundError anzeigt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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".
image
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.

Vorherrschende Sprache
Dart
Sterne
325
Forks
46
Ø Merge
14 Std. 53 Min.
Gemergte PRs (30 T.)
5

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus flet-dev/serious-python

Alle Issues in flet-dev/serious-python

Ähnliche Issues

Weitere Issues zu Dart

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.