Import "solcx" could not be resolved, Import "web3" could not be resolved #1488
-
Hi! I've decided to to migrate the workflow to WSL2 as described in this article. After completion of all steps and my project files moved to WSL home path I'm getting these errors from VSCode:
solc x is already installed
web3 is installed too
when I try to launch the code I get the following message:
Here is how it looks in the interface Any suggestions? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Right now attempt to run the deploy.py returns this message, telling that tkinter is missing, but it has been installed too.
|
Beta Was this translation helpful? Give feedback.
-
The Tkinter is a library for user interfaces, so please be sure you didn't add that import accidentally. First of all, please delete the build folder on your project and try again, if that does no work then: As I mention on the guide, please is important for you to use a python virtualenv
|
Beta Was this translation helpful? Give feedback.
The Tkinter is a library for user interfaces, so please be sure you didn't add that import accidentally.
First of all, please delete the build folder on your project and try again, if that does no work then:
As I mention on the guide, please is important for you to use a python virtualenv
virtualenv nameOfTheEnv
(the name can be anything you like).source nameOfTheEnv/bin/activate
.code .
an…