I am using python package py-solc-x for compiling the smart contract.
os.path.abspath("D:/new.sol")
Gives path where my test contract exits. 'D:\\new.sol'
Then i use compile_files to compile the contract compile_files([os.path.abspath("D:/new.sol")])
, it gives KeyError.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Muvi\AppData\Local\Programs\Python\Python36-32\lib\site-packages\solcx\main.py", line 137, in compile_files
contracts = _parse_compiler_output(stdoutdata)
File "C:\Users\Muvi\AppData\Local\Programs\Python\Python36-32\lib\site-packages\solcx\main.py", line 73, in _parse_compiler_output
data['ast'] = sources[source.split(':')[0]]['AST']
KeyError: 'D'
How can i solve this problem?