Certbot / Python problem

Mark Lucas mllists at arc.co.uk
Fri Feb 21 11:42:53 UTC 2025


Bjarne

For some unknown reason I did not receive your last post to the list and only found it on the list archives site.

I have run your script and everything seemed to work ok 

% cd ./ports/certbot ; portindex
Creating port index in /Users/******/ports/certbot
Adding port python/py-josepy
Adding port python/py-acme
Adding port security/certbot
Adding subport py312-josepy
Adding subport py310-josepy
Adding subport py311-josepy
Adding subport py312-acme
Adding subport py39-josepy
Adding subport py311-acme
Adding subport py310-acme
Adding subport py313-josepy
Adding subport py313-acme
Adding subport py39-acme
Adding subport certbot-apache
Adding subport certbot-nginx
Adding subport certbot-dns-cloudflare
Adding subport certbot-dns-digitalocean
Adding subport certbot-dns-dnsimple
Adding subport certbot-dns-dnsmadeeasy
Adding subport certbot-dns-gehirn
Adding subport certbot-dns-google
Adding subport certbot-dns-luadns
Adding subport certbot-dns-linode
Adding subport certbot-dns-nsone
Adding subport certbot-dns-ovh
Adding subport certbot-dns-rfc2136
Adding subport certbot-dns-route53
Adding subport certbot-dns-sakuracloud

Total number of ports parsed:	28 
Ports successfully parsed:	28 
Ports failed:			0 
Up-to-date ports skipped:	0

up until the point where I did…

sudo port -cuNn -sd install certbot +docs +python313

which returned…

DEBUG: Copying /Users/******/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
DEBUG: Opening port in directory: /Users/******/ports/certbot/security/certbot
DEBUG: OS darwin/24.3.0 (macOS 15.3.1) arch arm
DEBUG: Sourcing PortGroup github 1.0 from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/github-1.0.tcl
DEBUG: Re-registering default for distname
DEBUG: Re-registering default for build.cmd
DEBUG: Re-registering default for build.target
DEBUG: Re-registering default for destroot.cmd
DEBUG: Re-registering default for destroot.destdir
DEBUG: Re-registering default for destroot.target
DEBUG: Re-registering default for test.cmd
DEBUG: Re-registering default for test.target
DEBUG: Sourcing PortGroup python 1.0 from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/python-1.0.tcl
DEBUG: Re-registering default for master_sites
DEBUG: Re-registering default for extract.rename
DEBUG: Re-registering default for livecheck.url
DEBUG: Re-registering default for livecheck.regex
DEBUG: only one arch supported, so not adding the default universal variant
DEBUG: Executing variant python313 provides python313
DEBUG: Executing variant docs provides docs
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: Running callback python_add_dependencies
DEBUG: Finished running callback python_add_dependencies
DEBUG: dropping privileges: euid changed to 502, egid changed to 501.
DEBUG: Could not open file: /Users/******/ports/certbot/security/certbot/Portfile
    while executing
"sha256 file ${portpath}/Portfile"
    (procedure "open_statefile" line 39)
    invoked from within
"open_statefile"
    (procedure "check_variants" line 28)
    invoked from within
"check_variants activate"
    invoked from within
"$workername eval [list check_variants $target]"
    (procedure "mportexec" line 8)
    invoked from within
"mportexec $workername $target"
Error: Unable to execute port certbot: Could not open file: /Users/******/ports/certbot/security/certbot/Portfile




Any idea what went wrong?

Many thanks for your help.


Mark Lucas








> On 17 Feb 2025, at 19:08, Bjarne D Mathiesen via macports-users <macports-users at lists.macports.org> wrote:
> 
>> 
>> I've chosen to downgrade :
>>    certbot   3.2.0 -> fix for paths
>>    py-acme   3.2.0
>>    py-josepy 2.0.0 -> 1.15.0
>> by changing the portfiles and storing my modified portfiles in a local
>> file:/// repository (see: /opt/local/etc/macports/sources.conf for info)
> 
> I can give the steps for doing this, if the list is interested
> 
> -- 
> Bjarne D Mathiesen
> Slagelse ; Danmark ; Europa
> -----------------------------------------------------------------------
> denne besked er skrevet i et totalt M$-frit miljø
> MacPro 2010 5.1 ; OpenCore + macOS 14.7.4 Sonoma
> 2 x 3,46 GHz 6-Core Intel Xeon ; 192 GB 1333 MHz DDR3 ECC RDIMM
> ATI Radeon RX 590 8 GB
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20250221/3d09ae9c/attachment.htm>


More information about the macports-users mailing list