crytic-compile
crytic-compile copied to clipboard
Files not found but exactly it is there
the main errors are of the type that :
karlyu@karls-MacBook-Pro crytic % crytic-compile . INFO:CryticCompile:Compilation warnings/errors on ./EchidnaE2E.sol: Error: Source "compliance/Compliance.sol" not found: File not found. Searched the following locations: "". --> EchidnaE2E.sol:4:1: | 4 | import ".././compliance/Compliance.sol"; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: Source "keys/VerifyingKyes_1.sol" not found: File not found. Searched the following locations: "". --> EchidnaE2E.sol:5:1: | 5 | import ".././keys/VerifyingKyes_1.sol"; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: Source "keys/VerifyingKeys_2.sol" not found: File not found. Searched the following locations: "". --> EchidnaE2E.sol:6:1: |
however the files are all on the exact path , have checked it again and again
so i guess do we need to put all the files into under crytic folder ? if so , that would be tooo dump
Are you using a compilation framework like hardhat or foundry? That's necessary to resolve the imports
Yes , we are using hardhat What about the next ? Do i need to change the config file ?
Does hardhat compile work? Looking at this again I noticed these are compilation issues from solc, not crytic-compile. It also appears that you may be on an old version of crytic-compile because the build command is not being logged to the terminal. Could you install the latest version of crytic-compile, run hardhat-compile and resolve any compilation errors from solc, and post the output of crytic-compile . if that doesn't succeed please?
the hardhat compile is not working as well , has the same output also i was trying to download the latest crytic-compile and install it but doing pip install will only get version 0.2.4 , even if going to the pip website https://pypi.org/project/crytic-compile/ to downlaod and do the bash pip3 install crytic-compile
if i do bash pip3 install crytic-compile==0.3.0 , the error message will be : ERROR: Could not find a version that satisfies the requirement crytic-compile==0.3.0 (from versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.1.10, 0.1.11, 0.1.12, 0.1.13, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4) ERROR: No matching distribution found for crytic-compile==0.3.0
So i installed the packages of version 0.3.0 from your newest release directly
but while i was running pip uninstall crytic-compile && pip install https://github.com/crytic/crytic-compile/archive/normalize-abs-paths.zip , the output was :
ERROR: Package 'crytic-compile' requires a different Python: 3.6.8 not in '>=3.8'
i check my python version , it is of Python 3.8.9
Then i add alias to my python to python3 , to make it of version 3.6.8
but the error is still there , any ideas ?