Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Running Command to Flatten Files #37

Open
pynchmeister opened this issue Apr 7, 2019 · 2 comments
Open

Error Running Command to Flatten Files #37

pynchmeister opened this issue Apr 7, 2019 · 2 comments

Comments

@pynchmeister
Copy link

pynchmeister commented Apr 7, 2019

On MacOS with latest OS. Upon running solidity_flattener SimpleToken.sol the following error is output:

  File "/usr/local/bin/solidity_flattener", line 4, in <module>
    flattener.core.main()
  File "/usr/local/lib/python3.7/site-packages/flattener/core.py", line 96, in main
    solc_proc = subprocess.run(solc_args, stdout=subprocess.PIPE, universal_newlines=True)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 472, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 1522, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'solc': 'solc'

This may be tied to the issue of Solidity 0.5.0 unable to be flattened(I will the link the issue eventually). I sure hope this is resolved soon...

@bfjs123
Copy link

bfjs123 commented Oct 27, 2019

I was able to fix this error by updating solidity on my local machine following these directions: https://solidity.readthedocs.io/en/v0.4.24/installing-solidity.html

Refer to the brew line if you're on mac

@dzarezenko
Copy link

dzarezenko commented Mar 9, 2020

Screenshot 2020-03-09 at 16 39 25

I have the same problem. Is this problem resolved already?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants