After following the advise from UPDATING about pythoin-3.11, 'pkg add' now says: pkg: "Cannot solve problem using SAT solver" and attempts to install and then offers to remove py39- packages

From: Yuri <yuri_at_FreeBSD.org>
Date: Fri, 07 Jun 2024 05:51:51 UTC
I followed the advise from /usr/ports/UPDATING and ran these commands:

# for i in $(pkg query -g %n 'py39-*'); do pkg set -yn 
${i}:py311-${i#py39-}; done
# pkg upgrade


This first command above only affects currently installed py39-* 
packages, and would be a no-op otherwise.



Despite this and not having any py39-* packages installed I keep getting 
the errors when I try to install some packages using origins, see below.

/etc/make.conf doesn't mentions anything about python.

Why is pkg attempting to bring back py39-* packages? What is wrong?


'make -V PYTHON_VER' prints 3.11



Yuri




----errors that 'pkg install -A x/xx y/yy ...' prints ----

Cannot solve problem using SAT solver, trying another plan
Cannot solve problem using SAT solver, trying another plan
Cannot solve problem using SAT solver, trying another plan
Cannot solve problem using SAT solver, trying another plan
Cannot solve problem using SAT solver, trying another plan
Cannot solve problem using SAT solver, trying another plan
Cannot solve problem using SAT solver, trying another plan
Cannot solve problem using SAT solver, trying another plan
Cannot solve problem using SAT solver, trying another plan
pkg: Cannot solve problem using SAT solver
cannot install package py311-pytest-jupyter, remove it from request? [Y/n]:
pkg: Cannot solve problem using SAT solver
conflict rule: The following packages conflict with each other: 
py39-pyasn1-modules-0.4.0(r), py311-pyasn1-modules-0.4.0(r)
conflict rule: The following packages conflict with each other: 
py311-pyasn1-modules-0.4.0(r), py39-pyasn1-modules-0.4.0(r)
cannot install package py39-pyasn1-modules, remove it from request? [Y/n]:
pkg: Cannot solve problem using SAT solver
cannot install package py311-nbclient, remove it from request? [Y/n]:
pkg: Cannot solve problem using SAT solver
cannot install package py39-pytest-timeout, remove it from request? [Y/n]:
pkg: Cannot solve problem using SAT solver
cannot install package py39-pytest-rerunfailures, remove it from 
request? [Y/n]:
pkg: Cannot solve problem using SAT solver
conflict rule: The following packages conflict with each other: 
py39-Babel-2.14.0(r), py311-Babel-2.14.0(r)
conflict rule: The following packages conflict with each other: 
py311-Babel-2.14.0(r), py39-Babel-2.14.0(r)
cannot install package py39-Babel, remove it from request? [Y/n]:
pkg: Cannot solve problem using SAT solver
conflict rule: The following packages conflict with each other: 
py311-sphinx-5.3.0_1,1(r), py39-sphinx-5.3.0_1,1(r)
conflict rule: The following packages conflict with each other: 
py39-sphinx-5.3.0_1,1(r), py311-sphinx-5.3.0_1,1(r)
cannot install package py311-sphinx, remove it from request? [Y/n]:
pkg: Cannot solve problem using SAT solver
conflict rule: The following packages conflict with each other: 
py311-pyflakes-3.2.0_1(r), py39-pyflakes-3.2.0_1(r)
conflict rule: The following packages conflict with each other: 
py39-pyflakes-3.2.0_1(r), py311-pyflakes-3.2.0_1(r)
cannot install package py311-pyflakes, remove it from request? [Y/n]: