Skip to content

flet-easy view_404.py imports 'colors' but in later versions of flet this has been changed to 'Colors' #48

@jwag59

Description

@jwag59

When trying to use flet-easy on flet 0.28.3 it fails with an import error trying to import 'colors' from flet.
As mentioned, this has been changed to 'Colors' in the later versions of flet and needs to be changed in file view_404.py.

Below is the error message from view_404.py:
(venv3.11) [root@headnode ~]# python fe.py
Traceback (most recent call last):
File "/root/fe.py", line 2, in
import flet_easy as fs
File "/opt/pkgmgr/venv3.11/lib64/python3.11/site-packages/flet_easy/init.py", line 4, in
from flet_easy.fletEasy import FletEasy, page
File "/opt/pkgmgr/venv3.11/lib64/python3.11/site-packages/flet_easy/fletEasy.py", line 24, in
from flet_easy.route import FletEasyX
File "/opt/pkgmgr/venv3.11/lib64/python3.11/site-packages/flet_easy/route.py", line 13, in
from flet_easy.view_404 import page_404_fs
File "/opt/pkgmgr/venv3.11/lib64/python3.11/site-packages/flet_easy/view_404.py", line 1, in
from flet import (
ImportError: cannot import name 'colors' from 'flet' (/opt/pkgmgr/venv3.11/lib64/python3.11/site-packages/flet/init.py)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    In review

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions