question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

py-solc is incompatible with Solidity compiler 0.5.0

See original GitHub issue
  • py-solc Version: 3.2.0
  • solc 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:open
  • Created 5 years ago
  • Reactions:5
  • Comments:5

github_iconTop GitHub Comments

1reaction
Jonasmpicommented, Mar 18, 2019

@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 with brew.

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.

@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.

0reactions
Pet3riscommented, Mar 14, 2019

@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 with brew.

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found