facebook / facebook/prophet

unable to install prophet in Debian ModuleNotFoundError: No module named 'holidays.financial'

Open
#2,194 1 comment 0 reactions 0 assignees View on GitHub
install py unix
Dominant language
Python
Stars
20.4k
Forks
4.6k
Avg merge
19h 52m
Merged PRs (30d)
1

Description

OS : Debian GNU/Linux 10 (buster)

pip3 install pystan==2.19.1.1
[succeded]
pip3 install prophet
failed

Error:
cmd_obj.run()
File "/usr/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-ge6s364l/fbprophet_b8a94615f36942f08591d5a46501db31/setup.py", line 48, in run
build_models(target_dir)
File "/tmp/pip-install-ge6s364l/fbprophet_b8a94615f36942f08591d5a46501db31/setup.py", line 36, in build_models
from fbprophet.models import StanBackendEnum
File "/tmp/pip-install-ge6s364l/fbprophet_b8a94615f36942f08591d5a46501db31/fbprophet/__init__.py", line 8, in
from fbprophet.forecaster import Prophet
File "/tmp/pip-install-ge6s364l/fbprophet_b8a94615f36942f08591d5a46501db31/fbprophet/forecaster.py", line 17, in
from fbprophet.make_holidays import get_holiday_names, make_holidays_df
File "/tmp/pip-install-ge6s364l/fbprophet_b8a94615f36942f08591d5a46501db31/fbprophet/make_holidays.py", line 14, in
import fbprophet.hdays as hdays_part2
File "/tmp/pip-install-ge6s364l/fbprophet_b8a94615f36942f08591d5a46501db31/fbprophet/hdays.py", line 17, in
from holidays import WEEKEND, HolidayBase, Turkey
File "/home/jyotirmoysundi/dash/env/lib/python3.7/site-packages/holidays/__init__.py", line 11, in
from holidays.countries import *
File "/home/jyotirmoysundi/dash/env/lib/python3.7/site-packages/holidays/countries/__init__.py", line 17, in
from .azerbaijan import Azerbaijan, AZ, AZE
File "/home/jyotirmoysundi/dash/env/lib/python3.7/site-packages/holidays/countries/azerbaijan.py", line 16, in
from holidays.utils import _islamic_to_gre
File "/home/jyotirmoysundi/dash/env/lib/python3.7/site-packages/holidays/utils.py", line 24, in
import holidays.financial
ModuleNotFoundError: No module named 'holidays.financial'
----------------------------------------
ERROR: Command errored out with exit status 1: /home/jyotirmoysundi/dash/env/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ge6s364l/fbprophet_b8a94615f36942f08591d5a46501db31/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ge6s364l/fbprophet_b8a94615f36942f08591d5a46501db31/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-c_3h_s2c/install-record.txt --single-version-externally-managed --compile --install-headers /home/jyotirmoysundi/dash/env/include/site/python3.7/fbprophet Check the logs for full command output.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.