ERROR: Failed building wheel for fbprophet
See original GitHub issue- pip version: 20.3.3
- Python version: 3.8
- OS: macOS 10.15.7
Attempted to install fbprophet
using pyenv+pip.
error: command 'clang' failed with exit status 1
- Checked gcc, updated Xcode etc.
- Uninstalled/installed pystan, cython - various versions
- Installed minconda for testing
- Installed
fbprophet
via conda+pipERROR: Command errored out with exit status 1:
,ERROR: Failed building wheel for fbprophet
message continues…DEPRECATION: fbprophet was installed using the legacy 'setup.py install' method, because a wheel could not be built for it. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.
message continues…Successfully installed Cython-0.29.21 LunarCalendar-0.0.9 cmdstanpy-0.9.5 convertdate-2.2.0 ephem-3.7.7.1 fbprophet-0.7.1 holidays-0.10.4 korean-lunar-calendar-0.2.1 pymeeus-0.3.7 pystan-2.19.1.1 pytz-2019.3 setuptools-git-1.2 tqdm-4.54.1
Conda+pip seems to be able to fix the issue itself using an older setup.py. Good for conda users, but I don’t use conda and many don’t use conda. pyenv+pip is a no go.
ERROR: Command errored out with exit status 1:
command: /usr/local/Caskroom/miniconda/base/envs/timeseries/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/nm/1w6ys2193txblx6lpzq1mh3h0000gn/T/pip-install-fhjx0msh/fbprophet_de439f09f7cc43399dbd395ae5454da8/setup.py'"'"'; __file__='"'"'/private/var/folders/nm/1w6ys2193txblx6lpzq1mh3h0000gn/T/pip-install-fhjx0msh/fbprophet_de439f09f7cc43399dbd395ae5454da8/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 /private/var/folders/nm/1w6ys2193txblx6lpzq1mh3h0000gn/T/pip-wheel-91b2uwlz
cwd: /private/var/folders/nm/1w6ys2193txblx6lpzq1mh3h0000gn/T/pip-install-fhjx0msh/fbprophet_de439f09f7cc43399dbd395ae5454da8/
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 "/private/var/folders/nm/1w6ys2193txblx6lpzq1mh3h0000gn/T/pip-install-fhjx0msh/fbprophet_de439f09f7cc43399dbd395ae5454da8/setup.py", line 122, in <module>
setup(
File "/usr/local/Caskroom/miniconda/base/envs/timeseries/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/local/Caskroom/miniconda/base/envs/timeseries/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/Caskroom/miniconda/base/envs/timeseries/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/local/Caskroom/miniconda/base/envs/timeseries/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/Caskroom/miniconda/base/envs/timeseries/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/usr/local/Caskroom/miniconda/base/envs/timeseries/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/Caskroom/miniconda/base/envs/timeseries/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/Caskroom/miniconda/base/envs/timeseries/lib/python3.8/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/local/Caskroom/miniconda/base/envs/timeseries/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/Caskroom/miniconda/base/envs/timeseries/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/var/folders/nm/1w6ys2193txblx6lpzq1mh3h0000gn/T/pip-install-fhjx0msh/fbprophet_de439f09f7cc43399dbd395ae5454da8/setup.py", line 48, in run
build_models(target_dir)
File "/private/var/folders/nm/1w6ys2193txblx6lpzq1mh3h0000gn/T/pip-install-fhjx0msh/fbprophet_de439f09f7cc43399dbd395ae5454da8/setup.py", line 36, in build_models
from fbprophet.models import StanBackendEnum
File "/private/var/folders/nm/1w6ys2193txblx6lpzq1mh3h0000gn/T/pip-install-fhjx0msh/fbprophet_de439f09f7cc43399dbd395ae5454da8/fbprophet/__init__.py", line 8, in <module>
from fbprophet.forecaster import Prophet
File "/private/var/folders/nm/1w6ys2193txblx6lpzq1mh3h0000gn/T/pip-install-fhjx0msh/fbprophet_de439f09f7cc43399dbd395ae5454da8/fbprophet/forecaster.py", line 17, in <module>
from fbprophet.make_holidays import get_holiday_names, make_holidays_df
File "/private/var/folders/nm/1w6ys2193txblx6lpzq1mh3h0000gn/T/pip-install-fhjx0msh/fbprophet_de439f09f7cc43399dbd395ae5454da8/fbprophet/make_holidays.py", line 14, in <module>
import fbprophet.hdays as hdays_part2
File "/private/var/folders/nm/1w6ys2193txblx6lpzq1mh3h0000gn/T/pip-install-fhjx0msh/fbprophet_de439f09f7cc43399dbd395ae5454da8/fbprophet/hdays.py", line 13, in <module>
from convertdate.islamic import from_gregorian, to_gregorian
ModuleNotFoundError: No module named 'convertdate'
----------------------------------------
ERROR: Failed building wheel for fbprophet
Running setup.py clean for fbprophet
Failed to build fbprophet
Installing collected packages: pytz, pymeeus, korean-lunar-calendar, ephem, Cython, convertdate, tqdm, setuptools-git, pystan, LunarCalendar, holidays, cmdstanpy, fbprophet
Attempting uninstall: pytz
Found existing installation: pytz 2020.4
Uninstalling pytz-2020.4:
Successfully uninstalled pytz-2020.4
Running setup.py install for fbprophet ... done
DEPRECATION: fbprophet was installed using the legacy 'setup.py install' method, because a wheel could not be built for it. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.
Successfully installed Cython-0.29.21 LunarCalendar-0.0.9 cmdstanpy-0.9.5 convertdate-2.2.0 ephem-3.7.7.1 fbprophet-0.7.1 holidays-0.10.4 korean-lunar-calendar-0.2.1 pymeeus-0.3.7 pystan-2.19.1.1 pytz-2019.3 setuptools-git-1.2 tqdm-4.54.1
- Are you aware of this?
- Is there are way for me to install
fbprophet
via conda into a pyenv environment? 🤡
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Fbprophet installation error - failed building wheel for fbprophet
Step 1: Check the kernel in jupyter. Locate the folder \jupyter\kernels\python3 and check the python exe location used by the kernel. Mine was ......
Read more >pip install error, Failed building wheel for fbprophet · Issue #722
I had installed Xcode but it's still installed fbprophet error. Does anyone can help me solve this problem? My environment: OSX : 10.14...
Read more >Unable to install pystan & fbprophet - Dataiku Community
Building wheel for fbprophet (setup.py): finished with status 'error' Running setup.py clean for fbprophetFailed to build ...
Read more >Error installing requirements using fbprophet - Streamlit
Some errors I am getting: '' ``` ERROR: Failed building wheel for pystan. Running setup.py clean for pystan. Building wheel for fbprophet ......
Read more >Error installing Pystan in python 3.10 with gcc 9.2.0
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pystan. Running setup.py...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the work. It seems like you’re another project blocked by this problem. Hopefully we can come up with a solution soon.
https://discuss.python.org/t/support-for-build-and-run-time-dependencies/1513/74
Would fbprophet be interested in opting into PEP 518? I cannot tell the maintainers’ stance on this from reading the linked issues. The required
pyproject.toml
should be quite straightforward, I can probably submit a PR if the y’all don’t object.