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

webresource client: TypeError: 'NoneType' object has no attribute '__getitem__ #53

Closed
czodrowskilab opened this issue Mar 29, 2019 · 1 comment

Comments

@czodrowskilab
Copy link

I just installed the web client into a new Conda env and ran this piece of code (taken from https://github.com/chembl/chembl_webresource_client):

from chembl_webresource_client.new_client import new_client
target = new_client.target
activity = new_client.activity
herg = target.search('herg')[0]
herg_activities = activity.filter(target_chembl_id=herg['target_chembl_id']).filter(standard_type="Ki")

Based on the issue referenced below:
pip install --force-reinstall gevent==1.2.2
pip install --force-reinstall greenlet==0.4.12

I'm ending up with this error message:
TypeError: 'NoneType' object has no attribute 'getitem'

Any clue what is going wrong?

Hi everyone, I have just been checking this in python 2.7 and the main issue are the updates to gevent and greenlet libraries, so I would suggest to execute the following pip commands:

pip install --force-reinstall gevent==1.2.2
pip install --force-reinstall greenlet==0.4.12

Originally posted by @juanfmx2 in #38 (comment)

@eloyfelix
Copy link
Member

we just release a new version of the client dropping py2 compatibility and fixing any issue with py3.7.

please install it using pip:

pip install chembl_webresource_client

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