Certbot

Trying to configure certbot.

I installed it from here:

https://software.opensuse.org/download.html?project=devel%3Alanguages%3Apython&package=certbot

Following these instructions:

https://en.opensuse.org/Let’s_Encrypt

When running:

sudo certbot --apache

I get this:

Traceback (most recent call last):  File "/usr/bin/certbot", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3036, in <module>
    @_call_aside
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3020, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3049, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 656, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 669, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 859, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (cryptography 1.3.1 (/usr/lib64/python2.7/site-packages), Requirement.parse('cryptography>=1.3.4'), set('requests']))

This is for a Nextcloud installation that works using these instructions:

https://en.opensuse.org/SDB:Nextcloud

Can someone tell me what I missed?

Pls list your repos, you can execute the following command in a console

zypper lr -d

For starters, did you add a 13.2 repos, or a 42.2 repo?

TSU

Hi
You only have version 1.3.1 of python-cryptography (comes with Leap 42.2), you need a minimum of 1.3.4 as per;


pkg_resources.ContextualVersionConflict: (cryptography 1.3.1 (/usr/lib64/python2.7/site-packages), Requirement.parse('cryptography>=1.3.4'), set('requests']))

So install the one from devel:languages:python;


zypper in http://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_Leap_42.2/x86_64/python-cryptography-1.8.1-66.2.x86_64.rpm

Or if you used the one-click you may already be subscribed to devel:languages:python repository?

Also note that python-certbot was only updated some 7 hours ago, so instructions may have worked for the the previous version (0.13)?

On Tue, 16 May 2017 01:16:01 +0000, mmontz wrote:

> Can someone tell me what I missed?

This message:

> pkg_resources.ContextualVersionConflict: (cryptography 1.3.1
> (/usr/lib64/python2.7/site-packages),
> Requirement.parse(‘cryptography>=1.3.4’), set(‘requests’]))

Seems to indicate that you’ve not met the requirement of the Python
“cryptography” package minimum version of 1.3.4.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

This solved the issue. Thanks for your help!

Michael