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

Add numpy version constraint for windows compatibility #198

Merged
merged 2 commits into from
Jun 24, 2024
Merged

Conversation

rmarquis
Copy link
Contributor

  • Add generatedlibrary folder to .gitignore
  • Adjust numpy version constraint for windows compatibility

Numpy 2.0 requires pybind 2.12, but despite matching this requirement
the windows build seems to not work as the keras 3.3.3 library has
seemingly been compile with numpy 1.x support only.

Downgrading the version constraint to numpy < 2.0 fixes the issue for
now. To be noted, that issue does not exist with Linux (and maybe
macOS?) and this fixes should be revisited once official support for
Keras 3 is added.

Numpy 2.0 requires pybind 2.12, but despite matching this requirement
the windows build seems to not work as the keras 3.3.3 library has
seemingly been compile with numpy 1.x support only.

Downgrading the version constraint to numpy < 2.0 fixes the issue for
now. To be noted, that issue does not exist with Linux (and maybe
macOS?) and this fixes should be revisited once official support for
Keras 3 is added.
@rmarquis
Copy link
Contributor Author

For reference:

Copy link

@rmarquis rmarquis merged commit 4a8ac05 into main Jun 24, 2024
5 checks passed
@rmarquis rmarquis deleted the numpy2 branch June 24, 2024 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant