certbot 0.13 issue with argparse module

Hi,

I've just updated certbot from 0.12 to 0.13 (py27-certbot-0.13.0,1) and I got the following issue:
# certbot renew --dry-run
Code:
Traceback (most recent call last):
  File "/usr/local/bin/certbot", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3019, in <module>
    @_call_aside
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3003, in _call_aside
    f(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3032, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 655, in _build_master
    ws.require(__requires__)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 963, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 849, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'argparse' distribution was not found and is required by certbot

Any ideas?
 
Hello again,

just updated to devel/py-configargparse (0.12.0) and certbot is broken again...

# certbot renew --dry-run
Code:
An unexpected error occurred:
AttributeError: 'tuple' object has no attribute 'add'
Please see the logfile 'certbot.log' for more details.

certbot.log contains the following:
Code:
Traceback (most recent call last):
  File "/usr/local/bin/certbot", line 11, in <module>
    load_entry_point('certbot==0.13.0', 'console_scripts', 'certbot')()
  File "/usr/local/lib/python2.7/site-packages/certbot/main.py", line 738, in main
    args = cli.prepare_and_parse_args(plugins, cli_args)
  File "/usr/local/lib/python2.7/site-packages/certbot/cli.py", line 1072, in prepare_and_parse_args
    helpful.add_deprecated_argument("--agree-dev-preview", 0)
  File "/usr/local/lib/python2.7/site-packages/certbot/cli.py", line 726, in add_deprecated_argument
    self.parser.add_argument, argument_name, num_args)
  File "/usr/local/lib/python2.7/site-packages/certbot/util.py", line 440, in add_deprecated_argument
    configargparse.ACTION_TYPES_THAT_DONT_NEED_A_VALUE.add(ShowWarning)
AttributeError: 'tuple' object has no attribute 'add'
 

Almost :)

I use certbot for my web clients with little money and have not had any issues whatsoever for the past year or so that we've been using it.

certbot works, but due to the tons of dependencies it is 'fragile'. I still use it on several servers, cause this was the first tool I used for Let's Encrypt, reading the guidelines from their website. After having 2 issues within a month timeframe, I started looking of other options and noticed the acme-client in OpenBSD. I saw that it's also available in the ports collection, so I should have done some more reading before rushing into certbot in the first place :)
 
tsarya Tons? I see mostly python stuff which is already installed by other ports plus the same acme port but it also relieves the many problems trying to get letsencrypt running that I had in the past and, as I said, we haven't had any issues with certbot in the year we've been using it.
 
tsarya Tons? I see mostly python stuff which is already installed by other ports plus the same acme port but it also relieves the many problems trying to get letsencrypt running that I had in the past and, as I said, we haven't had any issues with certbot in the year we've been using it.

Ok, let me clarify, I am looking to switch from certbot to acme-client, and again, I am not judging the software whether it is bad or good, rather I am saying that I had 2 issues within a month. Thanks to cpm@, they got sorted out extremely quickly, which is perfect.
So again, if somebody finds a working solution to convert the keys, please post it here... if not, it won't be the end of the world :)

Cheers!
 
I guess I have to reopen this thread as I've updated my ports and py27-certbot-0.20.0,1 gave me this:
Code:
# certbot renew --dry-run
Traceback (most recent call last):
  File "/usr/local/bin/certbot", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3147, in <module>
    @_call_aside
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3131, in _call_aside
    f(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3160, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 668, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 681, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 875, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (cryptography 2.0.3 (/usr/local/lib/python2.7/site-packages), Requirement.parse('cryptography>=2.1.4'), set(['PyOpenSSL']))

I am using security/libressl instead of OpenSSL from base.

Any help to fix the issue would be greatly appreciated.
 
The ports tree does not have version 2.1.4 as of this post.

On one of my machines certbot is built with FLAVOR=py36 and it does not have this issue.

I still have a month to go for that certificate so I guess it will be fixed by then.

Thanks! :)

UPDATE: Updating from py36-openssl-17.3.0 to py36-openssl-17.5.0 breaks certbot!
 
Back
Top