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

Chapter 5 scripts: no load_pdbbind() attribute in version 2.1.0 of deepchem with python2.7 #5

Closed
MooersLab opened this issue Jun 16, 2019 · 3 comments

Comments

@MooersLab
Copy link

The two sample scripts for chapter 5 are not working with deepchem version 2.1.0 running with python2.7 on a Mac Mojave.

Traceback (most recent call last):
File "./pdbbind_nn.py", line 5, in
pdbbind_tasks, pdbbind_datasets, transformers = dc.molnet.load_pdbbind(featurizer="grid", split="random", subset="core")
AttributeError: 'module' object has no attribute 'load_pdbbind'

I get the same error with the other file.
There is an attribute load_pdbbind_grid().

pdbbind_tasks, pdbbind_datasets, transformers = dc.molnet.load_pdbbind_grid(split='random', featurizer='grid', subset='core', reload=True)
Loading dataset from disk.
TIMING: dataset construction took 0.031 s
Loading dataset from disk.
TIMING: dataset construction took 0.191 s
Loading dataset from disk.
TIMING: dataset construction took 0.022 s
Loading dataset from disk.
Traceback (most recent call last):
File "", line 1, in
TypeError: 'NoneType' object is not iterable

I am stuck.

@rbharath
Copy link
Member

Could you upgrade to DeepChem 2.2? The book scripts are intended to be run with 2.2 and later versions of DeepChem.

@bmooers
Copy link

bmooers commented Jun 18, 2019

Thank you for the suggestion.

After removing macports from my path, I was able to install deepchem with python3.5 from source after running the bash script. The code in question is now starting to download a 2GB file.

Please note that the version number in deepchem/init.py in GitHub is 2.1.1. when maybe it should be 2.2.1.

@bmooers
Copy link

bmooers commented Jun 18, 2019

You can close this issue.

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