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

    Unable to import pycom module

    Scheduled Pinned Locked Moved Pymakr
    2 Posts 1 Posters 43 Views 1 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.
    • C Offline
      Campbell Duncan
      last edited by

      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!

      C 1 Reply Last reply Reply Quote 0
      • C Offline
        Campbell Duncan @Campbell Duncan
        last edited by

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

        1 Reply Last reply Reply Quote 2

        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