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

ImportError: cannot import name 'GraphConvModel' from 'deepchem.models' #3824

Open
saejinoh opened this issue Feb 7, 2024 · 2 comments
Open

Comments

@saejinoh
Copy link

saejinoh commented Feb 7, 2024

❓ Questions & Help

Hi, I'm having issues with loading the 'GraphConvModel' on my end, with the import error message. Other deepchem modules were working perfectly fine, not sure why this one is throwing error.

This is what I'm seeing:

ImportError Traceback (most recent call last)
Cell In[526], line 1
----> 1 from deepchem.models import GraphConvModel
3 metric = dc.metrics.Metric(dc.metrics.mean_squared_error)
5 layers_trials = [ "" ] # this time, not specifying the layers here

ImportError: cannot import name 'GraphConvModel' from 'deepchem.models'

@quincylin1
Copy link
Contributor

quincylin1 commented Feb 9, 2024

Hi @saejinoh thank you so much for raising this! Does it work if you try

from deepchem.models.graph_models import GraphConvModel

instead? Also I assume have tensorflow installed when you installed deepchem? (i.e. pip install -e .[tensorflow]) Tensorflow is required since GraphConvModel inherits KerasModel, see here

@shinoxide
Copy link

Hi, I have the same issue. It didn't work when I tried

from deepchem.models.graph_models import GraphConvModel

Moreover, I have tensflow installed as I could import tensorflow as tf without issue but can't import GraphConvModel

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

3 participants