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 "main.py", line 1, in <module>
ImportError: no module named 'pycom'
MicroPython v1.16 on 2021-06-27; TinyPICO with ESP32-PICO-D4Searching 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?
-
@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.
-
Silly me - believing stuff I read on the internet!
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