Open bhimrazy opened 2 weeks ago
Also experiencing this today. pytorch==2.3.0 via pip, Ubuntu 22.04, Python 3.11.9.
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.
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 numpy<2.0.0
dep fixes this for now.
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
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. Please try uninstalling it first, then reinstall and verify the version. FYI: @felipemfpeixoto
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 litdata >= 0.2.12
or ~=0.2.12
in downstream requirements.txt files.
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
litdata >= 0.2.12
or~=0.2.12
in downstream requirements.txt files.
Not sure what you mean by "downstream requirements.txt". I tried pip install "litdata>=0.2.12"
and am getting the same error :/
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
litdata >= 0.2.12
or~=0.2.12
in downstream requirements.txt files.Not sure what you mean by "downstream requirements.txt". I tried
pip install "litdata>=0.2.12"
and am getting the same error :/
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
):