You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[MAINT] Tests fail on Python 3.11-3.13 with netCDF4 1.7.5 #155
Our tests on develop have been failing for Python 3.11, 3.12, and 3.13 since October 16. netCDF4 1.7.5 was released on October 15, so I suspect the newer netCDF4 version is the cause.
Failing tests:
All fail with AttributeError: 'numpy.ndarray' object has no attribute 'encode', raised by stringtochar(value, encoding='utf-8').
We already exclude netCDF4 1.7.4 in our dependencies (netCDF4!=1.7.4). The easiest workaround would be to set netCDF4<=1.7.3, but I am not sure that is a good idea because it also restricts sofar users. Instead, I would propose to look more closely at the changes in netCDF4 and adapt our code so that it works with newer versions.
I think the error messages and the problem are the same as those already described in the Issue #132.
Activity
stringtocharcrashes when called viasofar.write_sofa#132h-chmeruk commentedon Dec 2, 2026
I link #149 as PR that will close this issue, since all the tests pass there and the mentioned error does not occur anymore.