-
Notifications
You must be signed in to change notification settings - Fork 7.2k
add torchdata as prototype dependency #4499
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
Conversation
Blocked by meta-pytorch/data#20. |
@@ -1,3 +1,13 @@ | |||
try: | |||
import torchdata | |||
except (ModuleNotFoundError, TypeError) as error: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The torchdata
library hosted on PyPI fails for me at import with an TypeError
. This is why we can aggregate both failure cases here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chatted with @pmeier , this is a bug in the torchdata
from PyPI (which is unrelated to the torchdata
we are depending on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you do pip install torchdata
, python -c "import torchdata"
fails with
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Only have one quick comment
@@ -1,3 +1,13 @@ | |||
try: | |||
import torchdata | |||
except (ModuleNotFoundError, TypeError) as error: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chatted with @pmeier , this is a bug in the torchdata
from PyPI (which is unrelated to the torchdata
we are depending on.
Hey @fmassa! You merged this PR, but no labels were added. |
Summary: * add torchdata as prototype dependency * ignore torchdata for mypy * move git dependency out of conda environment file * try unsetting PYTORCH_VERSION env var * cleanup * move installation of torchdata after installtion of PyTorch * regenerate circlci config * remove branch from torchdata download link Reviewed By: prabhat00155, NicolasHug Differential Revision: D31309548 fbshipit-source-id: 40c9745ae4cd8a469f70e62c1ebaa88e78d21e70 Co-authored-by: Francisco Massa <fvsmassa@gmail.com>
* add torchdata as prototype dependency * ignore torchdata for mypy * move git dependency out of conda environment file * try unsetting PYTORCH_VERSION env var * cleanup * move installation of torchdata after installtion of PyTorch * regenerate circlci config * remove branch from torchdata download link Co-authored-by: Francisco Massa <fvsmassa@gmail.com>
* add torchdata as prototype dependency * ignore torchdata for mypy * move git dependency out of conda environment file * try unsetting PYTORCH_VERSION env var * cleanup * move installation of torchdata after installtion of PyTorch * regenerate circlci config * remove branch from torchdata download link Co-authored-by: Francisco Massa <fvsmassa@gmail.com>
cc @pmeier @mthrok @bjuncek