PatrickAlphaC / web3_py_simple_storage

47 stars 78 forks source link

No module named solcx #28

Closed Akashbhaskar2001 closed 2 years ago

Akashbhaskar2001 commented 2 years ago

sir this is my code i tried several times and also looked into the issues and made the changes which are not in the video but still i am getting this problem pls help

from solcx import compile_standard, install_solc with open("./SimpleStorage.sol", "r") as file: simple_storage_file = file.read() print("Installing...") install_solc("0.6.0") compiled_sol = compile_standard( { "language": "Solidity", "sources": {"SimpleStorage.sol": {"content": simple_storage_file}}, "settings": { "outputSelection": { "": { "": ["abi", "metadata", "evm.bytecode", "evm.bytecode.sourceMap"] } } }, }, solc_version="0.6.0", )

error : akashbhaskar@Akashs-MacBook-Air web3_py_simple_storage % python deploy.py Traceback (most recent call last): File "deploy.py", line 1, in from solcx import compile_standard, install_solc ImportError: No module named solcx

verystochastic commented 2 years ago

Hi there. I am glad you posted this as I have the same error. I even copied the code from the class file in github. Did you happen to find a solution?

PatrickAlphaC commented 2 years ago

This has been solved here: https://github.com/smartcontractkit/full-blockchain-solidity-course-py/discussions/510

Please ask questions on the course in the main repo. Thank you!

verystochastic commented 2 years ago

Patrick,

Thank you so much. Really enjoying the course. Well done!

On Mon, Mar 14, 2022 at 6:39 PM Patrick Collins @.***> wrote:

This has been solved here: smartcontractkit/full-blockchain-solidity-course-py#510 https://github.com/smartcontractkit/full-blockchain-solidity-course-py/discussions/510

Please ask questions on the course in the main repo. Thank you!

— Reply to this email directly, view it on GitHub https://github.com/PatrickAlphaC/web3_py_simple_storage/issues/28#issuecomment-1067371353, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACJ4REM7IEVPLREA4FCXBBLU765ZLANCNFSM5QAVDYJA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>