python-dateutil went 2.9.0.post0 (2024) → 3.0.0 (2026-10-21) → 4.0.0 (2026-11-01, Python ≥3.11). In 3.0, tz.tzfile was rewritten as a zoneinfo backport. I ran the realistic installs on a clean Python 3.12 env (macOS arm64, uv 0.12.9, pip 26.3, PyPI as of 2026-12-04 12:13 UTC). All raw output is attached. resolve.sh, pandas-matrix.sh and dependents.sh reproduce it.
1. Pinned pandas + dateutil ≥3 → `AttributeError` on any dateutil time zone
pandas has never put an upper bound on python-dateutil. A fresh install of an older pinned pandas therefore gets 4.0.0 today:
uv pip install pandas==2.2.3 -> pandas==2.2.3 python-dateutil==4.0.0uv pip install pandas<3 -> pandas==2.3.3 python-dateutil==4.0.0uv pip install pandas<3.1 -> pandas==3.0.6 python-dateutil==4.0.0With that combo, every dateutil tzfile zone fails (output-pandas-matrix.txt, 12 entry points x 6 pandas versions x 2 dateutil versions):
| pandas | dateutil 2.9.0.post0 | dateutil 4.0.0 | |---|---|---| | 2.2.3, 2.3.3 (latest 2.x), 3.0.6 (latest 3.0.x), 3.1.0 | 12/12 OK | 4/12 raise AttributeError: 'NoneType' object has no attribute 'total_seconds' | | 3.1.1, 3.1.2 | 12/12 OK | 12/12 OK |
The 4 that fail: tz='dateutil/America/New_York', tz=tz.gettz('Europe/Berlin'), date_range(tz=tz.gettz(...)), and Series.dt.tz_convert(tz.gettz(...)). The tz_convert call itself succeeds. The first `.dt.hour` afterwards raises, so the traceback points away from the cause. These all keep working: plain string zones ('America/New_York'), tz.UTC, tz.gettz('UTC'), tz.tzlocal(), tzoffset, and parsed offsets.
2. holidays 0.110 needs dateutil ≥4, and the resolver gives up boto3 instead
holidays 0.110 (released 2026-12-01) changed its requirement from python-dateutil<3,>=2.9.0.post0 (0.106–0.109) to python-dateutil<5,>=4. Every botocore 1.x still requires <3.0.0, and celery 5.7.0 pins ==2.9.0.post0. Results (output-resolve.txt):
uv pip install holidays boto3 -> boto3==0.0.3 botocore==0.76.0 holidays==0.110 python-dateutil==4.0.0uv pip install boto3 holidays -> boto3==1.44.18 botocore==1.44.18 holidays==0.109 python-dateutil==2.9.0.post0uv pip install holidays celery -> celery==5.6.3 holidays==0.110 python-dateutil==4.0.0uv pip install holidays awscli -> awscli==1.6.5 botocore==0.76.0 holidays==0.110 python-dateutil==4.0.0pip install holidays boto3 -> holidays==0.110 python-dateutil==4.0.0 boto3==0.0.3 botocore==0.76.0pip install holidays celery -> holidays==0.110 python-dateutil==4.0.0 celery==5.6.3- pip does it too now. The existing report (brain-score/core#239, 2026-11-28) says pip still resolved boto3 1.x. With holidays 0.110 it doesn't:
pip install holidays boto3exits 0 with only "Ignoring version 1.2.0 of boto3 since it has invalid metadata" warnings. Thenimport boto3fails withModuleNotFoundError: No module named 'six.moves'(boto3 0.0.3 pinssix==1.7.3). - Argument order decides the outcome for both
uv pip installandpip install. If boto3 comes first, you silently get holidays 0.109 instead. In a uv *project*,uv lockwith["boto3", "holidays", "pandas"]picks holidays 0.109 and boto3 1.44.18. Thenuv add holidays==0.110succeeds and rewrites the lock to boto3 0.0.3 / botocore 0.76.0 without a warning. - celery is silently downgraded 5.7.0 → 5.6.3 (5.6.3 only needs
>=2.8.2). - A lower bound doesn't fail loudly either.
holidays boto3>=1.35just moves the backtracking to holidays (→ 0.109). Only pinning both, e.g.holidays==0.110 boto3>=1.35, makes it an error.
3. What else changed silently between 2.9.0.post0 and 4.0.0 (`output-dependents.txt`)
The same calls were made with croniter 7.0.0, arrow 1.4.0, freezegun 1.5.5, matplotlib 3.11.2 and icalendar 7.3.2 installed. Only the dateutil-native results changed:
rrule(DAILY, dtstart=2026-03-07 02:30 America/New_York)gives the 2026-03-08 02:30 occurrence as -05:00 (UTC 07:30) instead of -04:00 (UTC 06:30).HOURLYthrough the gap gives02:30-0500instead of02:30-0400. Recurring events that fall in the spring-forward hour fire an hour later in UTC than before.- A pickled
gettz('America/New_York')is 1897 bytes, not 3576. Pickles still compare equal. - croniter, arrow, freezegun, matplotlib
num2dateand icalendarTZIDgave identical output on both versions.
Workarounds
- pandas: upgrade to ≥3.1.1, or constrain
python-dateutil<3if you have to stay on 2.x/3.0. You can also pass string zones ('Europe/Berlin') instead ofdateutil.tz.gettz(...)objects. - boto3/awscli/celery + holidays: pin
holidays<0.110(orpython-dateutil<3) and give boto3 a real lower bound, so a future conflict errors instead of backtracking. After install, check withpip list | grep -E "^boto(3|core) ". - The botocore cap removal is open as boto/botocore#3715 (opened 2026-05-25). In #3844, a user reports botocore works with dateutil 4.0.0.
What the docs say
- dateutil's NEWS documents the
tzfilerewrite, PEP 495 gap handling and the stricterisoparse. It doesn't mention that pandas (which reads tzfile private attributes) breaks. - pandas 3.1.1 whatsnew: "Compatibility with python-dateutil 3.0: fixed an AttributeError ..." (pandas#71459, closed 2026-11-03). Nothing says 2.x, 3.0.x and 3.1.0 stay broken, or that their metadata lets dateutil 4 in.
- The holidays v0.110 release notes (GitHub release) list new exchanges and holiday fixes. They don't mention the
python-dateutil>=4requirement at all. vacanza/holidays#4055 asked for the bump. I found no issue on the boto3 fallout.