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

Unable to convert gregorian datetime objects to datetime #49

Closed
micahjohnson150 opened this issue Apr 20, 2020 · 0 comments
Closed

Unable to convert gregorian datetime objects to datetime #49

micahjohnson150 opened this issue Apr 20, 2020 · 0 comments
Assignees
Labels

Comments

@micahjohnson150
Copy link
Contributor

When running basin_setup 0.14.4. in docker grm is attempting to convert datetimes from from num2date. It throws an exception like the following:

ERROR <class 'cftime._cftime.DatetimeGregorian'> is not convertible to datetime

Turns out... this is due to netCDF4 which relies on a package called cftime. cftime is also developed by the unidata folks and it is unpinned in their requirements in netcdf4. cftime was updated on 2/20/2020 which altered num2date which:

cftime.datetime instances are returned by default from num2date (instead of returning python datetime instances where possible

The fix is to pin cftime to less than 1.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant