ModuleNotFoundError: No module named 'streamlit.components'

Hello,

I installed streamlit-aggrid and tried imported it in my code but i immediately got this error:

----> 1 from st_aggrid import AgGrid

.../st_aggrid/__init__.py in <module>
      1 import os
----> 2 import streamlit.components.v1 as components
      3 import pandas as pd
      4 import numpy as np
      5 import simplejson

ModuleNotFoundError: No module named 'streamlit.components'

Does anyone know how to solve this issue ? Thanks in advance (@PablocFonseca)

Please provide a link to your github repo.

Hello Franky, there is no repo actually, I am working on a notebook and this line is the very first line of code :slight_smile:

from st_aggrid import AgGrid

You probably havenโ€™t installed streamlit in your environment?

I did install streamlit :slight_smile: but when installing I didnโ€™t specify any version

pip install streamlit
pip install streamlit-aggrid

I wonder if it has anything to do with thisโ€ฆ

pip install --upgrade streamlit

โ€ฆif you want to have the latest version

I checked and i the version installed was the latest version :frowning:
Thank you for helping me anyway Franky :slight_smile:

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.