flet icon indicating copy to clipboard operation
flet copied to clipboard

NoModuleFoundError on android: matplotlib

Open abussinan opened this issue 9 months ago • 2 comments

Duplicate Check

  • [x] I have searched the opened issues and there are no duplicates

Describe the bug

when installed on android the matplotlib library throws an exception. flet build aab is emplyed.

`requires-python = ">=3.12" dependencies = [ "flet", "pandas", "tabulate", "repath", "python-dotenv", "boto3", "requests", "certifi", "six", "sentry-sdk", "matplotlib" ]

[tool.flet.app] path = "src"

[tool.flet.compile] app = true packages = true cleanup = true

[tool.flet.android] min_sdk_version = 21 target_sdk_version = 35`

Code sample

Code
import matplotlib.pyplot as plt

To reproduce

  1. add dependency
  2. build aab
  3. install on device
  4. immediately crash

Expected behavior

No response

Screenshots / Videos

Captures

[Upload media here]

Operating System

Windows

Operating system details

Windows 11

Flet version

0.27.6

Regression

I'm not sure / I don't know

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

abussinan avatar Apr 04 '25 20:04 abussinan