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

local Version #15

Open
steto123 opened this issue Jun 15, 2023 · 2 comments
Open

local Version #15

steto123 opened this issue Jun 15, 2023 · 2 comments

Comments

@steto123
Copy link

I have some problems to run cascade as local instance. I have cloned the github repo and install the given requirements. Now i run the notebook in the directory CASCADE/cascade-Jupyternotebook-SMILES/models
but there are some errors running the first cell


ImportError Traceback (most recent call last)
Cell In[2], line 4
2 import numpy as np
3 from rdkit import Chem
----> 4 from nfp.preprocessing import MolAPreprocessor, GraphSequence
6 import keras
7 import keras.backend as K

File E:\cascade\CASCADE\cascade-Jupyternotebook-SMILES\models\nfp_init_.py:1
----> 1 from .layers import *
2 from .models import *
4 custom_layers = {
5 'MessageLayer': MessageLayer,
6 'EdgeNetwork': EdgeNetwork,
(...)
14 'masked_mean_squared_error': masked_mean_squared_error
15 }

File E:\cascade\CASCADE\cascade-Jupyternotebook-SMILES\models\nfp\layers_init_.py:1
----> 1 from .layers import *
2 from .utils import *
3 from .wrappers import *

File E:\cascade\CASCADE\cascade-Jupyternotebook-SMILES\models\nfp\layers\layers.py:1
----> 1 from keras.engine import Layer
3 from keras.layers import activations
4 from keras.layers import initializers

ImportError: cannot import name 'Layer' from 'keras.engine' (C:\Users\wotan\anaconda3\lib\site-packages\keras\engine_init_.py)

Can anybody help me?

@shreesowndarya
Copy link
Collaborator

Hello,

Please make sure your notebook is in the following location: https://github.com/patonlab/CASCADE so that the paths to invoke nfp is right.

Also please set up an environment using webapp.yml file to have the necessary dependencies such as keras (https://github.com/patonlab/CASCADE/tree/master/cascade-Jupyternotebook-SMILES/models). There error above shows that you don't have the dependency keras which you would have to install.

@steto123
Copy link
Author

Hello.

Please excuse the long time I have not thanked you for your quick reply.
Unfortunately, the information you provided did not help me any further. No matter from which directory I start predict_nmr_xyzfile.ipynb, it does not find the module nfp. Even using different variants of the path specification in python does not lead to any success. Furthermore, there also seem to be problems with modules such as keras. The installation of the environment using webapp_env.yml also fails. Apparently some module versions are no longer available.
This is a great pity, because I find CASCADE very interesting. Fortunately, it can still be used online.
Thank you very much for your time and your great work.

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