Skip to content

Invalid option to --combined-json: clone-bin #61

@flipchan

Description

@flipchan
  • py-solc Version: 3.0.0
  • solc Version: 0.5.0
  • Python Version: 3.5.3
  • OS: Linux debian 9

What was wrong?

solc does not take the system argument "--combined-json" and returns an error
"Invalid option to --combined-json: clone-bin"


tried like this: https://stackoverflow.com/questions/50238914/py-solc-and-solidity-imports

root@debian9:~dev/eth/# solc --version    
solc, the solidity compiler commandline interface                                    
Version: 0.5.0-develop.2018.10.17+commit.72b1bb00.mod.Linux.g++    

root@debian9:~dev/eth/# python3.5       
Python 3.5.3 (default, Sep 27 2018, 17:25:39)                                      
[GCC 6.3.0 20170516] on linux                                                      
Type "help", "copyright", "credits" or "license" for more information.             
>>> import os
>>> from solc import compile_files
>>> PROJECT_ROOT = os.getcwd()
>>> compiled_sol = compile_files([os.path.join(PROJECT_ROOT, "bar.sol"), os.path.join(PROJECT_
ROOT, "baz.sol")])                                                                            
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.5/dist-packages/solc/main.py", line 135, in compile_files
    stdoutdata, stderrdata, command, proc = solc_wrapper(**compiler_kwargs)
  File "/usr/local/lib/python3.5/dist-packages/solc/utils/string.py", line 85, in inner
    return force_obj_to_text(fn(*args, **kwargs))
  File "/usr/local/lib/python3.5/dist-packages/solc/wrapper.py", line 165, in solc_wrapper
    stderr_data=stderrdata,
solc.exceptions.SolcError: An error occurred during execution
> command: `solc --combined-json abi,asm,ast,bin,bin-runtime,clone-bin,devdoc,interface,opcode
s,userdoc /root/dev/eth/bar.sol /root/dev/eth/`
> return code: `1`
> stderr:

> stdout:
Invalid option to --combined-json: clone-bin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions