No module named setuptools

I try to issue a certificate using ethereum ropsten network. Everytime i write ```
python setup.py experimental --blockchain=ethereum i get this error

bash-4.3# python setup.py experimental --blockchain=ethereum

Traceback (most recent call last):

File “setup.py”, line 6, in <module>

from setuptools import find_packages

ImportError: No module named setuptools

Can someone help me what im doing wrong thanks im using the most recent version of cert-issuer

Are you using a virtual environment? If not, you may want to read the recommendations on it here:

Yes i have a running viritual enviroment

Failed building wheel for scrypt

subprocess.CalledProcessError: Command ‘[’/Users/…/Documents/ethereum_/cert-tools/venv/bin/python’, ‘-m’, ‘pip’, ‘install’, ‘ethereum==2.3.1\n’]’ returned non-zero exit status 1.

scrypt-1.2.1/libcperciva/crypto/crypto_aes.c:6:10: fatal error: ‘openssl/aes.h’ file not found

Ah, yes, I have seen this before as well. It seems to be the case that OpenSSL flat-out will not build on Windows :frowning: I’ve never been able to get things going in Windows, as a result of this. To get around that, I ended up dropping an Ubuntu VM on my box, and now I just do all of my Blockcerts development in my VM.

How can this be fixed? everytime i try to run the following command i have already setup my docker image with the correct settings of the config.ini

issuing_address = my_address

chain=ethereum_ropsten

usb_name=/etc/cert-issuer/

key_file=pk_issuer.txt

unsigned_certificates_dir=/etc/cert-issuer/data/unsigned_certificates

blockchain_certificates_dir=/etc/cert-issuer/data/blockchain_certificates

work_dir=/etc/cert-issuer/work

no_safe_mode

~

~

python setup.py experimental --blockchain=ethereum
``` the certificate is not getting issued on the ropsten chain i only get this message and nothing happends.
running experimental
Successfully installed pysha3-1.0.2
Requirement already satisfied: python-bitcoinlib>=0.10.1 in ./venv/lib/python3.7/site-packages (0.10.1)
Requirement already satisfied: tox>=3.0.0 in ./venv/lib/python3.7/site-packages (3.4.0)
Requirement already satisfied: toml>=0.9.4 in ./venv/lib/python3.7/site-packages (from tox>=3.0.0) (0.10.0)
Requirement already satisfied: virtualenv>=1.11.2 in ./venv/lib/python3.7/site-packages (from tox>=3.0.0) (16.0.0)
Requirement already satisfied: pluggy<1,>=0.3.0 in ./venv/lib/python3.7/site-packages (from tox>=3.0.0) (0.7.1)
Requirement already satisfied: six<2,>=1.0.0 in ./venv/lib/python3.7/site-packages (from tox>=3.0.0) (1.11.0)
Requirement already satisfied: setuptools>=30.0.0 in ./venv/lib/python3.7/site-packages (from tox>=3.0.0) (40.4.3)
Requirement already satisfied: py<2,>=1.4.17 in ./venv/lib/python3.7/site-packages (from tox>=3.0.0) (1.6.0)
Requirement already satisfied: ethereum==2.3.1 in ./venv/lib/python3.7/site-packages (2.3.1)
Requirement already satisfied: pbkdf2 in ./venv/lib/python3.7/site-packages (from ethereum==2.3.1) (1.3)
Requirement already satisfied: PyYAML in ./venv/lib/python3.7/site-packages (from ethereum==2.3.1) (3.13)
Requirement already satisfied: py-ecc in ./venv/lib/python3.7/site-packages (from ethereum==2.3.1) (1.4.3)
Requirement already satisfied: repoze.lru in ./venv/lib/python3.7/site-packages (from ethereum==2.3.1) (0.7)
Requirement already satisfied: pycryptodome>=3.4.7 in ./venv/lib/python3.7/site-packages (from ethereum==2.3.1) (3.6.6)
Requirement already satisfied: pyethash in ./venv/lib/python3.7/site-packages (from ethereum==2.3.1) (0.1.27)
Requirement already satisfied: coincurve>=7.0.0 in ./venv/lib/python3.7/site-packages (from ethereum==2.3.1) (9.0.0)
Requirement already satisfied: pysha3>=1.0.1 in ./venv/lib/python3.7/site-packages (from ethereum==2.3.1) (1.0.2)
Requirement already satisfied: scrypt in ./venv/lib/python3.7/site-packages (from ethereum==2.3.1) (0.8.6)
Requirement already satisfied: rlp>=0.4.7 in ./venv/lib/python3.7/site-packages (from ethereum==2.3.1) (0.6.0)
Requirement already satisfied: future in ./venv/lib/python3.7/site-packages (from ethereum==2.3.1) (0.16.0)
Requirement already satisfied: cffi>=1.3.0 in ./venv/lib/python3.7/site-packages (from coincurve>=7.0.0->ethereum==2.3.1) (1.11.5)
Requirement already satisfied: asn1crypto in ./venv/lib/python3.7/site-packages (from coincurve>=7.0.0->ethereum==2.3.1) (0.24.0)
Requirement already satisfied: pycparser in ./venv/lib/python3.7/site-packages (from cffi>=1.3.0->coincurve>=7.0.0->ethereum==2.3.1) (2.19)
Requirement already satisfied: rlp<1 in ./venv/lib/python3.7/site-packages (0.6.0)

That looks basically okay to me, as far as Python pulling in its requirements. If that all goes through, you should be able to run cert-issuer as the next step.

I have tried everthing i first get error of ModuleNotFoundError: No module named ‘rlp’ i install this by pip install rlp then i get a message ethereum not found? can someone help me out i have tried almost everything nothing seems to be working.

1 Like

I have also experienced this same issue. Please, has it been resolved. If yes, can you help me?

Solved now. I had to run the following;
sudo apt-get install build-essential libssl-dev python-dev
sudo apt-get install -y scrypt