Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When import another python packages and build apk, app was quit immediately on android-phone. #4613

Open
1 task done
edwardcho opened this issue Dec 23, 2024 · 0 comments

Comments

@edwardcho
Copy link

Duplicate Check

Describe the bug

I just import another python-package. (yahoo finance : pypi yfinance)
Then I built apk-file : flet build apk -vv

Move apk-file to android-phone and installed it.
Succeed installed app, but click and quited.

Code sample

Code
import flet as ft
import yfinance as yf

def main(page: ft.Page):
    counter = ft.Text("0", size=50, data=0)

    def increment_click(e):
        counter.data += 1
        counter.value = str(counter.data)
        counter.update()

    page.floating_action_button = ft.FloatingActionButton(
        icon=ft.Icons.ADD, on_click=increment_click
    )
    page.add(
        ft.SafeArea(
            ft.Container(
                counter,
                alignment=ft.alignment.center,
            ),
            expand=True,
        )
    )


ft.app(main)

To reproduce

  1. create flet app : flet create my-app
  2. add 1-sentense : import yfinance as yf
  3. modified pyproject.toml for dependency of yfinance.

[project]
...
dependencies = [
"flet==0.25.2",
"matplotlib==3.9.2",
"yfinance==0.2.50"
]

[tool.poetry.dependencies]
peewee = { path = "D:\TESTBOARD\flet\libs\peewee-3.16.2.tar.gz" }

  1. build app : flet build apk -vv
  2. Then move apk-file to android-phone and install.
  3. When click, app was quit.

Expected behavior

No response

Screenshots / Videos

Captures

[Upload media here]

Operating System

Windows

Operating system details

Windows 10

Flet version

0.25.*

Regression

I'm not sure / I don't know

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant