ImportError: Attempted relative import beyond toplevel package

The first dot means this folder.
The second one means the parent folder.
The third one means the grandparent folder.
You have 5 dots, but you don’t have a many folder levels.

Try to type from . and see what the ide suggests.

3 Likes