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

Assets dir and manifest does not work in 0.8.1 #1573

Closed
BrownNPC opened this issue Jul 9, 2023 · 1 comment
Closed

Assets dir and manifest does not work in 0.8.1 #1573

BrownNPC opened this issue Jul 9, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@BrownNPC
Copy link

BrownNPC commented Jul 9, 2023

Description

The assets dir and manifest.json files and not working properly. If you nest a directory inside of assets, eg. "/assets/images/image.png" the file is not detected. This issue only occurs in the latest version (0.8.1), downgrading seems to fix the issue.
Code example to reproduce the issue:

import flet as ft


def main(page:ft.Page):

    page.add(
        ft.Image(
            src='/images/image.png'
        )
    )

ft.app(target=main, view=ft.WEB_BROWSER, assets_dir='./assets', port=8080)

Describe the results you received:

Empty page
Describe the results you expected:

I expected the program to display and image.
Additional information you deem important (e.g. issue happens only occasionally):

Flet version (pip show flet):

Name: flet
Version: 0.8.1
Summary: Flet for Python - easily build interactive multi-platform apps in Python
Home-page: 
Author: Appveyor Systems Inc.
Author-email: [email protected]
License: Apache-2.0
Location: /home/muddi/Coding-Projects/App/.venv/lib64/python3.11/site-packages
Requires: copier, flet-runtime, packaging, pydantic, qrcode, watchdog, websocket-client, websockets
Required-by: 

Operating system:

Fedora 37
Additional environment details:
Using python 3.11.3 in a venv.

@viniciusgruske
Copy link

+1

@FeodorFitsner FeodorFitsner added the bug Something isn't working label Jul 13, 2023
zrr1999 pushed a commit to zrr1999/flet that referenced this issue Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants