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

APK and IPA Build issue: No matching distribution found for httptools #4801

Open
1 task done
jhonielviloria opened this issue Jan 30, 2025 · 0 comments
Open
1 task done

Comments

@jhonielviloria
Copy link

Duplicate Check

Describe the bug

I am just trying to build APK and got this error both on local machine and github actions. I'm new at building apps so i might be missing simple configurations here. Please let me know. Thanks

Repo:
https://github.com/jhonielviloria/flet_test

YAML file:
https://github.com/jhonielviloria/flet_test/blob/master/.github/workflows/apk_build.yml

Code sample

Code
import flet as ft

def main(page: ft.Page):
    page.title = "Flet Sample App"

    def button_clicked(e):
        output_text.value = f"Hello, {input_text.value}!"
        page.update()

    input_text = ft.TextField(label="Enter your name")
    output_text = ft.Text(value="", size=20)
    button = ft.ElevatedButton(text="Greet", on_click=button_clicked)

    page.add(input_text, button, output_text)

ft.app(target=main)

To reproduce

flet build apk

Expected behavior

No response

Screenshots / Videos

Captures

[Upload media here]

Operating System

Windows

Operating system details

Windows 11 and Ubuntu on GA

Flet version

0.25.2

Regression

No, it isn't

Suggestions

No response

Logs

Logs
Running package command
Extra PyPi indexes: [https://pypi.flet.dev/]
Creating asset directory: /home/runner/work/flet_test/flet_test/build/flutter/app
Created temp directory: /tmp/serious_python_tempMWRKIQ
Copying Python app from /home/runner/work/flet_test/flet_test to a temp directory
Cleanup app
Configured Android/arm64-v8a platform with sitecustomize.py
Installing [-r, /home/runner/work/flet_test/flet_test/requirements.txt] with pip command to /home/runner/work/flet_test/flet_test/build/site-packages/arm64-v8a
Downloading Python distributive from https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.12.6+20240909-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz to a build directory
Extracting Python distributive
ERROR: Could not find a version that satisfies the requirement httptools==0.6.4 (from versions: none)
ERROR: No matching distribution found for httptools==0.6.4
[07:47:46] Error building Flet app - see the log of failed command above.       
           Run subprocess:                                                      
           ['/opt/hostedtoolcache/flutter/stable-3.24.5-x64/bin/flutter',       
           'doctor']

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