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

library conflict with docker version #132

Closed
jchartrand opened this issue Mar 6, 2019 · 8 comments
Closed

library conflict with docker version #132

jchartrand opened this issue Mar 6, 2019 · 8 comments

Comments

@jchartrand
Copy link

I've followed the instructions for running the cert-issuer from the docker container, and all is well until I actually invoke the 'cert-issuer' command, at which point I get an error (pasted below) that seems to suggest library incompatibilities, but I don't know enough about Python to fiddle with the dependencies. It seems like I need to either update connexion or install an earlier version of jsonschema. Any suggestions would be much appreciated.

bash-4.3# cert-issuer -c /etc/cert-issuer/conf.ini
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 583, in _build_master
ws.require(requires)
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 900, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 791, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (jsonschema 3.0.1 (/usr/lib/python3.6/site-packages), Requirement.parse('jsonschema<3.0.0,>=2.5.1'), {'connexion'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/bin/cert-issuer", line 6, in
from pkg_resources import load_entry_point
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 3191, in
@_call_aside
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 3175, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 3204, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 585, in _build_master
return cls._build_from_requirements(requires)
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 598, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 791, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (jsonschema 3.0.1 (/usr/lib/python3.6/site-packages), Requirement.parse('jsonschema<3.0.0,>=2.5.1'), {'connexion'})
bash-4.3#

@yancyribbens
Copy link
Contributor

hi @jchartrand. There are a few different ways to run cert-issuer from a docker container. Can you post what build command you used to build the container?

@jchartrand
Copy link
Author

jchartrand commented Mar 9, 2019 via email

@yancyribbens
Copy link
Contributor

@jchartrand thanks for the update. That would be great if you put in a PR to fix the existing Dockerfile, however, In general, that dockerfile is very old and outdated.

You could instead use one of the newer docker files. The main reason I created the newer Docker files is that bitcoind for example is running version v0.13.2.0 and is antiquated.

@SmartManQ8
Copy link

hi @yancyribbens ,

Thanks for your feedback. I have the same problem and I have the latest Dockerfile (not Dockerfile.web) but I still get the same error :

bash-4.3# cert-issuer -c /etc/cert-issuer/conf.ini
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 583, in _build_master
ws.require(requires)
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 900, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 791, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (jsonschema 3.0.1 (/usr/lib/python3.6/site-packages), Requirement.parse('jsonschema<3.0.0,>=2.5.1'), {'connexion'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/bin/cert-issuer", line 6, in
from pkg_resources import load_entry_point
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 3241, in
@_call_aside
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 3225, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 3254, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 585, in _build_master
return cls._build_from_requirements(requires)
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 598, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 791, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (jsonschema 3.0.1 (/usr/lib/python3.6/site-packages), Requirement.parse('jsonschema<3.0.0,>=2.5.1'), {'connexion'})
bash-4.3#

Any feedback or suggestion is highly appreciated .

Thanks
Rami

@ghost
Copy link

ghost commented Apr 22, 2019

Thanks for the reports, I ran into this myself too.

Setting jsonschema<3.0.0 in requirements.txt seemed to fix the issue. I'll try to get a PR in shortly.

@ghost
Copy link

ghost commented Apr 22, 2019

Okay this should do the trick if anyone wanted to review/validate real quick: #137

ghost pushed a commit that referenced this issue Apr 23, 2019
#132 - Forcing jsonscheme package to below 3.0 to remove dep conflict
@ghost
Copy link

ghost commented Apr 23, 2019

Merged, if that doesn't fix the issuer, please open ticket back up.

@ghost ghost closed this as completed Apr 23, 2019
@BlackSpartan
Copy link

Hie AnthonyRonning thank you for the solution it worked but now I'm facing a problem when I issue my certificates using the regtest mode, there are no certificates in my blockchain directory may you please help.

fuerve pushed a commit to fuerve/cert-issuer that referenced this issue Jun 17, 2020
This issue was closed.
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

4 participants