Unable to import pycom module



  • Re: Unable to import pycom in VScode

    Hi!
    I'm using vscode as I've had little success programming with Pybytes.
    When I try to import pycom and machine I get an error. I have the Pybytes extension in vscode and the board has been provisioned with updated firmware. I've been able to add other library folders from pycom on github to my lib folder but can't find these ones. I assume they are on the board already from the provisioning. Do I just upload the code to the board and hope for the best or what?

    Thanks!



  • @Campbell-Duncan Solved.

    The problem was that I had the Python extension added to VSCode. It was overriding the Pymakr extension and not accepting the basic Pycom import modules. Once I disabled the Python extension and restarted vscode, everything worked.
    Thanks.


Log in to reply
 

Pycom on Twitter