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

    ImportError: no module named 'pycom'

    Scheduled Pinned Locked Moved Pymakr
    3 Posts 2 Posters 76 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.
    • R Offline
      russell thamm
      last edited by

      I am just getting started with micropython on a esp32 pico. I am using the latest version of vscode and have installed the pymakr extension 2.22.5. This is on Windows 10.
      However, after uploading a test program, I just see the following in the terminal:

      Traceback (most recent call last):
      File "main.py", line 1, in <module>
      ImportError: no module named 'pycom'
      MicroPython v1.16 on 2021-06-27; TinyPICO with ESP32-PICO-D4

      Searching around, I discovered that this could be due to having the vscode python extension installed. Disabling the python extension, hasn't really helped.
      IntelliSense stopped marking pycom as being not found. But the program still will not run.
      My understanding is that pymakr should automatically upload the pycom library. Is this correct?

      Any idea what I am doing wrong?

      robert-hhR 1 Reply Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @russell thamm
        last edited by

        @russell-thamm Most likely you do not use the Pycom flavour of Micropython. The genuine version does not have a pycom module, and the Pycom versions only supports Pycom hardware.

        1 Reply Last reply Reply Quote 1
        • R Offline
          russell thamm
          last edited by

          Silly me - believing stuff I read on the internet!

          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