Skip to content

Python errors: NameError: name 'false' is not defined #14

@vin750

Description

@vin750

I am having issues with the python code, it seems the version of python I downloaded is being picky about how true, false and null values are declared.

Have you seen this before?

I tried changing the code and replacing the false with False, true with True and null with None but it doesn't seem to have worked. I open the gx file in flashprint to push it to the printer via USB but it doesnt show anything at all. The file has data, but it is not making sense to flashprint. See an example below.

    "allShortcutsEnabled": false,
                           ^^^^^
NameError: name 'false' is not defined. Did you mean: 'False'?

I am running Python

python -V
Python 3.12.1

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