Skip to content

bug: ERROR: No matching distribution found for msgpack>=1.1.0 #6179

Closed

Description

@VoHeCode

Duplicate Check

Describe the bug

flet doctor Flet 0.80.5 on Linux 6.17.0-14-generic (x86_64) Python 3.12.3 (/home/user/flet/littletest/venv/bin/python)

The simple possible program - see below is unable to create.

and got that error.
Does this also happen today with programs that were previously easy to create?

Code sample

Code
import flet as ft

def main(page: ft.Page):
    page.add(ft.Text(value="Hello, world!"))

ft.run(main)

To reproduce

create a folder
make a venv
activate the venv then:
pip install 'flet[all]'
run
flet doctor

flet create
place the code inside the main.py
testing with
flet run
works on the desktop then

try to build it with:
flet build apk
got the error

Expected behavior

No response

Screenshots / Videos

Captures

[Upload media here]

Operating System

Linux

Operating system details

Linux thinkpad 6.17.0-14-generic #14~24.04.1-Ubuntu

Flet version

Flet 0.80.5

Regression

Yes, it used to work in a previous Flet version (please specify the version in additional details)

Suggestions

No response

Logs

Logs
flet build apk --verbose
[21:19:40] Run subprocess: ['/home/user/flutter/3.38.7/bin/flutter', '--version', '--no-version-check', '--suppress-analytics']                                                     
           Flutter executable: /home/user/flutter/3.38.7/bin/flutter                                                                                                                
           Dart executable: /home/user/flutter/3.38.7/bin/dart                                                                                                                      
           JDK installed at /home/user/java/17.0.13+11                                                                                                                              
           Configuring Flutter's path to JDK                                                                                                                                          
           Run subprocess: ['/home/user/flutter/3.38.7/bin/flutter', 'config', '--no-version-check', '--suppress-analytics', '--jdk-dir=/home/user/java/17.0.13+11']              
           Setting "jdk-dir" value to "/home/user/java/17.0.13+11".                                                                                                                 
                                                                                                                                                                                      
           You may need to restart any open editors for them to read new settings.                                                                                                    
           JDK installed ✅                                                                                                                                                           
           Android SDK installation found at /home/volker/Android/sdk                                                                                                                 
           Android SDK package "cmdline-tools;latest" is already installed                                                                                                            
           Android SDK package "platform-tools" is already installed                                                                                                                  
           Android SDK package "platforms;android-35" is already installed                                                                                                            
           Android SDK package "build-tools;34.0.0" is already installed                                                                                                              
           Android SDK installed ✅                                                                                                                                                   
           Run subprocess: ['/home/user/flutter/3.38.7/bin/dart', 'run', '--suppress-analytics', 'serious_python:main', 'package',                                                  
           '/home/user/flet/littletest/src', '--platform', 'Android', '-r', 'flet>=0.80.5', '--exclude', 'build', '--cleanup-packages']                    
           Running build hooks...Running build hooks...Running package command                                                                                                        
           Extra PyPi indexes: [https://pypi.flet.dev]                                                                                                                                
           Created temp directory: /tmp/serious_python_tempFZWCOI                                                                                                                     
           Copying Python app from /home/user/flet/littletest/src to a temp directory                                                                      
           Configured Android/arm64-v8a platform with sitecustomize.py                                                                                                                
           Installing [flet>=0.80.5] with pip command to /home/user/flet/littletest/build/site-packages/arm64-v8a                                          
[21:19:42] ERROR: Could not find a version that satisfies the requirement msgpack>=1.1.0 (from flet) (from versions: none)                                                            
           ERROR: No matching distribution found for msgpack>=1.1.0                                                                                                                   
           <_io.TextIOWrapper name=5 encoding='utf-8'>                                                                                                                                
           Run subprocess: ['/home/user/flutter/3.38.7/bin/flutter', 'doctor', '--no-version-check', '--suppress-analytics']                                                        
[21:19:45] Doctor summary (to see all details, run flutter doctor -v):                                                                                                                
           [✓] Flutter (Channel stable, 3.38.7, on Ubuntu 24.04.4 LTS 6.17.0-14-generic, locale de_DE.UTF-8)                                                                          
           [✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)                                                                                           
           [✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)                                                                                          
               ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.                                                                                            
           [✓] Linux toolchain - develop for Linux desktop                                                                                                                            
           [✓] Connected device (2 available)                                                                                                                                         
           [✓] Network resources                                                                                                                                                      
                                                                                                                                                                                      
           ! Doctor found issues in 1 category.                                                                                                                                       
                                                        

Additional details

No response

Activity

  1. FeodorFitsner commented on Feb 17, 2026

    @FeodorFitsner
    Contributor

    Check if you can access https://pypi.flet.dev from your machine.

  2. VoHeCode commented on Feb 17, 2026

    @VoHeCode
    Author

    Check if you can access https://pypi.flet.dev from your machine.

    normaly from any browser ? yes
    and inside the project foldet, where ich start flet build apk ,
    i do: curl -s --head --request GET https://pypi.flet.dev
    and get : HTTP/2 200
    so yes i could access

    or this:

    pip index versions msgpack --index-url https://pypi.flet.dev/ returns ERROR: No matching distribution found for msgpack – so the package is missing from the Flet PyPI index entirely.

  3. VoHeCode commented on Feb 21, 2026

    @VoHeCode
    Author

    Any news? I got some: As i change my code to :

    import flet as ft
    
    def main(page: ft.Page):
        page.add(ft.Text(value="Hello, world!"))
    
    ft.run(main)
    

    and the pyproject.toml to :

    [project]
    name = "littletest"
    version = "0.1.0"
    description = ""
    readme = "README.md"
    requires-python = ">=3.10"
    authors = [
        { name = "Flet developer", email = "you@example.com" }
    ]
    dependencies = [
        "flet-core==0.24.1"
    ]
    
    [tool.flet]
    org = "com.mycompany"
    product = "littletest"
    company = "Flet"
    copyright = "Copyright (C) 2023-2026 by Flet"
    
    [tool.flet.app]
    path = "src"
    

    I can run the desktop version with flet run and build an apk without errors, but as i start that under android i got a screen with: ```
    Traceback (most recent call last):
    File "", line 77, in
    ModuleNotFoundError: No module named 'certifi'

    No matter that the source hasn't go 77 lines?!
    
    
  4. ndonkoHenri commented on Feb 21, 2026

    @ndonkoHenri
    Contributor

    This is wrong:

    dependencies = [
        "flet-core==0.24.1"
    ]
    

    Use Flet package directly/only: https://pypi.org/project/flet/

  5. VoHeCode commented on Feb 21, 2026

    @VoHeCode
    Author

    This is wrong:

    dependencies = [
        "flet-core==0.24.1"
    ]
    

    Use Flet package directly/only: https://pypi.org/project/flet/

    Why? I don't want to write that this is exactly what I want to do, no, I would like to build with 0.80.5. But I can't get it to work (anymore). And this is the only way to get a flet build apk without errors! I've been trying to fix this for days (OMG, even with AI). I've tried everything except using a different computer. I'm stuck at the moment. My programmes run perfectly under Linux, but I can't build any new ones for Android. It always fails when calling the msgpack dependency. Attempts to use it locally fail because it seems to always be fetched externally in ‘flet build’.

  6. ndonkoHenri commented on Feb 21, 2026

    @ndonkoHenri
    Contributor

    Here is simple app, which I am able to build on all platforms, as seen here. So, I dont think issue comes from our side tbh.

    Can you try deleting the build directory (or run with --clear-cache) and retrying? (without flet-core)

  7. VoHeCode commented on Feb 25, 2026

    @VoHeCode
    Author

    I always start a new build with emty build folder! That's not the point. May it's on my side but i don't know how to check that/fix that. As if i "install" flet with pip and set the version 0.28.3 or 0.80.5 in the pyproject.toml there is no locale thing that i could "reset" "install" or change. Am i right with that? And it has worked weeks ago with version 0.80.0, with nothing changed meanwhile. Any suggestions?

  8. ndonkoHenri commented on Feb 25, 2026

    @ndonkoHenri
    Contributor

    Alright lets try this: install uv (Python package manager), and run this command to build the app instead:

    uvx --with flet-cli flet build -v ...

    This basically runs the build command in an isolated virtual environment, with the latest Flet version v0.81.0.
    Also, have only flet in your pyproject.toml dependencies.

  9. ndonkoHenri commented on Aug 17, 2026

    @ndonkoHenri
    Contributor

    Closing as resolved.

    msgpack was never missing from pypi.flet.dev; the Android/iOS wheels have been there all along. The failure was your user-site packages (~/.local/lib/python3.12/site-packages) leaking into the isolated Python that serious_python runs pip with, which shadowed its bundled pip and broke platform-tag resolution — msgpack just happened to be the first dependency needing a platform-specific wheel.

    Fixed in serious_python 0.9.11 (serious-python#195) and rolled into the build templates, including the 0.80.5 one. If you're on an older build cache, rebuild with --clear-cache to pick it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions