Missing solc installation #5
-
| During the first compilation (around 3:45:00), you are not showing that is required to install the  I've solved with:  | 
Beta Was this translation helpful? Give feedback.
Replies: 14 comments 67 replies
-
| thank you Alberto! I got stuck here as well. this worked perfectly. I added in version ('0.6.0') to match the tutorial and it worked as well. | 
Beta Was this translation helpful? Give feedback.
-
| Thanks so much!! I've added this to our issue tracker, and updated our code examples: https://github.com/smartcontractkit/full-blockchain-solidity-course-py/blob/main/chronological-issues-from-video.md#lesson-4 Thank you so much! | 
Beta Was this translation helpful? Give feedback.
-
| Thank you for bringing up the problem, but I still get 
 when i try to install the package.. 
 Any Ideas what the Problem could be? | 
Beta Was this translation helpful? Give feedback.
-
| Hello I have this error. My code is this: 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.bitecode", "evm.sourceMap"]}
            }
        }
    }
    solc_version="0.6.0",
)
print(compiled_sol)Thanks in advance. | 
Beta Was this translation helpful? Give feedback.
-
| I put in the fixes as suggested (from solcx import compile_standard, install_solc) and (install_solc("0.6.0"). It still seems to run correctly, and I'm willing to just ignore it and continue on, though I'm a little worried it will cause issues down the road. My code is below, in case you see something of concern. `from solcx import compile_standard, install_solc
with open("./SimpleStorage.sol", "r") as file:
    simple_storage_file = file.read()
    print(simple_storage_file)
#compile Solidity
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)` | 
Beta Was this translation helpful? Give feedback.
-
| from solcx import compile_standard, install_solc
with open("./SimpleStorage.sol", "r") as file:
    simple_storage_file = file.read()
    print(simple_storage_file)
#compile Solidity
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)======== Traceback (most recent call last): please help. | 
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
| 
 Resolved the issue thanks | 
Beta Was this translation helpful? Give feedback.
-
| from solcx import compile_standard, install_solc  # <- Import the install_solc method!
install_solc("0.6.0")
with open("SimpleStorage.sol", "r") as file:
    simple_storage_file = file.read()
compiled_sol = compile_standard(
    {
        "language": "Solidity",
        "sources": {"ScleaimpleStorage.sol": {"content": simple_storage_file}},
        "settings": {
            "outputSelection": {
                "*": {"*": ["abi", "metadata", "evm.bytecode", "evm.sourceMap"]}
            }
        },
    },
    solc_version="0.6.0",
)
print("compiled_sol")
The default interactive shell is now zsh. | 
Beta Was this translation helpful? Give feedback.
-
| Having a similar sort of problem. But I'm receiving.... Traceback (most recent call last): 
 | 
Beta Was this translation helpful? Give feedback.
-
| How the hell do you get off this list? (Email notifications for every comment made) omg.
I’ve unsubscribed 3? x’s
Sent from an Apple  Device… On Feb 6, 2022, at 8:27 PM, caspixn ***@***.***> wrote:
 
 Having a similar sort of problem. But I'm receiving....
 Traceback (most recent call last):
 File "C:\Users\Will\Demos\web3_py_simple_storage\deploy.py", line 8, in
 compiled_sol = compile_standard(
 File "C:\Users\Will\AppData\Local\Programs\Python\Python310\lib\site-packages\solcx\main.py", line 365, in compile_standard
 raise ContractsNotFound(
 solcx.exceptions.ContractsNotFound: Input JSON does not contain any sources
 command: ``
 return code: None
 stdout:
 None
 stderr:
 None
 —
 Reply to this email directly, view it on GitHub, or unsubscribe.
 You are receiving this because you are subscribed to this thread. | 
Beta Was this translation helpful? Give feedback.
-
| Right. I did that. But still woke up to 2 dozen emails. See attachment. Something is broken.
Mike
::
MIKECHESSER-RØE
***@***.***
509-310-9445
“I never more than half succeed in expressing what I want to express. Actually not as much as that, but by no more than a tenth. That is still worth something. Often my writing is nothing but ‘stuttering.’” –Wittgenstein, Culture and Value, p. 18e
Sent from an Apple  Device…  On Feb 7, 2022, at 8:48 AM, Vasiliy Gualoto ***@***.***> wrote:
 
 Go to your github settings and remove the notifications from new content.
 —
 Reply to this email directly, view it on GitHub, or unsubscribe.
 You are receiving this because you commented. | 
Beta Was this translation helpful? Give feedback.
-
| Guys, only thing that worked for me was pretty simple: if you are on windows, just hold ctrl + shift + P and search for "python interpreter", then select the one that is recommended in the dropdown, that's it. | 
Beta Was this translation helpful? Give feedback.
-
| 
 | 
Beta Was this translation helpful? Give feedback.




Thanks so much!!
I've added this to our issue tracker, and updated our code examples: https://github.com/smartcontractkit/full-blockchain-solidity-course-py/blob/main/chronological-issues-from-video.md#lesson-4
Thank you so much!