Skip to content

bug: 500 RunTime Error due to missing web directory #6474

@justrandomgenerateduser

Description

@justrandomgenerateduser

Duplicate Check

Describe the bug

After installing flet[all]==0.84, as well as flet[all]==0.83 on Raspberry Pi 4 Model B Rev 1.5, pip does not create and install web folder in virtual env, resulting in 500 internal error:

curl pi.local:8000
Internal Server Error
RuntimeError: Web root path not found: /home/pi/hidden/venv/lib/python3.13/site-packages/flet_web/web
ls venv/lib/python3.13/site-packages/flet_web/web/
ls: cannot access 'venv/lib/python3.13/site-packages/flet_web/web/': No such file or directory

directory venv/lib/python3.13/site-packages/flet_web/ exists:

ls venv/lib/python3.13/site-packages/flet_web
fastapi  __init__.py  patch_index.py  __pycache__  uploads.py  version.py

The same issue was reproduced on Raspberry Pi 5 Model B Rev 1.0, although this report is focused on Raspberry Pi 4 Model B Rev 1.5

Which is weirder - it works perfectly in amd64 arch, as well as in docker container builded on amd64 with cross-platform compilation for ARM v8

Code sample

No need propably, I was not even able to start flet run with example

import flet as ft
 
def main(page: ft.Page):
    page.title = "Flet on Raspberry Pi"
    page.add(ft.Text("Hello from Raspberry Pi!"))
 
ft.app(target=main, view=ft.AppView.WEB_BROWSER)

To reproduce

On Raspberry Pi 4 Model B Rev 1.5:

  1. source venv/bin/activate
  2. python3 -m pip install flet[all]==0.84.0
  3. `ls venv/lib/python3.13/site-packages/flet_web/web/ result:
ls: cannot access 'venv/lib/python3.13/site-packages/flet_web/web/': No such file or directory
  1. ls venv/lib/python3.13/site-packages/flet_web/ result
ls venv/lib/python3.13/site-packages/flet_web/
fastapi  __init__.py  patch_index.py  __pycache__  uploads.py  version.py

Expected behavior

Flet installation creates web folder with required assets

Screenshots / Videos

Captures

[Upload media here]

Operating System

Linux

Operating system details

Linux raspberrypi 6.12.75+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.75-1+rpt1 (2026-03-11) aarch64 GNU/Linux

Flet version

flet[all]==0.84, as well as flet[all]==0.83

Regression

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

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

My coworker confirms that version flet version 0.22.1 works

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions