INFO: Could not find files for the given pattern(s). Traceback (most recent call last): #254
Unanswered
Anu-srinivasan
asked this question in
Q&A
Replies: 2 comments 10 replies
-
Note: Don't worry about this, is not an actual problem |
Beta Was this translation helpful? Give feedback.
9 replies
-
Hi, I also have the same issue... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all
I am getting this error:
Please help:
C:\Users\demos\simple_storage>python deploy.py
INFO: Could not find files for the given pattern(s).
Traceback (most recent call last):
File "C:\Users\demos\simple_storage\deploy.py", line 10, in
compiled_sol = compile_standard(
File "C:\Python39\lib\site-packages\solcx\main.py", line 394, in compile_standard
raise SolcError(
solcx.exceptions.SolcError: Only "Solidity" or "Yul" is supported as a language.
My code is
import solcx
solcx.install_solc('0.8.0') # or whatever version we want
from solcx import compile_standard
# <- Add this line and run it at least once!
with open("./SimpleStorage.sol", "r") as file:
simple_storage_file = file.read()
compiled_sol = compile_standard(
{
"language": "solidity",
"sources": {"SimpleStorage.sol": {"content": simple_storage_file}},
"settings": {
"outputSelection": {
"": {"": ["abi", "metadata", "evm.bytecode", "evm.sourceMap"]}
}
},
},
solc_version="0.8.0",
)
contract is
pragma solidity 0.8.0;
contract SimpleStorage{
uint256 favoriteNumber;
bool favoriteBool;
}
Beta Was this translation helpful? Give feedback.
All reactions