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

cannot access #38

Closed
zeromtmu opened this issue Jun 22, 2018 · 15 comments
Closed

cannot access #38

zeromtmu opened this issue Jun 22, 2018 · 15 comments

Comments

@zeromtmu
Copy link

i try to import chembl_webresource_client by

from chembl_webresource_client import *

but got this error

TypeErrorTraceback (most recent call last)
<ipython-input-18-4b4dfe9c8e8f> in <module>()
----> 1 from chembl_webresource_client import *
      2 
      3 targets = TargetResource()
      4 print targets.status()

/usr/local/lib/python2.7/dist-packages/chembl_webresource_client/__init__.py in <module>()
     14         pass
     15 
---> 16     gevent.greenlet.Greenlet._report_error = _greenlet_report_error
     17 
     18 import requests

TypeError: can't set attributes of built-in/extension type 'gevent._greenlet.Greenlet'
@juanfmx2
Copy link
Member

juanfmx2 commented Jun 29, 2018

Hi @zeromtmu,

Can you please provide me more details about which python version, and which other libraries you use (pip list), also could you please provide me the details of other imports that you execute before this import?

Thanks,
Juan

@zeromtmu
Copy link
Author

zeromtmu commented Jul 1, 2018 via email

@cirosantilli
Copy link

Reproduce in Ubuntu 18.04.

@cirosantilli
Copy link

Did not happen with python3. Installed with pip install chembl-webresource-client==0.9.31.

@juanfmx2
Copy link
Member

juanfmx2 commented Jul 3, 2018

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

@zeromtmu
Copy link
Author

zeromtmu commented Jul 19, 2018 via email

@juanfmx2
Copy link
Member

juanfmx2 commented Jul 25, 2018

Hi again @zeromtmu!

I have here a google colab iPython notebook with the way I made it work:
https://colab.research.google.com/drive/1U59HFqSolwHGMfOtkzgGa6qBQZLwifEk

Hope this helps!

@zeromtmu
Copy link
Author

zeromtmu commented Aug 3, 2018 via email

@juanfmx2
Copy link
Member

juanfmx2 commented Aug 3, 2018

Hi @zeromtmu, did this happen after a search? Can you please provide more details about how you got different results?

@zeromtmu
Copy link
Author

zeromtmu commented Aug 3, 2018 via email

@juanfmx2
Copy link
Member

juanfmx2 commented Aug 3, 2018

Hi @zeromtmu, did this happen after a search? Can you please provide more details about how you got different results? Can you please provide your search parameters? or screenshots of how are you obtaining different results? or the search term you used?

@zeromtmu
Copy link
Author

zeromtmu commented Aug 3, 2018 via email

@juanfmx2
Copy link
Member

juanfmx2 commented Aug 3, 2018

Hi, I have not received any screenshots, can you please upload them in the github issue like this:

screen shot 2018-08-03 at 17 04 52

And additionally tell me the search term or the id that you used, and the number of results you got in the web interface and the number you got from the webservices.

@zeromtmu
Copy link
Author

zeromtmu commented Aug 3, 2018

Oh sorry I did respond via email.
0a32ec1a-8228-4989-a6a7-7a14ce47ae8a
8d4b5901-3a02-43d8-a9ad-5f25e6c77906

@juanfmx2
Copy link
Member

juanfmx2 commented Aug 3, 2018

Hi @zeromtmu, thanks for this, I'll start investigating the reason for this, but you are right the numbers should match.

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

4 participants