Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upClarify solc unavailable message #40
Comments
|
+1 for this. Just ran into this in trying to get the web3.py quickstart to run. Even after install
|
|
Maybe adding a try/except here https://github.com/ethereum/py-solc/blob/master/solc/wrapper.py#L152-L155 is a good approach. Like:
|
|
I think the right place to catch this is in in |
|
@pipermerriam cool, I think I can probably add that in as part of the work I'm doing on Web3.py. I ran into this as I was setting up a test bed for work on Web3.py. Still having an issue actually even though I installed Solidity. Must be a path or environment issue I'm guessing? |
|
Yeah, if |
start for ethereum#40 (still untested)
|
Hello Gentlemen, Is there any clarity on this py-solc import issue? I have it installed but still not able to import the module into my python scripts:
Thank you for all the great work! Ricardo PS. I attempted to add the path provided with which solc to my $PATH but not sure that is working/I'm doing it right. Thanks again. |
|
@grde1988 that's a different issue (notice the difference between the errors: "No such file or directory" and "ImportError: No module named 'solc'"). Please ask a fresh stackexchange question, including your steps taken to set up, versions installed (using |
short: long bs: so for me when you do a fresh
but I installed it. oh wait when I type I do I don't think it would really be that hard you could do something like python3 -m py-solc path/to/file.sol for compiling and deploying. oh how hypocritical of me I am not defining http://www.cplusplus.com/doc/tutorial/preprocessor/ , https://en.wikipedia.org/wiki/C_preprocessor. anyway to fix this the above error we hopefully the error has now changed to a easy one! so another issue I had was I had two pythons 2 and 3 on my system and pip wanted to only install on python 2 the fix to that was to run pip as module |
What was wrong?
The error message is not clear, when solc isn't available.
Examples:
Proposal: catch and reraise the exception with a note saying something like:
Cute Animal Picture