Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

bug: `flet test` fails with `ModuleNotFoundError: No module named 'pydantic_core._pydantic_core'`

オープン
#7,022 コメント 3 件 リアクション 1 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@ndonkoHenri がすでに取り組んでいます。

2026年10月28日 から。

評価

この issue はまだ評価されていません。

説明

bug
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:

image

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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

flet-dev/flet のほかの issue

flet-dev/flet の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。