bug: `flet test` fails with `ModuleNotFoundError: No module named 'pydantic_core._pydantic_core'`
Los mantenedores suelen responder en 1 día
@ndonkoHenri ya está trabajando en esto.
Desde el 28/10/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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
- Lenguaje dominante
- Python
- Estrellas
- 17.4k
- Forks
- 737
- Merge medio
- 1 d 13 h
- PR fusionados (30 d)
- 62
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de flet-dev/flet
-
feature: python 3.15 supportAbiertofeature request
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
flet-dev/flet#6985 · 2 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
flet build: common [tool.flet.deep_linking] is ignored on Android and iOSPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug packaging platform: mobile
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Sign Flet Windows ClientPosiblemente ocupada @FeodorFitsner la tomó hace 2 días. Abiertoplatform: windows
flet-dev/flet#7011 · 3 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de flet-dev/flet
Issues similares
-
enhancement help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Git-Hospital/githealthcheck#61 ·
Los mantenedores suelen responder en 1 día
-
changelog investigate
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
ramnes/notion-sdk-py#433 ·
-
Partial method descriptors raise on class accessPosiblemente ocupada @Gambit-Checkmate la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 19 días
-
docs pkg:core
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
pydantic/pydantic-ai#11929 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
intake/intake-esm#789 ·