Hi there!
I am using RDKit in my application, which runs fine locally.
import mols2grid
import pandas as pd
import streamlit as st
import streamlit.components.v1 as components
from rdkit import Chem
from rdkit.Chem.Descriptors import ExactMolWt
However, when I try to deploy the app, all the dependencies are processed, but I get the error:
Traceback (most recent call last):
File “/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py”, line 349, in _run_script
exec(code, module.dict)
File “/app/cdd/original-app.py”, line 5, in
import mols2grid
File “/home/appuser/venv/lib/python3.7/site-packages/mols2grid/init.py”, line 1, in
from .molgrid import MolGrid
File “/home/appuser/venv/lib/python3.7/site-packages/mols2grid/molgrid.py”, line 9, in
from rdkit import Chem
ModuleNotFoundError: No module named ‘rdkit’
I’m not sure if I need to include rdkit in the requirements.txt file even though I’m not installing it. I used the rdkit environment.
Hope you can help!