Questions tagged [py-solc-x]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
33 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 ...
Bobo's user avatar
  • 21
0 votes
2 answers
27 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.
Salma Sameer's user avatar
0 votes
1 answer
79 views

Enable "viaIR" in py-solc-x

Does anyone know how to enable it, I searched the documentation but there is nothing.
ErBroPazzoAssurdo's user avatar
0 votes
0 answers
23 views

Solidity Compiler - Python package error

"I just realised that solc-x isn't running on my Mac-OS Monterey version. What could be wrong?"
Nkwam Philip's user avatar
1 vote
0 answers
180 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 "./...
iop04329's user avatar
0 votes
2 answers
90 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 ...
christian olori's user avatar
0 votes
1 answer
65 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...") ...
Geet Mukherjee's user avatar
1 vote
1 answer
544 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", &...
Kashyap Panchal's user avatar
0 votes
2 answers
2k 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 ...
Gray Blanchard's user avatar
0 votes
1 answer
114 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(...
j-ananto's user avatar
0 votes
0 answers
142 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> ...
Jebizness's user avatar
1 vote
1 answer
310 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("./...
Idehen Scofield's user avatar
0 votes
2 answers
588 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 ...
Mihai Munteanu's user avatar
1 vote
0 answers
441 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. ...
dvilela's user avatar
  • 111
27 votes
6 answers
15k 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: ...
Houssam DERFOUFI's user avatar
0 votes
1 answer
637 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 ...
Lucas Walters's user avatar
1 vote
1 answer
874 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 ...
Niko's user avatar
  • 11