Library Import Help
-
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. -
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 -
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.
-
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
tabto autocomplete the lineGijs
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