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

Imports fail in "Grid single molecule" tutorial #70

Closed
mgarort opened this issue Sep 24, 2021 · 3 comments
Closed

Imports fail in "Grid single molecule" tutorial #70

mgarort opened this issue Sep 24, 2021 · 3 comments

Comments

@mgarort
Copy link

mgarort commented Sep 24, 2021

Hi,

I am trying to follow the tutorial Grid single molecule and unfortunately the import of OpenBabel fails. I am not sure what I could be doing wrong since I'm using a fresh conda installation and it's the third line in the tutorial.

      1 import torch                                                                                                                              
      2 import molgrid                                                                                                                            
----> 3 from molgrid.openbabel import pybel as pybel                                                                                              
                                                                                                                                                  
ModuleNotFoundError: No module named 'molgrid.openbabel'

My installation was done with

conda create -n molgrid python=3.7
source activate molgrid
conda install -c conda-forge rdkit
conda install -c conda-forge openbabel
conda install -c jsunseri molgrid
conda install pytorch
conda install ipython

Many thanks in advance.

@dkoes
Copy link
Contributor

dkoes commented Sep 24, 2021

You need to install 0.5.1 with pip to get the openbabel submodule.

@dkoes
Copy link
Contributor

dkoes commented Sep 24, 2021

See Issue #62 for why there is a submodule and the potential issues with interfacing with openbabel.

@mgarort
Copy link
Author

mgarort commented Sep 25, 2021

Thank you for the quick response! That makes sense. Installing version 0.5.1 with pip solves the issue.

@mgarort mgarort closed this as completed Sep 25, 2021
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

2 participants