py-solc is incompatible with Solidity compiler 0.5.0
See original GitHub issuepy-solc
Version: 3.2.0solc
Version: 0.5.0- Python Version: 3.6.7
- OS: Linux
What was wrong?
py-solc is incompatible with Solidity compiler 0.5.0
--combined-json clone-bin
is deprecated in version 0.5.0 but is set in main.py and wrapper.py. Has to be removed.
Compile from source uses the solc compiler option to compile from stdin but does this incorrectly.
The fix would be to add command += "-"
at the end of the command creation.
A quick and dirty fix for both issues can be seen on my repository master branch at:
https://github.com/Jonasmpi/py-solc
Cute Animal Picture
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:5
Top Results From Across the Web
solidity - Source File requires different compiler version
When I change pragma solidity ^0.4.20; to pragma solidity 0.5.0; error disappears. Even there is error, I am able to deploy contracts. – ......
Read more >Installing the Solidity Compiler — Solidity 0.8.16 documentation
The commandline options of solcjs are not compatible with solc and tools (such as geth ) expecting the behaviour of solc will not...
Read more >Failing to compile multiple Solidity versions - Stack Overflow
This can happen because they have incompatible Solidity pragmas, or don't match any of your configured Solidity compilers.
Read more >Installing the Solidity Compiler — Solidity 0.4.21 documentation
The commandline is named solcjs . The comandline options of solcjs are not compatible with solc and tools (such as geth ) expecting...
Read more >py-solc-x 0.5.0 - PyPI
Python wrapper around the solc Solidity compiler with 0.5.x support. Forked from py-solc. Dependencies. Py-solc-x allows the use of multiple versions of ...
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
@Pet3ris Sorry for the late anwser. For myself we complety changed our backend code now to higher maintained libraries based on javascript, because as @ABBDVD pointed out, there are to many things that are broken at the moment. Depending on the situation i may consider doing this.
@Jonasmpi - I’m starting to rely on this as it’s very faithful to the original - thanks for putting it together. I found the other fork attempts to self-install and maintain
solc
and does not play well withbrew
.Would you consider rolling this out as a separate fork and
pypi
repo so that future changes from other people could be accepted? It looks like it won’t get merged in here.