Questions tagged [py-solc-x]
The py-solc-x tag has no usage guidance.
17 questions
0
votes
0
answers
23
views
I can't get solc to work on vs code
I am trying to use "compile_source" and it doesn't work, solcx is installed and is the latest version:
this is the error:
Traceback (most recent call last):
File "c:\Users\Matteo\...
1
vote
0
answers
80
views
Python solcx incude path
I am using solidity compiler version 0.8.17 via solcx wrapper.
I have some imports which are in the format @organisation/contract/interface/c.sol. These packages are installed via npm. The solcx ...
0
votes
2
answers
52
views
error when compiling my solidity file with python
Here is my deploy.py code
The error message I got
I added all solcx python packages.
0
votes
1
answer
114
views
Enable "viaIR" in py-solc-x
Does anyone know how to enable it, I searched the documentation but there is nothing.
1
vote
0
answers
258
views
When i using solcx to compile my contract i got some error
I need to using solc to compile my contract,but i got some error when i compile the contract, here is my counter contract
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;
import "./...
0
votes
2
answers
130
views
my code doesn't run but shows "Downloaded binary would not execute, or returned unexpected output" in the terminal. Please help check where i am wrong
from solcx import compile_standard, install_solc
install_solc("0.6.0")
with open("SimpleStorage.sol", "r") as file:
simple_storage_file = file.read()
# compile Our ...
0
votes
1
answer
69
views
Started to learning blockchain from free code camp. Showing this error while compiling
import json
from solcx import compile_standard, install_solc
with open("./SimpleStorage.sol", "r") as file:
simple_storage_file = file.read()
print("Installing...")
...
1
vote
1
answer
716
views
Error in solcx python package
While deploying the following code:
from solcx import compile_standard, install_solc
import json
from web3 import Web3
install_solc("0.8.0")
with open("./SimpleStorage.sol", &...
0
votes
2
answers
4k
views
How can I store a private key as an environmental variable and call it in my code?
import os
from dotenv import dotenv_value
.
.
.
private_key = os.getenv("PRIVATE_KEY")
.
.
print(private_key) //for testing purposes only
This is what I currently have to utilize my ...
0
votes
1
answer
123
views
solc_version not working on VS Code (Mac OSX)
I tried running the code below and gave me the error message (bottom of post).
with open("./SimpleStorage.sol", "r") as file:
simple_storage_file = file.read()
print(...
0
votes
0
answers
168
views
I am trying to print out the variable (compiled_sol), so I can deploy my smart contract, but I keep running at this error
INFO: Could not find files for the given pattern(s).
Traceback (most recent call last):
File "C:\Users\jethr\demos\web3_py_simple_storage\deploy.py", line 8, in <module>
...
1
vote
1
answer
360
views
How do I fix the 'Only "Solidity" or "Yul" is supported as a language' error from py-solc-x
this is the error I get after running this code
from solcx import compile_standard, install_solc
install_solc("0.6.0")
#from my crowdFund.sol file i call the whole file
with open("./...
0
votes
2
answers
672
views
Issue with py-solc-x library
I don't really know what's wrong with my code or what's wrong about the way I installed and imported this library, but I just keep receiving this error and I don't really know how to handle it.
I ...
1
vote
0
answers
542
views
Compiled contract bytecode not matching deployed one with any solc version
As an academic exercise inspired by this post, I'm trying to verify the LINK token contract, comparing the one I get from Web3.py to the result that I get from compiling the source code using solcx. ...
29
votes
6
answers
17k
views
having a problem with solc-x version "solc 0.6.0 has not been installed"
I m trying to print out the variable (compiled_sol) as you will see in the code below of the python file named deploy.py so I can deploy my smart contract, but I keep running at this error
*****INFO: ...
0
votes
1
answer
734
views
solcx.exceptions.SolcError: Unknown key "*"
I'm learning how to deploy a smart contract using a Python script and I keep getting the following error:
> py deploy.py
INFO: Could not find files for the given pattern(s).
Traceback (most recent ...
1
vote
1
answer
967
views
SolcInstallationError: Downloaded binary would not execute, or returned unexpected output
I am attempting to do the 'brownie compile' but each time it processes I am provided with 'SolcInstallation Error' - Downloaded Library would not execute or returned unexpected output. I have gone ...