gamcoh / st-card

Streamlit component for UI cards
https://pypi.org/project/streamlit-card/
MIT License
116 stars 19 forks source link

Frontend build folder missing #15

Closed marcjulianschwarz closed 1 year ago

marcjulianschwarz commented 1 year ago

Hi,

it seems like the frontend build folder is missing when installing with pip. Running a streamlit app with card components throws this error:

FileNotFoundError: [Errno 2] No such file or directory: ...\\.conda\\envs\\...\\Lib\\site-packages\\streamlit_card\\frontend\\build\\null'
ComponentRequestHandler: GET ...\.conda\envs\...\Lib\site-packages\streamlit_card\frontend\build\null read error

I once had a similar issue with this streamlit component (issue).

gamcoh commented 1 year ago

Hi, I just installed it on a new instance, it works well.

Could you share us your environment config?

Also you link is 404

marcjulianschwarz commented 1 year ago

Oops, sorry about the link. Here it is: https://github.com/giswqs/streamlit-timeline/issues/5

marcjulianschwarz commented 1 year ago

I am running python 3.10.12 with streamlit version 1.25.0 and streamlit-card version 0.0.61.

OJddJO commented 1 year ago

Did you install it with pip install streamlit-card or download the release file ?

marcjulianschwarz commented 1 year ago

I used pip install streamlit-card

OJddJO commented 1 year ago

Try to use this then streamlit_card.zip (Original one)

Or this streamlit_card.zip. It's a version that I modified and compiled myself. It has the same properties and arguments as the normal one + some usefull things like the ability to modify the CSS of every element.

Put the folder at the root of your project and do this to import it with

from streamlit_card import Card