diff --git a/ethereum/tools/_solidity.py b/ethereum/tools/_solidity.py index f655f7546..159a943db 100644 --- a/ethereum/tools/_solidity.py +++ b/ethereum/tools/_solidity.py @@ -123,8 +123,8 @@ def solc_parse_output(compiler_output): def compiler_version(): """ Return the version of the installed solc. """ - version_info = subprocess.check_output(['solc', '--version']) - match = re.search(b'^Version: ([0-9a-z.-]+)/', version_info, re.MULTILINE) + version_info = subprocess.check_output(['solc', '--version'], stderr=subprocess.STDOUT) + match = re.search(b'^Version: ([0-9a-z.-]+)', version_info, re.MULTILINE) if match: return match.group(1)