ImportError: no module named 'pycom'

  • 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 "", 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?

  • Silly me - believing stuff I read on the internet!

  • @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.

Log in to reply

Pycom on Twitter