Opened 2 years ago

Closed 2 years ago

#65738 closed defect (fixed)

certbot-dns-cloudflare @1.29.0+python310: The 'cloudflare>=1.5.1' distribution was not found

Reported by: guhpedro (Gustavo Marques) Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: Cc:
Port: certbot-dns-cloudflare

Description

python-cloudflare is required to use certbot with the certbot-dns-cloudflare plugin.

I installed both certbot and certbot-dns-cloudflare using MacPorts. I am running macOS 12.5.1 (21G83) (Intel).

When running the certbot command with certbot-dns-cloudflare installed, it returns the following

An unexpected error occurred:
pkg_resources.DistributionNotFound: The 'cloudflare>=1.5.1' distribution was not found and is required by the application
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/folders/r6/m70m5srj4vx7_dy54s0zj7yr0000gn/T/tmp6rn8i6wp/log or re-run Certbot with -v for more details.

A workaround is to sudo port install py310-pip and then sudo pip-3.10 install cloudflare.

This will install the dependency required by certbot-dns-cloudflare to /opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages and certbot will run.

Attachments (1)

log (2.2 KB) - added by guhpedro (Gustavo Marques) 2 years ago.
Log File

Download all attachments as: .zip

Change History (4)

Changed 2 years ago by guhpedro (Gustavo Marques)

Attachment: log added

Log File

comment:1 Changed 2 years ago by jmroot (Joshua Root)

Cc: Schamschula removed
Owner: set to Schamschula
Status: newassigned

comment:2 Changed 2 years ago by Schamschula (Marius Schamschula)

Two comments:

1) It isn't a good idea to install anything via py-pip. You may run into issues, i.e. things will break, as MacPorts packages are updated.

2) I maintain core certbot, but the plug-in packages were added by others, and I don't actively test them. I will see if I can put together a py-cloudflare package for MacPorts.

comment:3 Changed 2 years ago by Marius Schamschula <mschamschula@…>

Resolution: fixed
Status: assignedclosed

In 91ef6b68a4d665fb96a46c40ba2d4ef5ef9432ee/macports-ports (master):

certbot-dns-cloudflare: add py-cloudflare dependency

Closes: #65738

Note: See TracTickets for help on using tickets.