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

    Compile error - ImportError: No module name serial

    Scheduled Pinned Locked Moved Arduino
    4 Posts 4 Posters 8.8k Views 3 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.
    • R Offline
      rexlee
      last edited by

      I get the above compile error , compiling for a M5Stick C
      I have the board manager & library installed OK. I can see all the SP32 boards & all the M5Stack examples.
      I would appreciate any help. Although I have been working with micros sonce 1972, I am now 72 and whilst trying to keep up the head is not as agile as it used to be.

      Lee
      ![alt text](image 0_1588829153516_4bf9bc04-59b2-41f4-8421-ec60ba0bcd33-image.png url)

      liemphL 1 Reply Last reply Reply Quote 0
      • liemphL Offline
        liemph @rexlee
        last edited by

        @rexlee I assume you use Arduino IDE. What example did you compile for your M5Stick C? If it was your own code, then please upload the code so other members can take a look.

        1 Reply Last reply Reply Quote 0
        • R Offline
          robalstona
          last edited by

          Probably you need to install python serial library used by esptool.

          Could you try this command in console
          python -m pip install pyserial

          1 Reply Last reply Reply Quote 0
          • ajb2k3A Offline
            ajb2k3
            last edited by

            The compiler cannot find wire.h which is needed for serial communication. please add wire.h

            UIFlow, so easy an adult can learn it!
            If I don't know it, be patient!
            I've ether not learned it or am too drunk to remember it!
            Author of the WIP UIFlow Handbook!
            M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

            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