Skip to content

fix: update pydeck min version to 0.6#1518

Merged
lkstrp merged 1 commit intoPyPSA:masterfrom
coroa:fix/pydeck-min-version
Jan 7, 2026
Merged

fix: update pydeck min version to 0.6#1518
lkstrp merged 1 commit intoPyPSA:masterfrom
coroa:fix/pydeck-min-version

Conversation

@coroa
Copy link
Copy Markdown
Member

@coroa coroa commented Jan 7, 2026

Changes proposed in this Pull Request

With pydeck < 0.6, import pypsa fails with:

366 # Class-level constants
367 VALID_MAP_STYLES = {
368     "light": pdk.map_styles.LIGHT,
369     "dark": pdk.map_styles.DARK,
--> 370     "road": pdk.map_styles.ROAD,
371     "dark_no_labels": pdk.map_styles.DARK_NO_LABELS,
372     "light_no_labels": pdk.map_styles.LIGHT_NO_LABELS,
373     "none": "",
374 }
375 ARROW = np.array(
376     [
377         [1, 0],  # reference triangle as arrow head
(...)    380     ]
381 )
382 ARROW = ARROW - ARROW.mean(axis=0)  # center at geometric center

AttributeError: module 'pydeck.bindings.map_styles' has no attribute 'ROAD'

This is pulled into some environments through some strange version restriction interactions.

@lkstrp Please also remember to add this version constraint to the feedstock recipe, when you release the next version. Thanks

Checklist

  • A note for the release notes docs/release-notes.md of the upcoming release is included.
  • I consent to the release of this PR's code under the MIT license.

@coroa
Copy link
Copy Markdown
Member Author

coroa commented Jan 7, 2026

I'd suggest to merge as-is. CI hits: PyPSA/powerplantmatching#276

@lkstrp lkstrp disabled auto-merge January 7, 2026 20:23
@lkstrp lkstrp merged commit a195b90 into PyPSA:master Jan 7, 2026
25 of 26 checks passed
@coroa coroa deleted the fix/pydeck-min-version branch January 8, 2026 01:00
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.

2 participants