DeepGraphLearning / torchdrug

A powerful and flexible machine learning platform for drug discovery
https://torchdrug.ai/
Apache License 2.0
1.42k stars 199 forks source link

TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases #128

Open wzy-Sarah opened 2 years ago

wzy-Sarah commented 2 years ago

File "~/torchdrug/torchdrug/data/dataset.py", line 20, in class MoleculeDataset(torch_data.Dataset, core.Configurable):

TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases

KiddoZhu commented 1 year ago

Hi! Could you give more information about your environment? Like what are the versions for TorchDrug and PyTorch?

wzy-Sarah commented 1 year ago

After encountering this problem, I uninstall the torchdrug. And now I cannot install the torchdrug, the error is: error: legacy-install-failure

× Encountered error while trying to install package. ╰─> torch-scatter

But I already install torch-scatter and my environment is : windows python=3.7 pytorch=1.7.1+cu110 torch_geometric = 2.0.4 torch_cluster = 1.5.9 torch_scatter = 2.0.6 torch_sparse = 0.6.9 torch_spline_conv = 1.2.1 deepchem = 2.6.1 rdkit