🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    uiflow v1.3.2 (stable) Bug on block "change i by 1"

    UIFlow
    3
    5
    8.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      nash68
      last edited by

      Hi folks,
      I am very happy to see a new version, but there is a bug.
      When I try to use the block "change i by 1" I have an Error : name 'Number' isn't defined.
      The python code that is generated looks like : i = (i if isinstance(i, Number) else 0) + 1

      Is it possible to fix that ?
      yours.

      1 Reply Last reply Reply Quote 0
      • Z
        zhufu86
        last edited by zhufu86

        But downloadable UIFlow Desktop IDE is still v1.2.3, so I'm not sure if the new UIFlow version is ready now.
        I also see some bugs(look like...not sure) in the new UIFlow v1.3.2 so I've been back to v1.2.3 which seems to be more stable.

        1 Reply Last reply Reply Quote 0
        • lukasmaximusL
          lukasmaximus
          last edited by

          @nash68 after upgrading to the latest firmware, did you select the beta option on the top bar of uiflow? 1.2.3 is the latest stable release, and any firmwares after that are using a different fork of micropython so many libraries are deprecated and will not work unless you select the beta option, sorry there wasn't much in a way of an explanation for this.

          1 Reply Last reply Reply Quote 0
          • N
            nash68
            last edited by

            Hi,
            The code generated is ok now. We have :
            i = (i if isinstance(i, int) else 0) + 1

            Thanks.

            1 Reply Last reply Reply Quote 0
            • lukasmaximusL
              lukasmaximus
              last edited by

              Seems it's fixed now, the issues was that it didn't generate the code to import the numbers library

              "from numbers import Number"

              1 Reply Last reply Reply Quote 0
              • First post
                Last post