wangyu-sd / RetroExplainer

RetroExplainer: A chemical knowledge and deep-leaning guided molecular assembly approach for retrosynthesis prediction with quantitative interpretability
MIT License
63 stars 10 forks source link

ImportError: cannot import name 'MultiStepDataset' from 'data.datasets' #3

Closed hongxianglics closed 1 year ago

hongxianglics commented 1 year ago

Hi,

When I tried to run the file api_for_multisteps.py, I got the error below.

捕获

File "C:\Users\86130\Desktop\retrosynthesis\MechRetro-main\model\RetroAGT.py", line 32, in <module> from data.datasets import MultiStepDataset ImportError: cannot import name 'MultiStepDataset' from 'data.datasets' Could you please help me with it? Thanks!

wangyu-sd commented 1 year ago

Hi, this is most probably caused by the wrong version we commited. We have updated the file data/datasets.py. You can solve this issue through the updated file.

hongxianglics commented 1 year ago

Thanks a lot for your help! I appreciate it!