Skip to content

Pin NumPy to <2 to fix incompatibility - #9

Open
gtsitsik wants to merge 1 commit into
twitter-research:masterfrom
gtsitsik:fix/numpy-2-incompatibility
Open

gtsitsik wants to merge 1 commit into
twitter-research:masterfrom
gtsitsik:fix/numpy-2-incompatibility

Conversation

@gtsitsik

Copy link
Copy Markdown

Summary

When creating the environment from the provided YAML files, conda currently resolves NumPy 2.0.2. With NumPy 2.x installed, the repo fails to run with the provided commands:

  • pytest -v . fails with: RuntimeError: NumPy is not available.

  • sh ./exp/scripts/run_texas.sh fails with:
    AttributeError: np.float_ was removed in the NumPy 2.0 release. Use np.float64 instead.

Fix

Add numpy<2 to the conda dependencies in the environment YAML files.

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