Skip to content
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

Metaclass conflict in Dataset Class #1

Open
origamiimaster opened this issue Mar 3, 2024 · 1 comment
Open

Metaclass conflict in Dataset Class #1

origamiimaster opened this issue Mar 3, 2024 · 1 comment

Comments

@origamiimaster
Copy link

I am trying to run the scripts to replicate the findings in the paper. Running

python -m torch.distributed.launch --nproc_per_node=1 script/downstream.py -c config/EC/esm_gearnet.yaml

gives the following error when I try:

...
File "/mnt/d/case-sensitive/miniconda3/envs/scatter38/lib/python3.8/site-packages/torch_geometric/data/dataset.py", line 30, in <module>
    class Dataset(torch.utils.data.Dataset, ABC):
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases

OS: Ubuntu 22.04 in WSL
Python Version 3.8.18 (Conda)
Torch: 2.2.1 for CUDA 12.1

Any idea what I can do to resolve this error?

Thank you!

@origamiimaster
Copy link
Author

I found the source of the problem, it looks like there was an issue that was fixed in pytorch-geometric that resolves this by changing the class.

See this.

This appears to be resolved once conda updates the latest pytorch-geometric build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant