From 004d0267c134e3aaa0cafeb2d55d38707adc0af0 Mon Sep 17 00:00:00 2001 From: John Siirola Date: Tue, 1 Dec 2026 08:43:19 -0700 Subject: [PATCH 1/6] Remove references to www.dabeaz.com/ply --- pyomo/tpl/ply/__init__.py | 2 -- pyomo/tpl/ply/yacc.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/pyomo/tpl/ply/__init__.py b/pyomo/tpl/ply/__init__.py index 6da83c73a59..57fefb14ec6 100644 --- a/pyomo/tpl/ply/__init__.py +++ b/pyomo/tpl/ply/__init__.py @@ -20,8 +20,6 @@ The original PLY project (https://github.com/dabeaz/ply) was archived on December 21, 2025 and is no longer developed or maintained. -PLY (3.11) documentation is available here: http://www.dabeaz.com/ply/ply.html - """ __version__ = '3.11.post1' diff --git a/pyomo/tpl/ply/yacc.py b/pyomo/tpl/ply/yacc.py index 0d2e935c5af..4019d286b49 100644 --- a/pyomo/tpl/ply/yacc.py +++ b/pyomo/tpl/ply/yacc.py @@ -3312,7 +3312,7 @@ def yacc(method='LALR', debug=yaccdebug, module=None, tabmodule=tab_module, star else: debuglog = NullLogger() - debuglog.info('Created by PLY version %s (http://www.dabeaz.com/ply)', __version__) + debuglog.info('Created by PLY version %s', __version__) errors = False From c7341db79e1912e5d0c48715e2c6bfcadc4165c0 Mon Sep 17 00:00:00 2001 From: John Siirola Date: Tue, 1 Dec 2026 08:54:05 -0700 Subject: [PATCH 2/6] Turn off ply's yaccdebug --- pyomo/tpl/ply/yacc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyomo/tpl/ply/yacc.py b/pyomo/tpl/ply/yacc.py index 4019d286b49..3ec696702eb 100644 --- a/pyomo/tpl/ply/yacc.py +++ b/pyomo/tpl/ply/yacc.py @@ -98,7 +98,7 @@ # Change these to modify the default behavior of yacc (if you wish) #----------------------------------------------------------------------------- -yaccdebug = True # Debugging mode. If set, yacc generates a +yaccdebug = False # Debugging mode. If set, yacc generates a # a 'parser.out' file in the current directory debug_file = 'parser.out' # Default name of the debugging file From 87746a81897614315d7a539252fd231233aa6ac8 Mon Sep 17 00:00:00 2001 From: John Siirola Date: Tue, 1 Dec 2026 09:33:07 -0700 Subject: [PATCH 3/6] Rebuild caches to pull new GAMS version --- .github/workflows/test_branches.yml | 2 +- .github/workflows/test_pr_and_main.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_branches.yml b/.github/workflows/test_branches.yml index 583ce2c2a95..631681d9107 100644 --- a/.github/workflows/test_branches.yml +++ b/.github/workflows/test_branches.yml @@ -23,7 +23,7 @@ env: PYTHON_CORE_PKGS: wheel PYPI_ONLY: z3-solver linear-tree PYPY_EXCLUDE: scipy numdifftools seaborn statsmodels linear-tree - CACHE_VER: v260804.0 + CACHE_VER: v261201.0 NEOS_EMAIL: tests@pyomo.org SRC_REF: ${{ github.head_ref || github.ref }} PYOMO_WORKFLOW: branch diff --git a/.github/workflows/test_pr_and_main.yml b/.github/workflows/test_pr_and_main.yml index 0ccda861aeb..88d7b8b939c 100644 --- a/.github/workflows/test_pr_and_main.yml +++ b/.github/workflows/test_pr_and_main.yml @@ -31,7 +31,7 @@ env: PYTHON_CORE_PKGS: wheel PYPI_ONLY: z3-solver linear-tree PYPY_EXCLUDE: scipy numdifftools seaborn statsmodels linear-tree - CACHE_VER: v260804.0 + CACHE_VER: v261201.0 NEOS_EMAIL: tests@pyomo.org SRC_REF: ${{ github.head_ref || github.ref }} PYOMO_WORKFLOW: | From b0ecc63a9e0dda81aeb2b62d6e52635363b11c71 Mon Sep 17 00:00:00 2001 From: John Siirola Date: Tue, 1 Dec 2026 13:47:28 -0700 Subject: [PATCH 4/6] GAMS: catch expired licenses --- pyomo/contrib/solver/solvers/gams.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyomo/contrib/solver/solvers/gams.py b/pyomo/contrib/solver/solvers/gams.py index 9761f6e51f1..2558f9faa24 100644 --- a/pyomo/contrib/solver/solvers/gams.py +++ b/pyomo/contrib/solver/solvers/gams.py @@ -229,7 +229,9 @@ def _get_version(self, exe: str | None): version = tuple(int(i) for i in version.split('.')) # TBD: does this also catch Community licenses? - if "GAMS Demo" in res.stdout: + if " expired" in res.stdout: + avail = Availability.BadLicense + elif "GAMS Demo" in res.stdout: avail = Availability.LimitedLicense else: avail = Availability.FullLicense From 5ff1bf0ee7234f0bd8185e94c91ab0929543e5bc Mon Sep 17 00:00:00 2001 From: John Siirola Date: Tue, 1 Dec 2026 19:56:57 -0700 Subject: [PATCH 5/6] Improve search for 'expired' --- pyomo/contrib/solver/solvers/gams.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyomo/contrib/solver/solvers/gams.py b/pyomo/contrib/solver/solvers/gams.py index 2558f9faa24..ab865cdead4 100644 --- a/pyomo/contrib/solver/solvers/gams.py +++ b/pyomo/contrib/solver/solvers/gams.py @@ -229,7 +229,7 @@ def _get_version(self, exe: str | None): version = tuple(int(i) for i in version.split('.')) # TBD: does this also catch Community licenses? - if " expired" in res.stdout: + if re.search(r"\bexpired\b", res.stdout): avail = Availability.BadLicense elif "GAMS Demo" in res.stdout: avail = Availability.LimitedLicense From a45c16c76db46e6d9183f5637406da53d0c666e1 Mon Sep 17 00:00:00 2001 From: John Siirola Date: Tue, 1 Dec 2026 21:16:29 -0700 Subject: [PATCH 6/6] Catch license validation errors --- pyomo/contrib/solver/solvers/gams.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyomo/contrib/solver/solvers/gams.py b/pyomo/contrib/solver/solvers/gams.py index ab865cdead4..9767199961f 100644 --- a/pyomo/contrib/solver/solvers/gams.py +++ b/pyomo/contrib/solver/solvers/gams.py @@ -229,7 +229,7 @@ def _get_version(self, exe: str | None): version = tuple(int(i) for i in version.split('.')) # TBD: does this also catch Community licenses? - if re.search(r"\bexpired\b", res.stdout): + if re.search(r"\b(expired|cannot be validated)\b", res.stdout): avail = Availability.BadLicense elif "GAMS Demo" in res.stdout: avail = Availability.LimitedLicense