Skip to content
This repository has been archived by the owner on Aug 12, 2020. It is now read-only.

ContextualVersionConflict: (cryptography 1.3.1), Requirement.parse('cryptography>=1.3.4'), set(['PyOpenSSL'])) #117

Closed
jtokic opened this issue Aug 26, 2016 · 7 comments

Comments

@jtokic
Copy link

jtokic commented Aug 26, 2016

Error: Let's Encrypt SSL certificate installation failed: Failed letsencrypt execution: Traceback (most recent call last):
File "/usr/local/psa/var/modules/letsencrypt/venv/bin/certbot", line 11, in
sys.exit(main())
File "/usr/local/psa/var/modules/letsencrypt/venv.sIXBk/lib/python2.7/site-packages/certbot/main.py", line 700, in main
plugins = plugins_disco.PluginsRegistry.find_all()
File "/usr/local/psa/var/modules/letsencrypt/venv.sIXBk/lib/python2.7/site-packages/certbot/plugins/disco.py", line 174, in find_all
plugin_ep = PluginEntryPoint(entry_point)
File "/usr/local/psa/var/modules/letsencrypt/venv.sIXBk/lib/python2.7/site-packages/certbot/plugins/disco.py", line 33, in init
self.plugin_cls = entry_point.load()
File "/usr/local/psa/var/modules/letsencrypt/venv.sIXBk/lib/python2.7/site-packages/pkg_resources/init.py", line 2280, in load
self.require(_args, *_kwargs)
File "/usr/local/psa/var/modules/letsencrypt/venv.sIXBk/lib/python2.7/site-packages/pkg_resources/init.py", line 2297, in require
items = working_set.resolve(reqs, env, installer)
File "/usr/local/psa/var/modules/letsencrypt/venv.sIXBk/lib/python2.7/site-packages/pkg_resources/init.py", line 858, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
ContextualVersionConflict: (cryptography 1.3.1 (/usr/local/psa/var/modules/letsencrypt/venv.sIXBk/lib/python2.7/site-packages), Requirement.parse('cryptography>=1.3.4'), set(['PyOpenSSL']))

@mossmane
Copy link

Got exactly the same problem i tried every known solution but it always failed

@Lloyd1978
Copy link

Yeah +1, I installed on a clients server earlier got the same error. Ubuntu 14.04.5 LTS

@dailyhypervisor
Copy link

Same here. I installed it earlier this morning and am seeing the same issue on Centos 6.8. There error is verbatim what is posted. I have searched just about everything I can think of and cannot find any solution that works. It appears to be an issue with the cryptography, but one of the solutions I have found solve the issue. Please help......

@dailyhypervisor
Copy link

This is the error I see when trying to upgrade the cryptography:

error: command 'gcc' failed with exit status 1


Failed building wheel for cryptography
Running setup.py clean for cryptography
Failed to build cryptography
Installing collected packages: cffi, cryptography
Found existing installation: cffi 1.5.2
Uninstalling cffi-1.5.2:
Successfully uninstalled cffi-1.5.2
Found existing installation: cryptography 1.3.1
Uninstalling cryptography-1.3.1:
Successfully uninstalled cryptography-1.3.1
Running setup.py install for cryptography ... error
Complete output from command /usr/local/psa/var/modules/letsencrypt/venv.W9Q9i/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-kqimzt/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-iN67yf-record/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/psa/var/modules/letsencrypt/venv.W9Q9i/include/site/python2.7/cryptography:

@dailyhypervisor
Copy link

Plesk 12.5.30, CentOS 6.8, Python 2.6.6

@AndreasBeyer
Copy link

Same Problem
12.5.30 Update #44, Ubuntu 14.04.5‬, Python 2.7.6

@xgin
Copy link
Member

xgin commented Aug 27, 2016

The 3d-party package PyOpenSSL has been released: https://pyopenssl.readthedocs.io/en/stable/changelog.html#id1

Workaround to install the previous version:

/usr/local/psa/var/modules/letsencrypt/venv/bin/pip install pyopenssl==16.0.0

@xgin xgin changed the title Problem with certificate install ContextualVersionConflict: (cryptography 1.3.1), Requirement.parse('cryptography>=1.3.4'), set(['PyOpenSSL'])) Aug 27, 2016
@jtokic jtokic closed this as completed Aug 27, 2016
kikislater added a commit to giscan/geonode that referenced this issue Jul 2, 2019
For more information watch here : plesk/letsencrypt-plesk#117

Before error was like this : 

```
pkg_resources.ContextualVersionConflict: (cryptography 1.8.1 (/usr/lib/python2.7/site-packages), Requirement.parse('cryptography>=2.1.4'), set(['PyOpenSSL']))
```
kikislater added a commit to giscan/geonode that referenced this issue Jul 2, 2019
For more information watch here : plesk/letsencrypt-plesk#117

Before error was like this : 

```
pkg_resources.ContextualVersionConflict: (cryptography 1.8.1 (/usr/lib/python2.7/site-packages), Requirement.parse('cryptography>=2.1.4'), set(['PyOpenSSL']))
```
gannebamm added a commit to gannebamm/geonode that referenced this issue Jul 17, 2019
* [Docs] finalize geonode-project debug setup and startup section

* [Docs] Administering GeoNode: OAuth2 Access Tokens management

* [Docs] Removing misleading contents

* [Docs] Removing misleading contents

* [Docs] Getting Started part 1

* [Docs] Getting Started part 2

* [Docs] Getting Started part 3

* [Docs] Getting Started part 4

* [docs] GeoNode Project Themes

* [docs] fixing typos in basic index

* Add vim text editor, fix typos

* added ansible to docs

* fixed typos on start

