Skip to content

fix(deps): require preliz>=0.27.0 for matplotlib 3.11 compatibility - #37

Closed
frankbuckley wants to merge 1 commit into
mainfrom
devclaude/brave-swirles-618e03
Closed

fix(deps): require preliz>=0.27.0 for matplotlib 3.11 compatibility#37
frankbuckley wants to merge 1 commit into
mainfrom
devclaude/brave-swirles-618e03

Conversation

@frankbuckley

@frankbuckley frankbuckley commented Jun 18, 2026

Copy link
Copy Markdown
Member

Problem

CI run 27759402631 failed in the test-python job. pytest aborted during collection (exit code 2):

ERROR collecting tests/test_plot_distributions.py
    import preliz as pz
E   AttributeError: module 'matplotlib.style' has no attribute 'core'
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!

Because collection was interrupted, none of the other 128 tests ran.

Root cause

A dependency-version collision triggered by a Dependabot bump:

  1. Commit 336bff1 raised matplotlib 3.10.9 -> 3.11.0.
  2. matplotlib 3.11.0 removed the private matplotlib.style.core submodule.
  3. preliz was unpinned, so CI installed 0.26.0, which still imports matplotlib.style.core at module load — hence the AttributeError on import preliz.

The run was unlucky on timing: preliz 0.27.0 — which ships the fix (arviz-devs/preliz#727, "Fix import failure on matplotlib 3.11") — was published ~50 minutes after CI executed pytest.

Fix

Pin the floor to preliz>=0.27.0 in both environment.yml (used by CI) and src/python/pyproject.toml (package metadata), so the fixed release is required and a cached/older preliz cannot regress.

🤖 Generated with Claude Code

The matplotlib 3.10.9 -> 3.11.0 bump (336bff1) removed the private
matplotlib.style.core submodule. preliz <=0.26.0 imports it at module
load, so `import preliz` raised AttributeError during pytest collection
and aborted the whole test-python job (CI run 27759402631).

preliz 0.27.0 ships the fix (arviz-devs/preliz#727). Pin the floor in
both environment.yml and pyproject.toml so CI and the package metadata
require the fixed release.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant