Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Can't import I2C module

    Scheduled Pinned Locked Moved LoPy
    5 Posts 2 Posters 1.4k Views 2 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.
    • K Offline
      kobeyu
      last edited by

      hi guys
      does any one has the same problem?

      from machine import I2C
      Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      ImportError: cannot import name I2C

      os version:
      (sysname='ESP32', nodename='ESP32', release='0.9.0b', version='8785822 on 2016-10-06', machine='LoPy with ESP32')

      L 1 Reply Last reply Reply Quote 0
      • L Offline
        livius @kobeyu
        last edited by

        @kobeyu
        look here
        https://forum.pycom.io/post/3494

        think about people first, then computers

        K 1 Reply Last reply Reply Quote 0
        • K Offline
          kobeyu @livius
          last edited by

          @livius Thanks for reply, It works!

          L 1 Reply Last reply Reply Quote 0
          • L Offline
            livius @kobeyu
            last edited by

            @kobeyu
            but you must wait for fix in current release about i2c
            look here:
            https://forum.pycom.io/topic/564/new-firmware-release-1-5-0-b1-and-sipy-sigfox-certification-completed

            think about people first, then computers

            1 Reply Last reply Reply Quote 0
            • K Offline
              kobeyu
              last edited by kobeyu

              OK, Thanks~

              update:
              It works at version "1.5.0.b2"

              os.uname()
              (sysname='LoPy', nodename='LoPy', release='1.5.0.b2', version='v1.8.6-412-gf55ba50 on 2017-01-28', machine='LoPy with ESP32')

              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
              • 1 / 1
              • First post
                Last post

              Pycom on Twitter

              Pycom