Clarify solc unavailable message
See original GitHub issueWhat was wrong?
The error message is not clear, when solc isn’t available.
Examples:
- https://ethereum.stackexchange.com/questions/26192/errno-2-no-such-file-or-directory-solc-using-py-solc-and-solidity
- https://github.com/ethereum/web3.py/issues/467
Proposal: catch and reraise the exception with a note saying something like:
The command line tool
solc
wasn’t found. Trypython -m solc.install v0.4.17
or see http://solidity.readthedocs.io/en/latest/installing-solidity.html
Cute Animal Picture
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Solc --version: command not found - Ethereum Stack Exchange
If you just want to check the version, navigate to the location where solidity is installed and then type in the command solc...
Read more >Import Path Resolution — Solidity 0.8.17 documentation
When the source is not available in the virtual filesystem, the compiler passes the source unit name to the import callback. The Host...
Read more >Failed to compile "134_flatten.sol": solc: exit status 1Error
I get the following error when the app tries to compile the sol file. The error is: Failed to compile "134_flatten.sol":solc:exit status 1Error: ......
Read more >Solidity Documentation - Read the Docs
A transaction is a message that is sent from one account to another account ... Docker images of Solidity builds are available using...
Read more >Solidity Tutorial : all about Comments | by Jean Cvllr - Medium
7.1) Using Natspec to display custom messages in UI ... The Solidity compiler solc can produces two type of documentation file (in JSON ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yeah, if
solc
isn’t on your$PATH
you can either add it to your$PATH
or set the environment variableSOLC_BINARY
to the path to thesolc
executable.I think the right place to catch this is in in
solc/wrapper.py#L53
and to usesolc.utils.filesystem.is_executable_available
to check thatsolc_binary
is present. We can then raise aFileNotFound
error with a friendly error message.