Bug 264929

Summary: security/py-certbot: Fails to run: pkg_resources.ContextualVersionConflict: (jmespath 1.0.1 ... Requirement.parse('jmespath<1.0.0,>=0.7.1'), {'boto3'})
Product: Ports & Packages Reporter: bas
Component: Individual Port(s)Assignee: Po-Chuan Hsieh <sunpoet>
Status: Closed FIXED    
Severity: Affects Many People CC: mike.walker, python
Priority: --- Keywords: needs-qa
Version: LatestFlags: bugzilla: maintainer-feedback? (python)
koobs: maintainer-feedback? (sunpoet)
Hardware: Any   
OS: Any   

Description bas 2022-06-27 11:04:19 UTC
Cerbot fails to renew certificates due to a dependency error:

root@mail:~ # certbot renew
An unexpected error occurred:
pkg_resources.ContextualVersionConflict: (jmespath 1.0.1 (/usr/local/lib/python3.8/site-packages), Requirement.parse('jmespath<1.0.0,>=0.7.1'), {'boto3'})
Comment 1 bas 2022-06-27 13:31:52 UTC
I fixed this myself by running pkg upgrade -f on the affected system. That is strange because apparently nothing relevant changed. Obviously something did, but I can't find it.
Comment 2 Mike Walker 2022-07-06 12:37:12 UTC
Looks like this issue is resolved now.

The issue at hand was fixed with a patch to www/py-boto3 introduced here:

https://cgit.freebsd.org/ports/commit/www/py-boto3?id=8e8786689a3eb0976c77a253e63fa91ab528c98c

But that commit did not include a bump to PORTREVISION ( per https://docs.freebsd.org/en/books/porters-handbook/book/#makefile-naming-revepoch ) so if you already had py##-boto3 1.18.61 installed, then pkg would think there was nothing to upgrade, hence why the "pkg upgrade -f" fixed the issue.

Thank you for submitting this bug report it helped me solve the same issue!
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2022-07-08 01:57:03 UTC
@Sunpoet Whats left to do here?

Should security/certbot or security/py-certbot-dns-route53 have PORTREVISION bumped?
Comment 4 Po-Chuan Hsieh freebsd_committer freebsd_triage 2022-07-11 15:44:29 UTC
(In reply to Mike Walker from comment #2)
(In reply to Kubilay Kocak from comment #3)

Bump PORTREVISION of www/py-boto3 in ports b7aec3fa69c7a632b7c8fdaec026c8c4c627145e. The bump is also MFH'd in ports f91e66fbb1647fd83601ba4f83d152d25b89e3ab.
It should fix the problem.