-
Notifications
You must be signed in to change notification settings - Fork 73
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
importing failed #9
Comments
Try installing RDKit with the following:
!wget -c
https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
!chmod +x Miniconda3-latest-Linux-x86_64.sh
!bash ./Miniconda3-latest-Linux-x86_64.sh -b -f -p /usr/local
!conda install -q -y -c conda-forge rdkit
# Then append rdkit path to current python system path.
import sys
sys.path.append('/usr/local/lib/python3.7/site-packages/')
…On Sat, Feb 22, 2020 at 4:23 AM aminemosbah ***@***.***> wrote:
hi i get this when trying to run the tutorial, what to we need to install
rdkit in google collab ? thinks
ImportError Traceback (most recent call last)
in ()
1 import pandas as pd
----> 2 from rdkit import Chem
3 from rdkit.Chem import PandasTools
4 from rdkit.Chem.Draw import IPythonConsole
5
ImportError: cannot import name 'Chem'
------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#9?email_source=notifications&email_token=ADVE4OU6BOIMDJQCYSZGL5TREEKMRA5CNFSM4KZRDKH2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IPPIAXQ>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADVE4OVTXAIRA62ZNEF5AL3REEKMRANCNFSM4KZRDKHQ>
.
|
Are you sure this is the way to go with google collab ? I m trying to run rdkit on the cloud not on the local device |
Yes, see this example that was posted on the Rdkit discussion forum. https://colab.research.google.com/drive/1nQPmdEbYQgVsFr7c44yRd3wpXPEsJar3
This is what worked for me. I tried installing RDKit with apt-get on colab but that resulted in an error trying to import Chem.
JW
… On Feb 23, 2020, at 4:46 AM, aminemosbah ***@***.***> wrote:
Are you sure this is the way to go with google collab ? I m trying to run rdkit on the cloud not on the local device
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Thanks that’s fine
Get Outlook for iOS<https://aka.ms/o0ukef>
________________________________
From: JW Feng <[email protected]>
Sent: Sunday, February 23, 2020 5:42:59 PM
To: rdkit/rdkit-tutorials <[email protected]>
Cc: aminemosbah <[email protected]>; Author <[email protected]>
Subject: Re: [rdkit/rdkit-tutorials] importing failed (#9)
Yes, see this example that was posted on the Rdkit discussion forum. https://colab.research.google.com/drive/1nQPmdEbYQgVsFr7c44yRd3wpXPEsJar3
This is what worked for me. I tried installing RDKit with apt-get on colab but that resulted in an error trying to import Chem.
JW
On Feb 23, 2020, at 4:46 AM, aminemosbah ***@***.***> wrote:
Are you sure this is the way to go with google collab ? I m trying to run rdkit on the cloud not on the local device
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#9?email_source=notifications&email_token=AJ6TEN62NXAL45RCP2B6C2LREKRRHA5CNFSM4KZRDKH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMWAXEQ#issuecomment-590089106>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJ6TEN5CDKEK664ZP44FL6TREKRRHANCNFSM4KZRDKHQ>.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi i get this when trying to run the tutorial, what to we need to install rdkit in google collab ? thinks
ImportError Traceback (most recent call last)
in ()
1 import pandas as pd
----> 2 from rdkit import Chem
3 from rdkit.Chem import PandasTools
4 from rdkit.Chem.Draw import IPythonConsole
5
ImportError: cannot import name 'Chem'
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
The text was updated successfully, but these errors were encountered: