-
-
Notifications
You must be signed in to change notification settings - Fork 31k
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
Invalid metadata directory leads to errors #100666
Comments
sswam, your issue is slightly different. #91216 is attempting to address whether
|
The Aha - so it will crash currently:
Probably that diagnostics routine could be improved to capture conditions like these. |
I'm thinking at least reversed lexicographic order (opposite the order in which it would typically appear in a |
FWIW, I noticed that I had two torch directories under
/usr/local/lib/python3.10/dist-packages
:importlib_metadata.version("torch")
was retuningNone
in this scenario. I think it was looking at the directory which only had the REQUESTED file.After I removed that
torch-1.12.1+cu116.dist-info
directory, it fixed the problem, i.e. now:importlib_metadata.version("torch") == '1.13.1+cu116'
Originally posted by @sswam in #91216 (comment)
The text was updated successfully, but these errors were encountered: