torchdrug icon indicating copy to clipboard operation
torchdrug copied to clipboard

torchdrug can't be installed on modern releases of python (i.e., py39 and py310)

Open cthoyt opened this issue 3 years ago • 8 comments

Currently, there's a limitation on the versions of Python on which torchdrug can be installed

https://github.com/DeepGraphLearning/torchdrug/blob/278bcc8cba914d562bd84d749833f2d67a6c11c1/setup.py#L43

I'm not sure why this is here - most of its dependencies are version agnostic.

cthoyt avatar Jan 14 '22 11:01 cthoyt

Hi! I am not sure if I recall the reason correctly. I guess it's the metaclass (e.g. core.Configurable) we used in the codebase may not be compatible with python 3.9. Maybe we need to dig into python 3.9 to see what's the new mechanism for metaclass.

KiddoZhu avatar Jan 16 '22 03:01 KiddoZhu

same situation here. The incompatibility issue make it hard to integrate torchDrug into the workflow. Also, TorchDrug could influence other packages outside the typical scope of a package. For example, the default behavior of logging class is changed after import torchdrug.

luwei0917 avatar May 17 '22 08:05 luwei0917

Same here. Would be nice if torchdrug can live with newer python. Hope also the newer protein library can be compatible too!

jasperhyp avatar Jul 27 '22 19:07 jasperhyp

Same situation when I used Python 3.10. It will be nice to support new python version

yippp avatar Aug 10 '22 03:08 yippp

+1

oiao avatar Dec 09 '22 18:12 oiao

Any progress on this? I would like to use torchdrug bug I cannot use a version of python earlier than 3.10 in my current project.

mbellitti avatar Feb 10 '23 16:02 mbellitti

Any progress on this? I would like to use torchdrug bug I cannot use a version of python earlier than 3.10 in my current project.

Same issue here +1

zhiqiangzhongddu avatar Mar 01 '23 13:03 zhiqiangzhongddu

Installing from source seems to work

git clone https://github.com/DeepGraphLearning/torchdrug
cd torchdrug
pip install -r requirements.txt
python setup.py install

Also, you can override the python requirement and install the github version

pip install --ignore-requires-python git+https://github.com/DeepGraphLearning/torchdrug

arolihas avatar May 23 '23 15:05 arolihas