Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solcx module not found #135

Open
JMiddey opened this issue Dec 8, 2021 · 5 comments
Open

solcx module not found #135

JMiddey opened this issue Dec 8, 2021 · 5 comments

Comments

@JMiddey
Copy link

JMiddey commented Dec 8, 2021

Environment information

  • py-solc-x Version: 1.1.1
  • solc Version: x.x.x
  • Python Version: 3.10.1 & python 2.7.18
  • OS: osx/linux/win Mac

What was wrong?

solcx module not found and cannot run command solcx

Please include information like:

  • what command you ran: solcx & ran my .py file where it had import solcx at the top, giving the error of module not found
    *joe@Joes-MacBook-Pro web3_py_simple_storage % solcx
    zsh: command not found: solcx
    joe@Joes-MacBook-Pro web3_py_simple_storage % pip list
    Package Version

aiohttp 3.8.1
aiosignal 1.2.0
argcomplete 1.12.3
async-timeout 4.0.1
attrs 21.2.0
base58 2.1.1
bitarray 1.2.2
black 21.12b0
certifi 2021.10.8
charset-normalizer 2.0.9
click 8.0.3
cytoolz 0.11.2
eth-abi 2.1.1
eth-account 0.5.6
eth-hash 0.3.2
eth-keyfile 0.5.1
eth-keys 0.3.3
eth-rlp 0.2.1
eth-typing 2.2.2
eth-utils 1.10.0
frozenlist 1.2.0
hexbytes 0.2.2
idna 3.3
ipfshttpclient 0.8.0a2
jsonschema 3.2.0
lru-dict 1.1.7
multiaddr 0.0.9
multidict 5.2.0
mypy-extensions 0.4.3
netaddr 0.8.0
packaging 21.3
parsimonious 0.8.1
pathspec 0.9.0
pip 21.3.1
pipx 0.16.4
platformdirs 2.4.0
protobuf 3.19.1
py-solc-x 1.1.1
pycryptodome 3.12.0
pyparsing 3.0.6
pyrsistent 0.18.0
python-dotenv 0.19.2
requests 2.26.0
rlp 2.0.1
semantic-version 2.8.5
setuptools 58.1.0
six 1.16.0
solc 0.0.0a0
tomli 1.2.2
toolz 0.11.1
typing_extensions 4.0.1
urllib3 1.26.7
userpath 1.7.0
varint 1.0.2
web3 5.25.0
websockets 9.1
wheel 0.37.0
yarl 1.7.2
joe@Joes-MacBook-Pro web3_py_simple_storage % python deploy.py
Traceback (most recent call last):
File "deploy.py", line 1, in
import solcx
ImportError: No module named solcx

How can it be fixed?

Fill this in if you know how the bug could be fixed.

@JMiddey
Copy link
Author

JMiddey commented Dec 9, 2021

Hi I am still having trouble with this, I have followed both ways of installing (using the git clone and the npm install) and my terminal is still unable to find the module, even when I cd py-solc-x and use the pytest command it says command not found pytest

@3preston
Copy link

Having this same issue. Did you find any resolution?

@lasborne
Copy link

lasborne commented Jan 7, 2022

I am having the same issue at the moment, i won't hesitate to share if i find a worthy solution

@TekyaygilFethi
Copy link

Could you please look to where it installed via executing pip3 show py-solc-x and pip3 show solc commands? In my case I was using Python 3.10 but package has been installed under Python 3.8 which I had to change interpreter to Python 3.8 in Visual Studio Code to get things done.

@JohnEMagee
Copy link

In case people are still having issues notice that this build, and a lot of stuff liks this has issues on the new M1 mac chips. I don't fully get why but it's not testable yet (for some reason). I am running the youtube fcc tutorial and it took me a long time to get it to work. I can ONLY get the current versions of solidity (0.8.12) to compile. I couldn't get older versions to fully compile in any way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants