Can't deploy my fbprophet app in Streamlit share

Can’t deploy my fbprophet app in Streamlit share.

Error in the logs include:
ModuleNotFoundError: No module named ‘convertdate’
ERROR: Failed building wheel for fbprophet

But I have already included below in requirements.txt

I suspect there are missing (apt) dependencies for fbprophet.
Unfortunately, I don’t know what is already included in the runtime engine of Streamlit sharing, but I would try to add a packages.txt file with the following content:


Thanks Franky1. I have tried to add packages.txt but no luck. Same error remain.

Please post the error messages.

Building wheels for collected packages: fbprophet, yfinance, multitasking, pymeeus, retrying
  Building wheel for fbprophet ( started
  Building wheel for fbprophet ( finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /home/appuser/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-w05a8ryc/fbprophet_7d26009f07a040a7b302a1320c1da0ed/'"'"'; __file__='"'"'/tmp/pip-install-w05a8ryc/fbprophet_7d26009f07a040a7b302a1320c1da0ed/'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);'"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-kv1szgx0
       cwd: /tmp/pip-install-w05a8ryc/fbprophet_7d26009f07a040a7b302a1320c1da0ed/
  Complete output (44 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib
  creating build/lib/fbprophet
  creating build/lib/fbprophet/stan_model
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-w05a8ryc/fbprophet_7d26009f07a040a7b302a1320c1da0ed/", line 149, in <module>
    File "/home/appuser/venv/lib/python3.7/site-packages/setuptools/", line 153, in setup
      return distutils.core.setup(**attrs)
    File "/usr/local/lib/python3.7/distutils/", line 148, in setup
    File "/usr/local/lib/python3.7/distutils/", line 966, in run_commands
    File "/usr/local/lib/python3.7/distutils/", line 985, in run_command
    File "/home/appuser/venv/lib/python3.7/site-packages/wheel/", line 299, in run
    File "/usr/local/lib/python3.7/distutils/", line 313, in run_command
    File "/usr/local/lib/python3.7/distutils/", line 985, in run_command
    File "/usr/local/lib/python3.7/distutils/command/", line 135, in run
    File "/usr/local/lib/python3.7/distutils/", line 313, in run_command
    File "/usr/local/lib/python3.7/distutils/", line 985, in run_command
    File "/tmp/pip-install-w05a8ryc/fbprophet_7d26009f07a040a7b302a1320c1da0ed/", line 48, in run
    File "/tmp/pip-install-w05a8ryc/fbprophet_7d26009f07a040a7b302a1320c1da0ed/", line 36, in build_models
      from fbprophet.models import StanBackendEnum
    File "/tmp/pip-install-w05a8ryc/fbprophet_7d26009f07a040a7b302a1320c1da0ed/fbprophet/", line 8, in <module>
      from fbprophet.forecaster import Prophet
    File "/tmp/pip-install-w05a8ryc/fbprophet_7d26009f07a040a7b302a1320c1da0ed/fbprophet/", line 17, in <module>
      from fbprophet.make_holidays import get_holiday_names, make_holidays_df
    File "/tmp/pip-install-w05a8ryc/fbprophet_7d26009f07a040a7b302a1320c1da0ed/fbprophet/", line 14, in <module>
      import fbprophet.hdays as hdays_part2
    File "/tmp/pip-install-w05a8ryc/fbprophet_7d26009f07a040a7b302a1320c1da0ed/fbprophet/", line 13, in <module>
      from convertdate.islamic import from_gregorian, to_gregorian
  ModuleNotFoundError: No module named 'convertdate'
  ERROR: Failed building wheel for fbprophet

I am not sure where the problem is or if it is several problems at once.
The error messages show fbprophet and convertdate.
Is the app running locally? If so, on which system?

Furthermore, I would try to reduce or isolate the problems. Make a very simple app that only uses convertdate and try to deploy it. Then take a simple app that only uses fbprophet and try to deploy it.

Btw, please post any code or log messages in markdown format here for better readability:

put your error messages here
1 Like

The app work as I have successfully deployed it in herokuapp before

Try to install via Anaconda for Streamlit Sharing.
It worked for me! :slight_smile:


1 Like

Thanks all. I finally get the problem resolved by using a particular version of pystan== in the requirements.txt

Hey @yaukampiu can you show me your whole req file pls?
Iam faceing the same issu…
Nothing helps… :frowning:
Thanks in advance




Thanks @yaukampiu
Iam still facing the error:

ModuleNotFoundError: No module named 'convertdate'

@jokus-pokus In spite of that error you see while building the fbprophet wheel, fbprophet is nevertheless installed with it’s own and successfully builds.

What is currently breaking your app is the wetterdienst==0.15.0 module. Try using @yaukampiu’s requirements.txt but omitting wetterdienst==0.15.0 and not using it in your app. The app seems to launch successfully :thinking:

1 Like

Okai but why does wetterdienst break the app?
i need the library to load german weather data…
how can i handle this?

If you look into the dependencies of wetterdienst in their requirements.txt you will find a LOT of packages. One or more of this dependencies may lead to the issue.

What is the error message during the deployment of the wetterdienst package?

1 Like

The app is running now omg :slight_smile:
Okai next error is:

[manager] Error checking Streamlit healthz: Get "http://localhost:8501/healthz": read tcp> read: connection reset by peer

i guess this is because i load a lot data point and RAM is not enough.
I think i need to rework the data extraction process!?
What do you think?