Skip to content

Conversation

pmeier
Copy link
Collaborator

@pmeier pmeier commented Sep 29, 2021

@pmeier
Copy link
Collaborator Author

pmeier commented Sep 29, 2021

Blocked by meta-pytorch/data#20.

@pmeier pmeier marked this pull request as ready for review September 29, 2021 16:24
@pmeier pmeier requested a review from fmassa September 29, 2021 16:24
@@ -1,3 +1,13 @@
try:
import torchdata
except (ModuleNotFoundError, TypeError) as error:
Copy link
Collaborator Author

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.

Copy link
Member

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.

Copy link
Collaborator Author

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

Copy link
Member

@fmassa fmassa left a 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:
Copy link
Member

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.

@fmassa fmassa merged commit 4bf6086 into pytorch:main Sep 30, 2021
@github-actions
Copy link

Hey @fmassa!

You merged this PR, but no labels were added.

@pmeier pmeier deleted the torchdata branch September 30, 2021 10:00
facebook-github-bot pushed a commit that referenced this pull request Oct 1, 2021
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>
malfet added a commit that referenced this pull request Oct 6, 2021
mszhanyi pushed a commit to mszhanyi/vision that referenced this pull request Oct 19, 2021
* 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>
cyyever pushed a commit to cyyever/vision that referenced this pull request Nov 16, 2021
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants