Skip to content

TypeError: Cannot interpret 'datetime64[us, UTC]' as a data type #271

Description

@amotl

Problem

When updating xarray from 2025.1.1 to 2025.1.2, we are observing this exception on CI:

TypeError: Cannot interpret 'datetime64[us, UTC]' as a data type

Details

The code itself is pretty innocent.

df.to_xarray().to_netcdf(path=t.name, format='NETCDF4', engine='netcdf4', group=group_name)
buffer.write(t.read())

References

Q & A

@kmuehlbauer: Do you have any idea where this might be coming from, and how to resolve this positively for us?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions