Lesson 4: 3:44:37 - I'm unable to compile with the request... python deploy.py in the terminal #1563
Answered
by
cromewar
richwealthyandsuccessful
asked this question in
Q&A
-
|
I'm unable to successfully compile with the request from solcx import compile_standard, install_solc
with open("./SimpleStorage.sol", "r") as file:
simple_storage_file = file.read()
print(simple_storage_file)
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.sourceMap"]}
}
},
},
solc_version="0.6.0",
)
print(compiled_sol)Currently using a Google HP ChromeBook with Chrome OS, VSCode, Python 3.9.2 ('venv':venv). Here is the error message... What should I do next to resolve this problem? |
Beta Was this translation helpful? Give feedback.
Answered by
cromewar
Jul 2, 2022
Replies: 1 comment 2 replies
-
|
Hello there, the compiler is complaining as you were not selected the correct language: Solidity but you actually did, so I have some recommendations for you:
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
richwealthyandsuccessful
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello there, the compiler is complaining as you were not selected the correct language: Solidity but you actually did, so I have some recommendations for you: