Skip to content

TypeError: Properties ['text'] passed to __init__ may not be existing property names. Valid property names are ... #1

@hari4742

Description

@hari4742

After setting up the project per instructions, When we drop the image the widow closes immediately with the terminal showing the following error:

err_kivymd

The error originated from the Snackbar component where we were passing the text key to it. This is because kivymd module have some changes from version 1.1.1 to 1.2.0 as shown here

The module versions are:
kivy: 2.3.0
kivymd: 1.2.0

Suggested Fix:

Update replace of instances for Snackbar component as per the latest version i.e. 1.2.0 in the main-GUI.py file

Existing Code:

Snackbar(text="...").open()

Code to fix the issue:

MDSnackbar(MDLabel(text="...")).open()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions