-
Notifications
You must be signed in to change notification settings - Fork 49
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
AttributeError: np.sctypes
was removed in the NumPy 2.0 release.
#175
Comments
Also experiencing this today. pytorch==2.3.0 via pip, Ubuntu 22.04, Python 3.11.9. |
@plra, If the issue persists, you can fix it manually by installing a numpy version < 2.0.0. |
Thanks, yeah, adding explicit |
Hey man, were you able to fix it? I'm experiencing it with coremltools trying to convert my pytorch model into coreML. I already installed the 1.26.4 numpy's version but the issue persists |
I think if it throws same error then, it is coming from Numpy 2.0. |
For what it's worth, it seems the version was pinned in 0.2.12, after this commit: https://github.com/Lightning-AI/litdata/pull/161/files#diff-4d7c51b1efe9043e44439a949dfd92e5827321b34082903477fd04876edb7552 So you can update it by including |
Not sure what you mean by "downstream requirements.txt". I tried |
Try uninstalling previous version and then try reinstalling. pip uninstall litdata
pip install litdata |
🐛 AttributeError:
np.sctypes
was removed in the NumPy 2.0 release.To Reproduce
Steps to reproduce the behavior:
Copy the given code form readme to eg:
test.py
and runEnvironment
pip
):The text was updated successfully, but these errors were encountered: