Skip to content

bug: Flet app built with flet build web crashes after failing to find httpx and oauthlib packages #6258

@FeodorFitsner

Description

@FeodorFitsner

Flet version: 0.82.0

Problem: both httpx and oauthlib dependencies are excluded on Pyodide platform, but authorization_service.py does eager import of httpx and oauthlib packages.

Solution: do lazy imports.

Workaround: add this to pyproject.toml:

[tool.flet.web]
dependencies = [
    "httpx",
    "oauthlib"
]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions