Can't deploy FbProphet based program in streamlit

I created a program using FbProphet module. I was able to deplot in on local server via streamlit on Google Colab.
But when I’m trying to deploy on Streamlit Share, there is an error. The client isn’t able to download and install the FbProphet module.

What is the error message?
And better yet, give us the link to your Github repo.

Thanks for the help. I managed to make it work by adding Pystan==2.19.1.1 in the requirements.txt file above Fbprophet and redeploying the web app
The problem was that Fbprophet requires pystan module for compiling the wheel file by calling Pystan. But in >3.0.0 versions of pystan, it is imported as “stan” which is why I was getting the error.
My deployed application can be found here:
https://share.streamlit.io/ozzey/stocks_price_predictor_module2/main/main.py

1 Like

I am unable to deploy using pystan==2.19.1.1 also

Hi @Ajay_Salunke, welcome to the Streamlit community!! :wave: :partying_face:

I have no idea why fbprophet via pip breaks on Streamlit sharing. For the time being, I was able to successfully install it by including pystan==2.19.1.1 before fbprophet==0.7.1 in the requirements.txt file.

Here’s a cleaned up version with only the necessary packages that led to a successful deployment :rocket::

streamlit==0.82.0
pystan==2.19.1.1
plotly==4.14.3
fbprophet==0.7.1
yfinance==0.1.59

First, delete your app from sharing. Edit your requirements.txt to look exactly like the one I shared above :point_up:, and deploy your app on sharing again. Although you will see the same error on the console, fbprophet should nevertheless get installed. Let me know if this works for you!

Happy Streamlit-ing! :balloon:
Snehan