* Add dev mode with regular Docker (GeoNode#4514)

* add env files for dev

* Add docker-compose scripts for dev mode

* Fix reference links to docs

* Align with template link

* Avoid clash between django and celery commands

* Fix broken links

* Align geoserver version in compose file for devel

* Remove no longer used variable

* Set env_file from root environment variable SET_DOCKER_ENV

* Align prod and devel env files

* Align filename extension of docker-compose file

* Improve cmd logic for development

* Use a single file to override for development mode

* Add docs for developing with docker

* Install ipdb for development

* Simplify pygdal installation

* Added numpy to requirements.txt

* Added numpy for SPC

* Solve letsencrypt ssl error

For more information watch here : plesk/letsencrypt-plesk#117

Before error was like this : 

```
pkg_resources.ContextualVersionConflict: (cryptography 1.8.1 (/usr/lib/python2.7/site-packages), Requirement.parse('cryptography>=2.1.4'), set(['PyOpenSSL']))
```

* Bump readthedocs-sphinx-ext from 0.5.17 to 0.6.0

Bumps [readthedocs-sphinx-ext](https://github.com/rtfd/readthedocs-sphinx-ext) from 0.5.17 to 0.6.0.
- [Release notes](https://github.com/rtfd/readthedocs-sphinx-ext/releases)
- [Commits](readthedocs/readthedocs-sphinx-ext@0.5.17...0.6.0)

Signed-off-by: dependabot-preview[bot] <[email protected]>

* Bump python-slugify from 3.0.1 to 3.0.2

Bumps [python-slugify](https://github.com/un33k/python-slugify) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/un33k/python-slugify/releases)
- [Changelog](https://github.com/un33k/python-slugify/blob/master/CHANGELOG.md)
- [Commits](un33k/python-slugify@3.0.1...3.0.2)

Signed-off-by: dependabot-preview[bot] <[email protected]>

* Bump pytest-django from 3.4.8 to 3.5.1

Bumps [pytest-django](https://github.com/pytest-dev/pytest-django) from 3.4.8 to 3.5.1.
- [Release notes](https://github.com/pytest-dev/pytest-django/releases)
- [Changelog](https://github.com/pytest-dev/pytest-django/blob/master/docs/changelog.rst)
- [Commits](pytest-dev/pytest-django@3.4.8...v3.5.1)

Signed-off-by: dependabot-preview[bot] <[email protected]>

* [Security] Bump django from 1.11.21 to 1.11.22

Bumps [django](https://github.com/django/django) from 1.11.21 to 1.11.22. **This update includes security fixes.**
- [Release notes](https://github.com/django/django/releases)
- [Commits](django/django@1.11.21...1.11.22)

Signed-off-by: dependabot-preview[bot] <[email protected]>

* Update Dockerfile

* switched to latest tags for docker images to 

solves GeoNode#4603

* Bump splinter from 0.10.0 to 0.11.0

Bumps [splinter](https://github.com/cobrateam/splinter) from 0.10.0 to 0.11.0.
- [Release notes](https://github.com/cobrateam/splinter/releases)
- [Changelog](https://github.com/cobrateam/splinter/blob/master/docs/news.rst)
- [Commits](cobrateam/splinter@0.10.0...0.11.0)

Signed-off-by: dependabot-preview[bot] <[email protected]>

* Bump pytz from 2018.9 to 2019.1

Bumps [pytz](https://github.com/stub42/pytz) from 2018.9 to 2019.1.
- [Release notes](https://github.com/stub42/pytz/releases)
- [Commits](stub42/pytz@release_2018.9...release_2019.1)

Signed-off-by: dependabot-preview[bot] <[email protected]>

*  - use correct resolved object when saving metadata

*  - use correct resolved object when saving metadata

*  - Improve Monitoring Request Filter Logging

* Bump tqdm from 4.31.1 to 4.32.2

Bumps [tqdm](https://github.com/tqdm/tqdm) from 4.31.1 to 4.32.2.
- [Release notes](https://github.com/tqdm/tqdm/releases)
- [Commits](tqdm/tqdm@v4.31.1...v4.32.2)

Signed-off-by: dependabot-preview[bot] <[email protected]>

* Bump pillow from 6.0.0 to 6.1.0

Bumps [pillow](https://github.com/python-pillow/Pillow) from 6.0.0 to 6.1.0.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/master/CHANGES.rst)
- [Commits](python-pillow/Pillow@6.0.0...6.1.0)

Signed-off-by: dependabot-preview[bot] <[email protected]>

*  - GeoServer Render Thumbnails using the correct auth headers

* Bump psutil from 5.6.1 to 5.6.3

Bumps [psutil](https://github.com/giampaolo/psutil) from 5.6.1 to 5.6.3.
- [Release notes](https://github.com/giampaolo/psutil/releases)
- [Changelog](https://github.com/giampaolo/psutil/blob/master/HISTORY.rst)
- [Commits](giampaolo/psutil@release-5.6.1...release-5.6.3)

Signed-off-by: dependabot-preview[bot] <[email protected]>

*  - 2.10 stable release

* Align nginx tag value driven by .env variable (GeoNode#4623)

* Align nginx tag value driven by .env variable (GeoNode#4624)

*  - Updating README.md links to the doc

* [Social Account Settings] LinkedIn profile fields updated

* spanish translation update

*  Geoserver doesn't restart with https

Geoserver fail on https

Message from logs : 
geoserver_1       | keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect

* Bump lxml from 4.3.3 to 4.3.4

Bumps [lxml](https://github.com/lxml/lxml) from 4.3.3 to 4.3.4.
- [Release notes](https://github.com/lxml/lxml/releases)
- [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt)
- [Commits](lxml/lxml@lxml-4.3.3...lxml-4.3.4)

Signed-off-by: dependabot-preview[bot] <[email protected]>

* Bump oauthlib from 3.0.1 to 3.0.2

Bumps [oauthlib](https://github.com/oauthlib/oauthlib) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/oauthlib/oauthlib/releases)
- [Changelog](https://github.com/oauthlib/oauthlib/blob/master/CHANGELOG.rst)
- [Commits](oauthlib/oauthlib@v3.0.1...v3.0.2)

Signed-off-by: dependabot-preview[bot] <[email protected]>

* Add PULL_REQUEST_TEMPLATE.md

* [Fixes GeoNode#4639] Switch library "gsconfig" to "geoserver-restoconfig"

*  - Bump to version 2.10.1 'maintenance' 0
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants