🤖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"

    Scheduled Pinned Locked Moved UIFlow
    5 Posts 3 Posters 10.1k Views 1 Watching
    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 Offline
      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 Offline
        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 Offline
          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 Offline
            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 Offline
              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

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post