ModuleNotFoundError:No module named 'st_aggrid'

Please help me…
(# ModuleNotFoundError)
for st_aggrid while deploying the app. It works when using local host.
I have already installed streamlit-aggrid.

from st_aggrid import AgGrid

File “/Users/takenawakajun/Desktop/”, line 1, in
from st_aggrid import AgGrid
ModuleNotFoundError: No module named ‘st_aggrid’

スクリーンショット 2022-07-04 18.12.18

1 Like

Hi @take2202, welcome to the Streamlit community!

Can you clarify where this code does run and where it doesn’t? Your post implies that it works on localhost, but then the image you provide shows that it doesn’t run on localhost.



Same issue as OP. and @randyzwitch you are correct, in localhost, I have no issue with st_aggrid, but when deploying, I get this error.

1 Like

Hi @Ahm_u.k ,

if you are having troubles with deployment, are you doing it on Streamlit cloud? If so, I would recommend looking at this documentation and supplying streamlit-aggrid as a dependency.

Here is some documentation that may help with your issue.

If this doesn’t help, please let me know I can try to help further!



1 Like

Here’s an additional doc specifically about the ModuleNotFoundError:

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