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

    Library Import Help

    Scheduled Pinned Locked Moved Getting Started
    library import
    4 Posts 2 Posters 51 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.
    • M Offline
      matb66
      last edited by

      Just starting out on the Pycom and have run into an issue straight away. (Using GPy mounted to a PySense2 board.
      Installed VS Code, installed NodeJS, installed Pymakr extension.
      Downloaded the pycom-libraries-master from github and extracted.
      Open the example Pysense2 folder and load into VS code.
      Problem... nearly all import statements have squiggly red underline (ie. they are not recognised) Help please. It seems like there is a path environment variable that needs to be set up. For example where is the Pycom library stored? See pic below of github example code in Pysense2.![alt text](34f67531-b0f0-4278-baa1-6c9ce78f09b1-image.png image url)

      1 Reply Last reply Reply Quote 0
      • G Offline
        Gijs
        last edited by

        You probably also have the Python or some other plugin installed. If you upload the code to the GPy device, the imports should work fine.

        Best,
        Gijs

        1 Reply Last reply Reply Quote 0
        • M Offline
          matb66
          last edited by

          Ok, thanks. Uninstalled the Python extension and errors have gone. So, because I'm new to this, does PyMakr install of the pycom libraries required as well as the REPL.

          Should I expect intellisense to work with the Pycom libraries? Because they don't at the moment.

          1 Reply Last reply Reply Quote 0
          • G Offline
            Gijs
            last edited by

            All the modules are already available in the Pycom firmware on the device, which is why they are underlined as errors in the editor.

            Currently, we have no intellisense on Pycom libraries. In the REPL, you can use tab to autocomplete the line

            Gijs

            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