connorcoley / rexgen_direct

Template-free prediction of organic reaction outcomes
GNU General Public License v3.0
150 stars 68 forks source link

No module named 'edit_mol_direct_useScores' #8

Open Karunakar444 opened 4 years ago

Karunakar444 commented 4 years ago

Hey! I was trying to predict using the code given in the rexgen_direct. But when I was running the code, the following error is obtained. Could you please help me with this? Screenshot from 2019-10-12 14-08-43

connorcoley commented 4 years ago

There is likely a difference in your PATH/PYTHONPATH relative to what I was using, sorry; I didn't do a great job documenting my environment for this project.

You might try either changing that line in mol_graph_direct_useScores.py to a relative import (from .edit_mol_direct_useScores import get_product_smiles) or an absolute import (from rexgen_direct.rank_diff_wln.edit_mol_direct_useScores import get_product_smiles) if you have rexgen_direct in your python path.

On Sat, Oct 12, 2019 at 4:41 AM Karunakar444 notifications@github.com wrote:

Hey! I was trying to predict using the code given in the rexgen_direct. But when I was running the code, the following error is obtained. Could you please help me with this? [image: Screenshot from 2019-10-12 14-08-43] https://user-images.githubusercontent.com/54398887/66698287-2e0b9180-ecfa-11e9-8fc2-25ff84980c29.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/connorcoley/rexgen_direct/issues/8?email_source=notifications&email_token=ABAEXJTXONZBOWVLSEEYTN3QOGEULA5CNFSM4JAB5OK2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HRLKMJQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABAEXJWZ2SAUF2RJDJO5AOTQOGEULANCNFSM4JAB5OKQ .

Karunakar444 commented 4 years ago

Thanks, it worked!