erykml / Python-for-Finance-Cookbook-2E

The repository of "Python for Finance Cookbook" 2nd edition
MIT License
175 stars 130 forks source link

Errors with Technica_analysis_app.py #3

Open dutchkal18 opened 1 year ago

dutchkal18 commented 1 year ago

Error with @st.cache for function 'get_sp500_components()"

For this file "https://github.com/erykml/Python-for-Finance-Cookbook-2E/blob/main/05_technical_analysis_and_building_interactive_dashboards/technical_analysis_app.py"

erykml commented 1 year ago

Hi!

What kind of error are you getting? Also, are you sure you are using the streamlit version from the requirements file?

Cheers!

dutchkal18 commented 1 year ago

Getting an error when I run that says there is a batch inferencing error when trying to pull data from s&p 500. I also ensured I had the correct streamlit version to match the requirements file. Do I need the exact versions from the requirements text for any programs external to python to run that specific code?

erykml commented 1 year ago

That is weird, as it works for me. Maybe some other library has issues. Could you try to create a new venv, install only the dependencies from requirements.txt and see if everything works then?