ApeWorX / py-solc-x

Python wrapper and version management tool for the solc Solidity compiler.
https://solcx.readthedocs.io/
MIT License
138 stars 48 forks source link

install error #129

Open step21 opened 2 years ago

step21 commented 2 years ago

Environment information

What was wrong?

When running python3.7 -m solcx.install v0.8.9 (or similar) it complains about not solc present (which is why I ran this) and that it was loaded before being run.

RuntimeWarning: 'solcx.install' found in sys.modules after import of package 'solcx', but prior to execution of 'solcx.install'; this may result in unpredictable behaviour

Maybe this was because I already tried to run it before? Also after checking the output directory, it did install solc, but this was not visible from the output.

Full output (PATH somewhat redacted):

❯ python3.7 -m solcx.install v0.5.0
which: no solc in (/home/user/.local/bin:/home/user/bin:<system paths>)
/usr/lib64/python3.7/runpy.py:125: RuntimeWarning: 'solcx.install' found in sys.modules after import of package 'solcx', but prior to execution of 'solcx.install'; this may result in unpredictable behaviour
  warn(RuntimeWarning(msg))
which: no solc in (/home/user/.local/bin:/home/user/bin:<system paths>)