py36-urllib3 and py-certbot

Weldon Godfrey weldon at excelsusphoto.com
Tue Dec 10 19:46:35 UTC 2019


Thanks!  That was it.   I upgraded py36-requests from 2.21.0 to 2.22.0
and that resolved the error. 

It appears portmaster wasnt picking up needing to update py36-requests
as a dependancy.   

Below is the info you asked for info. 

Thanks for helping!   

Weldon 

The full traceback when certbot is executed is: 

root at senna:/usr/ports/net/py-urllib3 # certbot 

Traceback (most recent call last): 

  File
"/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line
583, in _build_master 

    ws.require(__requires__) 

  File
"/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line
900, in require 

    needed = self.resolve(parse_requirements(requirements)) 

  File
"/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line
791, in resolve 

    raise VersionConflict(dist, req).with_context(dependent_req) 

pkg_resources.ContextualVersionConflict: (urllib3 1.25.6
(/usr/local/lib/python3.6/site-packages),
Requirement.parse('urllib3<1.25,>=1.21.1'), {'requests'}) 

Version of py_requests being used: 

py36-requests-2.21.0           HTTP library written in Python for human
beings 

py36-requests-toolbelt-0.8.0   Utility belt for advanced users of
python-requests 

On 2019-12-10 3:37 am, Kai Knoblich wrote:

> Hi Weldon,
> 
> On Thu, Dec 05, 2019 at 10:41:09AM -0600, Weldon Godfrey wrote: 
> 
>> Due to a security advisory, I port upgraded py-36-urllib3 to 1.25.6 
>> 
>> Since then, 
>> 
>> py36-certbot-0.39.0,1 
>> 
>> is unhappy for the version of urllib3 being too new: 
>> 
>> pkg_resources.DistributionNotFound: The 'urllib3<1.25,>=1.21.1'
>> distribution was not found and is required by request
> 
> thank you for reporting it and sorry for the late reply as your mail somehow
> slipped through the cracks.
> 
> I already did some investigations but I wasn't able to reproduce the issue.
> 
> At the moment I have the assumption that the www/py-requests port is still at
> release 2.20 on your system.
> 
> Can you please send me a full backtrace of the error messsage?
> 
> An output of "pkg info -x py" would be also very useful to further
> investigate the issue.
> --
> Cheers
> Kai


More information about the freebsd-python mailing list