Same solcx issue #614
-
Hi team, Same issue as I've seen posted here often about solcx. My specific error is: File "deploy.py", line 1, in After many tries I resorted to just copy and pasted the latest code from the course repo: from solcx import compile_standard, install_solc
with open("./SimpleStorage.sol", "r") as file:
simple_storage_file = file.read()
# We add these two lines that we forgot from the video!
print("Installing...")
install_solc("0.6.0")
# Solidity source code
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",
)
print(compiled_sol)
I have installed solcx correctly: pip3 install py-solc-x Have installed/unistalled many times too. Please advise. I am sure this is very basic. But have been stuck on this error for 3 hours. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Have this issue with web3 as well. I have been searching everywhere for what the issue may be (discussions on this course, google, stackoverflow). And the only thing that worked for me is to create a virtual environment and then install web3 and solcx there. I hope this is good enough to continue with this course. I would however love to figure out why I can't seem to get these modules to work after I install them! |
Beta Was this translation helpful? Give feedback.
-
I resolved this issue by using the command |
Beta Was this translation helpful? Give feedback.
Have this issue with web3 as well.
I have been searching everywhere for what the issue may be (discussions on this course, google, stackoverflow). And the only thing that worked for me is to create a virtual environment and then install web3 and solcx there.
I hope this is good enough to continue with this course.
I would however love to figure out why I can't seem to get these modules to work after I install them!