flet icon indicating copy to clipboard operation
flet copied to clipboard

Error: Inclued CV2 Lib in My Application (APK)

Open Youssef3082004 opened this issue 1 year ago • 1 comments

Duplicate Check

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

Describe the bug

When I put the CV2 library the phone application does not work and shows me an error

Code sample

from flet import *

import cv2

def main(page:Page): page.appbar = AppBar(title=Text("Test"),bgcolor=Colors.BLUE,center_title=True) page.add(Row([Text(f"gragio_client version :{cv2.version}")],alignment=MainAxisAlignment.CENTER)) page.update()

app(target=main,assets_dir= r"D:\Python\Flet - Cross Platform\alderly\assets")

To reproduce

explain how to include these libs like cv2 in the Docu

Expected behavior

https://flet.dev/docs/reference/binary-packages-android-ios/

in this link it's appear that open CV is available for Android and ios so I built apk but it same error

Screenshots / Videos

Image

Operating System

Windows

Operating system details

Windows 10 Pro

Flet version

0.26.0

Regression

No, it isn't

Suggestions

i just need how to make cv2 run in my application and how to use .whl files downloaded with cv2 that were Developed by Flet Developers

Logs

Logs
[Paste your logs here]

Additional details

requiremnts: flet==0.26.0 opencv_python==4.10.0.84

Youssef3082004 avatar Feb 09 '25 21:02 Youssef3082004

Please have a look at this: https://github.com/flet-dev/flet/issues/4850

ndonkoHenri avatar Feb 10 '25 13:02 ndonkoHenri