bug: `flet test` fails with `ModuleNotFoundError: No module named 'pydantic_core._pydantic_core'`
メンテナーはふだん 1 日以内に返信
@ndonkoHenri がすでに取り組んでいます。
2026年10月28日 から。
評価
この issue はまだ評価されていません。
説明
Discussed in https://github.com/flet-dev/flet/discussions/7020
Originally posted by jules-baratoux October 28, 2026
Question
Hi,
I'm trying to run flet test, but the app fails to render not able to import Pydantic:
I'm not sure what I'm doing wrong. Is there something else I need to configure to make flet test work correctly on Windows when depending on pydantic?
Any help would be appreciated. Thanks!
Configuration
I tried adding the following configuration to my pyproject.toml, but it didn't solve the issue even after a prior flet clean:
[[tool.uv.index]]
name = "flet"
url = "https://pypi.flet.dev"
explicit = true
[tool.uv.sources]
pydantic-core = { index = "flet" }
Error message
File ".../site-packages/pydantic/version.py", line 7, in <module>
File ".../site-packages/pydantic_core/__init__.py", line 8, in <module>
ModuleNotFoundError: No module named 'pydantic_core._pydantic_core'
Note
Also, is there a way to capture the app log (not the test log) when running flet test? I had to rely on a sleep to read the error 😅
async def test_example(flet_app: ftt.FletTestApp):
await sleep(15) # Wait to be able to read the app error
assert False
- 主要言語
- Python
- スター
- 17.4k
- フォーク
- 737
- 平均マージ
- 1日 13時間
- マージ済み PR(30日)
- 62
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
flet-dev/flet のほかの issue
-
feature request
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
flet-dev/flet#6985 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
flet build: common [tool.flet.deep_linking] is ignored on Android and iOS対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug packaging platform: mobile
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
Sign Flet Windows Client対応中かも @FeodorFitsner が 2 日前に担当しました。 オープンplatform: windows
flet-dev/flet#7011 · コメント 3 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
changelog investigate
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
ramnes/notion-sdk-py#433 ·
-
docs pkg:core
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
pydantic/pydantic-ai#11929 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
intake/intake-esm#789 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
MemMachine/MemMachine#1877 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
openedx/openedx-authz#579 ·
メンテナーはふだん 1 日以内に返信