Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: DeprecationWarning: arg_id_to_dtype passed to InKernelCallable was not hashable #3992

Open
c-abird opened this issue Jan 24, 2025 · 3 comments · May be fixed by #4002
Open

BUG: DeprecationWarning: arg_id_to_dtype passed to InKernelCallable was not hashable #3992

c-abird opened this issue Jan 24, 2025 · 3 comments · May be fixed by #4002
Labels

Comments

@c-abird
Copy link

c-abird commented Jan 24, 2025

I'm getting deprecation warnings for the interpolation of certain (not all) expressions. Minimal example:

import firedrake as fd
import warnings

warnings.simplefilter("always")

mesh = fd.UnitCubeMesh(1,1,1)
V = fd.FunctionSpace(mesh, "CG", 1)
x, y, z = fd.SpatialCoordinate(mesh)
fd.Function(V).interpolate(fd.sin(x))

results in output

/usr/lib/python3.12/dataclasses.py:1581: DeprecationWarning: arg_id_to_dtype passed to InKernelCallable was not hashable. This usage is deprecated and will stop working in 2026.
  return obj.__class__(**changes)
/usr/lib/python3.12/dataclasses.py:1581: DeprecationWarning: arg_id_to_descr passed to InKernelCallable was not hashable. This usage is deprecated and will stop working in 2026.
  return obj.__class__(**changes)

I'm using a fresh install of Firedrake on an Ubuntu 24.04 system.

@c-abird c-abird added the bug label Jan 24, 2025
@c-abird
Copy link
Author

c-abird commented Jan 24, 2025

Is this maybe connected to #3821 ?

@connorjward
Copy link
Contributor

This is actually an internal issue to loopy. I see the same warnings in their CI: https://github.com/inducer/loopy/actions/runs/13019796463/job/36317621215

@connorjward
Copy link
Contributor

I've made an issue: inducer/loopy#905

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 a pull request may close this issue.

2 participants