aspuru-guzik-group / chemical_vae

Code for 10.1021/acscentsci.7b00572, now running on Keras 2.0 and Tensorflow
Apache License 2.0
470 stars 178 forks source link

Trouble Setting up Chemvae #58

Open shmurthy7002 opened 3 weeks ago

shmurthy7002 commented 3 weeks ago

I used conda to create the environment and then selected the "chemvae" interpreter in vscode. When I try to run the first cell of the given example script (all of the imports), I run into the error below, I tried removing and adding the environment again, I also tried using pycharm instead of vscode, and neither fixed the problem. I am new to using conda so please bear with me, thanks in advance.

TypeError Traceback (most recent call last)

in 3 environ['KERAS_BACKEND'] = 'tensorflow' 4 # vae stuff ----> 5 from chemvae.vae_utils import VAEUtils 6 from chemvae import mol_utils as mu 7 # import scientific py c:\Users\yhtru\anaconda3\envs\chemvae\lib\importlib\_bootstrap.py in _find_and_load(name, import_) c:\Users\yhtru\anaconda3\envs\chemvae\lib\importlib\_bootstrap.py in _find_and_load_unlocked(name, import_) c:\Users\yhtru\anaconda3\envs\chemvae\lib\importlib\_bootstrap.py in _load_unlocked(spec) c:\Users\yhtru\anaconda3\envs\chemvae\lib\importlib\_bootstrap.py in _load_backward_compatible(spec) c:\Users\yhtru\anaconda3\envs\chemvae\lib\site-packages\chemvae-1.0.0-py3.6.egg\chemvae\vae_utils.py in 3 import random 4 import yaml ----> 5 from .models import load_encoder, load_decoder, load_property_predictor 6 import numpy as np 7 import pandas as pd c:\Users\yhtru\anaconda3\envs\chemvae\lib\importlib\_bootstrap.py in _find_and_load(name, import_) ... ---> 82 class ArgumentParser(Generic[_T], metaclass=_ArgumentParserCache): 83 """Base class used to parse and convert arguments. 84 TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases