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

import error after pip installation #102

Closed
mehmettan opened this issue Sep 22, 2021 · 7 comments
Closed

import error after pip installation #102

mehmettan opened this issue Sep 22, 2021 · 7 comments

Comments

@mehmettan
Copy link

mehmettan commented Sep 22, 2021

Hi everyone,

I installed PyDTC as follows:

pip3 install PyDTC

It currently installs PyDTC-0.4.1. import tdc works OK. However the following import gives the error message below:

In [1]: from tdc.chem_utils import MolConvert                                   
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-157163aceaa9> in <module>
----> 1 from tdc.chem_utils import MolConvert

~/.local/lib/python3.8/site-packages/tdc/chem_utils/__init__.py in <module>
      1 from .evaluator import validity, uniqueness, novelty, diversity, kl_divergence, fcd_distance
----> 2 from .featurize.molconvert import MolConvert
      3 from .oracle.oracle import PyScreener_meta, Vina_3d, Score_3d, Vina_smiles, molecule_one_retro, ibm_rxn, \
      4                                         askcos, isomers_c7h8n2o2, isomers_c9h10n2o2pf2cl, \
      5                                         valsartan_smarts, scaffold_hop, deco_hop, \

ModuleNotFoundError: No module named 'tdc.chem_utils.featurize'

What should I do to fix this?

Thanks,

@futianfan
Copy link
Collaborator

can you install tdc-0.3.1 and try again? thanks

@mehmettan mehmettan reopened this Sep 23, 2021
@mehmettan
Copy link
Author

Installed with "pip3 install -Iv pyDTC==0.3.1". Still the same error.

@kexinhuang12345
Copy link
Collaborator

Can you do pip install PyTDC --upgrade?

@mehmettan
Copy link
Author

I tried that too, but still the same error. I am using ubuntu 20.04 btw.

@kexinhuang12345
Copy link
Collaborator

We also tried on ubuntu, works good. Maybe you are in the TDC raw folder? That way, it would just use the tdc version in that folder, instead of the pip version

@mehmettan
Copy link
Author

Managed to install by python setup.py install --user. pip still does not work for me.

@kexinhuang12345
Copy link
Collaborator

Yeah, it seems you are in the TDC source folder. So it prioritizes the TDC source version. If you jump out of the TDC folder, the pip version would be used.

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