Skip to content

Conversation

@roelof-groenewald
Copy link
Contributor

@roelof-groenewald roelof-groenewald commented Jul 14, 2025

This fixes a new failure in WarpX CI (see https://github.com/BLAST-WarpX/warpx/actions/runs/16272157144/job/45942282535?pr=5872) due to deprecation of get_type().

/Users/runner/work/warpx/warpx/build_sp/_deps/fetchedpyamrex-src/src/Base/MPMD.cpp:108:35: error: 'get_type' is deprecated: Call py::type::handle_of(h) or py::type::of(h) instead of h.get_type() [-Werror,-Wdeprecated-declarations]
                      app_comm_py.get_type()))
                                  ^
/opt/homebrew/include/pybind11/detail/../pytypes.h:215:5: note: 'get_type' has been explicitly marked deprecated here
    PYBIND11_DEPRECATED("Call py::type::handle_of(h) or py::type::of(h) instead of h.get_type()")
    ^
/opt/homebrew/include/pybind11/detail/common.h:171:43: note: expanded from macro 'PYBIND11_DEPRECATED'
#    define PYBIND11_DEPRECATED(reason) [[deprecated(reason)]]
                                          ^
1 error generated.

Signed-off-by: Roelof Groenewald <rgroenewald@tae.com>
Copy link
Member

@ax3l ax3l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Gotta push the same to openPMD-api :) (where I got this snippet from/developed it first)

Signed-off-by: Axel Huebl <axel.huebl@plasma.ninja>
@ax3l ax3l enabled auto-merge (squash) July 14, 2025 17:00
@ax3l ax3l self-assigned this Jul 14, 2025
@ax3l ax3l added the warning label Jul 14, 2025
@ax3l ax3l merged commit 2a2587b into AMReX-Codes:development Jul 14, 2025
17 checks passed
@roelof-groenewald roelof-groenewald deleted the fix_get_type branch July 14, 2025 19:39
ax3l added a commit to BLAST-ImpactX/impactx that referenced this pull request Jul 16, 2025
ax3l added a commit to ax3l/impactx that referenced this pull request Jul 16, 2025
Add `-Werror` back to macOS CI.
Was temporarily disabled until
AMReX-Codes/pyamrex#453
landed in ImpactX.
ax3l added a commit to ax3l/impactx that referenced this pull request Aug 10, 2025
Add `-Werror` back to macOS CI.
Was temporarily disabled until
AMReX-Codes/pyamrex#453
landed in ImpactX.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants