When I ran
python setup.py experimental --blockchain=ethereum
to set up cert-issuer on ethereum, I got the following error:
Annas-MacBook-Air:cert-issuer annacuddeback$ python setup.py experimental --blockchain=ethereum
running experimental
Collecting cert-core>=2.1.9
Could not fetch URL https://pypi.python.org/simple/cert-core/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661) - skipping
Could not find a version that satisfies the requirement cert-core>=2.1.9 (from versions: )
No matching distribution found for cert-core>=2.1.9
Traceback (most recent call last):
File “setup.py”, line 70, in
packages=find_packages()
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py”, line 151, in setup
dist.run_commands()
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py”, line 953, in run_commands
self.run_command(cmd)
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py”, line 972, in run_command
cmd_obj.run()
File “setup.py”, line 44, in run
install(reqs)
File “setup.py”, line 48, in install
subprocess.check_call([sys.executable, ‘-m’, ‘pip’, ‘install’, package])
File “/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py”, line 186, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[’/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python’, ‘-m’, ‘pip’, ‘install’, ‘cert-core>=2.1.9\n’]’ returned non-zero exit status 1
Annas-MacBook-Air:cert-issuer annacuddeback$
When I tried installing cert-issuer on ethereum I first mistakenly ran
python setup.py install
which may have something to do with the errors I’m having. Did anyone else run into this? So far I’ve tried uninstalling setup.py, but I get the following error:
Annas-MacBook-Air:cert-issuer annacuddeback$ pip uninstall setup.py
Skipping setup.py as it is not installed.
Has anyone else run into this problem? If so, how did you resolve it?
Thank you! Running the command with python3 instead of python seems to have resolved the cert-core error since it didn’t have any problem collecting it this time. When I ran it though, I got a traceback error partway through:
This appears to be an issue with the setup.py file, does it need to be modified?
While I’m not familiar with this exact error, I do see a reference to pysha3 in the red error log. I’ve had problems with this as well due to conflicting package dependencies.
The dockerfile handles this dependency conflict, and locally I’ve had to do a little digging myself to handle it. Check out this link for more info on it, I hope it solves your problem but if not let me know.
I’m trying to use vi /usr/local/lib/python3.6/site-packages/chainpoint-0.0.2.dist-info/METADATA to change the merkletools settings but the endpoint doesn’t exist so it just creates a new directory that I then can’t edit with vim. I have a friend who is also working through this and she resolved the problem by re-installing pysha3, but when I did it I still got almost the exact same error:
I don’t have enough python experience as I’d like, I think a lot of people use virtual environments (and it’s technically suggested we do so with our blockcerts python code). If you are using a venv, then the path might be different than what I said. I believe I wasn’t using a venv when I was going through it (shame on me).
I tried running this in a venv (I wasn’t already) and was actually able to edit in vim but when I hit esc and ran “:wq” I got this error:
/usr/local/lib/python3.6/site-packages/chainpoint-0.0.2.dist-info/METADATA" E212: Can’t open file for writing
Actually it appears I don’t have a python3.6 directory in /usr/local/lib, so I’m looking into that now. That’s probably the root of all my routing errors.
If you’re running it in venv, then I think the path to your site-packages is going to be different. I am unsure of how to figure that out, but if anyone here has experience with venv, or if you figure out how to find the path, it would be appreciated if it was posted here. I think this issue has come up more than I’d like
but I can’t find the chainpoint-0.0.2.dist-info directory inside it. Is it possible the correct METADATA file may be someplace else?
Also, any thoughts on where I can find “merkletools-1.0.2-py3.*.egg-info/requires.txt”? I found a reference to it in the Dockerfile, but I couldn’t find the file itself. I also searched for “egg-info/requires.txt” and “requires.txt” and didn’t find it. Is it possible I don’t have the right libraries downloaded?
I included the photo of the file path below in case seeing the folders in site-packages would be helpful
@eulerspython: If it still helps. I think it happened because you do not have python3-dev installed there.
If you do have it installed, then it could be an issue with pysha3 version.