错误记录,python调用solc编译智能合约(巨坑)
-
错误信息
Traceback (most recent call last):
File “d:/pj/code/compiler.py”, line 38, in
getCFG(“auction.sol”)
File “d:/pj/code/compiler.py”, line 30, in getCFG
bytecodes=getByteCodes(filename)
File “d:/pj/code/compiler.py”, line 24, in getByteCodes
compile_res=analysis_resource_code(filename)#操作码
File “d:/pj/code/compiler.py”, line 8, in analysis_resource_code
data=compile_files([filename])
File “E:\python\lib\site-packages\solc\main.py”, line 135, in compile_files
stdoutdata, stderrdata, command, proc = solc_wrapper(**compiler_kwargs)
File “E:\python\lib\site-packages\solc\utils\string.py”, line 85, in inner
return force_obj_to_text(fn(*args, **kwargs))
File “E:\python\lib\site-packages\solc\wrapper.py”, line 169, in solc_wrapper
stderr_data=stderrdata,
solc.exceptions.SolcError: