Lesson 5: import "brownie" could not be resolved #52
-
Hello all! Quite new to the whole programming space but I'm determined to learn. Sorry if this is a basic question but I'm having problems getting the account addresses to import using brownie in vs code. The error it shows says, Import "brownie" could not be resolved Pylance(reportMissingImports), and has yellow squiggles under the name brownie. All the other commands do work for me though like brownie init, brownie compile, etc. I am on a m1 mac air and have had this issue in previous lessons but restarting vscode fixed the issues when I had them before. I've tried restarting vscode multiple times and even reset my computer but the error remains. Lmk what I gotta do / upload for more help. Thank you!! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Did you try to run a script using for example "brownie run scripts/deploy.py"? I always discard yellow problems from VS, and everything works fine, even if it says "Import "brownie" could not be resolved" |
Beta Was this translation helpful? Give feedback.
-
EDIT: TLDR: That's fine! You can ignore that. VSCode is not an IDE, It's more like an editor on steroids, so it's not able to do everything without configuring it correctly (manually)... there are a lot of answers on the internet about your problem, eg. https://stackoverflow.com/questions/62878082/visual-code-on-windows-cant-find-module-after-installing-it-with-pip-using-wro |
Beta Was this translation helpful? Give feedback.
EDIT: TLDR: That's fine! You can ignore that.
VSCode is not an IDE, It's more like an editor on steroids, so it's not able to do everything without configuring it correctly (manually)... there are a lot of answers on the internet about your problem, eg. https://stackoverflow.com/questions/62878082/visual-code-on-windows-cant-find-module-after-installing-it-with-pip-using-wro