Cant deploy my app fbprophet convertdate

Hello everyone :slight_smile:
iam pretty new to streamlit sharing.
The app runs on my machine (LOL)…
Can anyone help with this error?


  Building wheel for fbprophet (setup.py): started
  Building wheel for fbprophet (setup.py): 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-_cwzdub2/fbprophet_650716046a994a8889d7feb5045c996c/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_cwzdub2/fbprophet_650716046a994a8889d7feb5045c996c/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-vjli57kl

       cwd: /tmp/pip-install-_cwzdub2/fbprophet_650716046a994a8889d7feb5045c996c/

  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-_cwzdub2/fbprophet_650716046a994a8889d7feb5045c996c/setup.py", line 149, in <module>

      long_description_content_type='text/markdown',

    File "/home/appuser/venv/lib/python3.7/site-packages/setuptools/__init__.py", line 153, in setup

      return distutils.core.setup(**attrs)

    File "/usr/local/lib/python3.7/distutils/core.py", line 148, in setup

      dist.run_commands()

    File "/usr/local/lib/python3.7/distutils/dist.py", line 966, in run_commands

      self.run_command(cmd)

    File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command

      cmd_obj.run()

    File "/home/appuser/venv/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 299, in run

      self.run_command('build')

    File "/usr/local/lib/python3.7/distutils/cmd.py", line 313, in run_command

      self.distribution.run_command(command)

    File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command

      cmd_obj.run()

    File "/usr/local/lib/python3.7/distutils/command/build.py", line 135, in run

      self.run_command(cmd_name)

    File "/usr/local/lib/python3.7/distutils/cmd.py", line 313, in run_command

      self.distribution.run_command(command)

    File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command

      cmd_obj.run()

    File "/tmp/pip-install-_cwzdub2/fbprophet_650716046a994a8889d7feb5045c996c/setup.py", line 48, in run

      build_models(target_dir)

    File "/tmp/pip-install-_cwzdub2/fbprophet_650716046a994a8889d7feb5045c996c/setup.py", line 36, in build_models

      from fbprophet.models import StanBackendEnum

    File "/tmp/pip-install-_cwzdub2/fbprophet_650716046a994a8889d7feb5045c996c/fbprophet/__init__.py", line 8, in <module>

      from fbprophet.forecaster import Prophet

    File "/tmp/pip-install-_cwzdub2/fbprophet_650716046a994a8889d7feb5045c996c/fbprophet/forecaster.py", line 17, in <module>

      from fbprophet.make_holidays import get_holiday_names, make_holidays_df

    File "/tmp/pip-install-_cwzdub2/fbprophet_650716046a994a8889d7feb5045c996c/fbprophet/make_holidays.py", line 14, in <module>

      import fbprophet.hdays as hdays_part2

    File "/tmp/pip-install-_cwzdub2/fbprophet_650716046a994a8889d7feb5045c996c/fbprophet/hdays.py", line 13, in <module>

      from convertdate.islamic import from_gregorian, to_gregorian

  ModuleNotFoundError: No module named 'convertdate'

my app runs there:
https://share.streamlit.io/jokus-pokus/gesundheitsamt/main/Modellierung.py

thanks in advance for every suggestion to fix this :wink:
Other suggestions like doker it or sth also welcome!

Greets jokus

Hi @jokus-pokus!

From reading the error traceback

I’m going to suggest to try and add convertdate to your requirements.txt explicitly. It’s odd that fbprophet didn’t install it, but that may be a specific install I did not look into :slight_smile: .

:balloon: Fanilo

1 Like

Hi @andfanilo,
i have convertdate already in my req.txt.
This is whats in there:
Cython
numpy
pandas
convertdate
plotly
matplotlib
pystan==2.19.1.1
fbprophet
wetterdienst==0.15.0
geopandas
requests
streamlit

So any other suggestions?

Ah I see this topic is a duplicate of Can't deploy my fbprophet app in Streamlit share .

Then we can ask for Charly’s solution involving using conda requirements instead of pip?

Would you mind if we continue the conversation there instead so I close this one?

Fanilo

sure we can