flet icon indicating copy to clipboard operation
flet copied to clipboard

import Error

Open OmarBelfeki opened this issue 1 year ago • 1 comments

Duplicate Check

  • [x] I have searched the opened issues and there are no duplicates

Describe the bug

from ..components.card import Card

ImportError: attempted relative import beyond top-level package

and

from frontend.src.components.card import Card

ModuleNotFoundError: No module named 'frontend'

Code sample

Code
import flet as ft
from ..components.card import Card

and 

from frontend.src.components.card import Card

To reproduce

.

Expected behavior

No response

Screenshots / Videos

Captures

[Upload media here]

Operating System

Windows

Operating system details

win 11

Flet version

last

Regression

No, it isn't

Suggestions

please makes like react native

Logs

Logs
[Paste your logs here]

Additional details

No response

OmarBelfeki avatar May 17 '25 21:05 OmarBelfeki

Doesnt seem to me like a Flet error, but like a normal Python error, which depends on how your project is organized. You can search for a solution online or ask AI :)

ndonkoHenri avatar Nov 12 '25 14:11 ndonkoHenri