Lesson 4: Import "solcx" could not be resolved #816
-
Hi guys! Unfortunately, I have been struggling with the error in the header for a while now. I have tried two solutions found online which don't seem to work for me:
Attached is a picture of my code. I have also used pip install to install both pip3 install py-solc-x and pip install web3. Anyone have any solutions they found? Would be much appreciated so I can follow along with video :) |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
Hello @Tokenomacs it seems you are using python with conda, and it is installed on the
|
Beta Was this translation helpful? Give feedback.
-
Hi Vitaly thanks for all your help!
I recently solved the solcx issue, but am still having trouble with the web3 import.
It is installed as seen by the requirement already satisfied in the terminal.
Any diagnosis?
Thanks so much
From: Vasiliy Gualoto ***@***.***>
Sent: Tuesday, January 18, 2022 3:52 PM
To: smartcontractkit/full-blockchain-solidity-course-py ***@***.***>
Cc: Tokenomacs ***@***.***>; Mention ***@***.***>
Subject: Re: [smartcontractkit/full-blockchain-solidity-course-py] Lesson 4: Import "solcx" could not be resolved (Discussion #816)
Yes it should, also remember you have to choose the python interpreter on vscode (bottom left corner), and select the new one you have installed.
—
Reply to this email directly, view it on GitHub <#816 (reply in thread)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AV62Y3F5A6ZFXK5X3ZLSRRDUWXHHPANCNFSM5MH4RRLA> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/AV62Y3CYJUHYBI5EW3V7R7LUWXHHPA5CNFSM5MH4RRLKYY3PNVWWK3TUL52HS4DFWFCGS43DOVZXG2LPNZBW63LNMVXHJKTDN5WW2ZLOORPWSZGOAAPGUKQ.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
-
Hey Shucks!
First I would copy the updated code as provided in the GitHub repo associated with lesson 4.
Next I would make sure that I have solcx installed through pip.
Then, the trick for me was realizing that I needed to select the correct python interpreter as specified above (thanks Vitaly!)
Let me know if this solves your problem
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: shucks18 ***@***.***>
Sent: Thursday, January 20, 2022 10:12:27 PM
To: smartcontractkit/full-blockchain-solidity-course-py ***@***.***>
Cc: Tokenomacs ***@***.***>; Mention ***@***.***>
Subject: Re: [smartcontractkit/full-blockchain-solidity-course-py] Lesson 4: Import "solcx" could not be resolved (Discussion #816)
hi man how did u solve the solcx issue ? :(
—
Reply to this email directly, view it on GitHub<#816 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AV62Y3EERBAR2N4KC36GQC3UXDFJXANCNFSM5MH4RRLA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Nice! It seems like a common problem
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: shucks18 ***@***.***>
Sent: Thursday, January 20, 2022 10:16:46 PM
To: smartcontractkit/full-blockchain-solidity-course-py ***@***.***>
Cc: Tokenomacs ***@***.***>; Mention ***@***.***>
Subject: Re: [smartcontractkit/full-blockchain-solidity-course-py] Lesson 4: Import "solcx" could not be resolved (Discussion #816)
oh my days it was the python interpreter for me thanks for this!!
—
Reply to this email directly, view it on GitHub<#816 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AV62Y3EDHKTDUXID3XGYVM3UXDFZ5ANCNFSM5MH4RRLA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Closing this thread as this is solved now: |
Beta Was this translation helpful? Give feedback.
Closing this thread as this is solved now:
Solution: select the correct python interpreter on vscode.