prophet: Cygwin: pip install fbprophet fails with Error 11 - Resource temporarily unavailable

I have pystan and all prerequisites installed on cygwin, windows 7 64 bit. When I attempt to install fbprophet via pip, I get the following error with no further details…

$ pip install fbprophet
Collecting fbprophet
  Downloading fbprophet-0.1.post1.tar.gz
Requirement already satisfied: pandas in /usr/lib/python3.4/site-packages (from fbprophet)
Requirement already satisfied: pystan in /usr/lib/python3.4/site-packages (from fbprophet)
Requirement already satisfied: pytz>=2011k in /usr/lib/python3.4/site-packages (from pandas->fbprophet)
Requirement already satisfied: python-dateutil>=2 in /usr/lib/python3.4/site-packages (from pandas->fbprophet)
Requirement already satisfied: numpy>=1.7.0 in /usr/lib/python3.4/site-packages (from pandas->fbprophet)
Requirement already satisfied: Cython!=0.25.1,>=0.22 in /usr/lib/python3.4/site-packages (from pystan->fbprophet)
Requirement already satisfied: six>=1.5 in /usr/lib/python3.4/site-packages (from python-dateutil>=2->pandas->fbprophet)
Building wheels for collected packages: fbprophet
  Running setup.py bdist_wheel for fbprophet ... error
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-6r49tg2p/fbprophet/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/tmpr_88z480pip-wheel- --python-tag cp34:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib
  creating build/lib/fbprophet
  creating build/lib/fbprophet/stan_models
  INFO:pystan:COMPILING THE C++ CODE FOR MODEL anon_model_35bf14a7f93814266f16b4cf48b40a5a NOW.
  INFO:pystan:COMPILING THE C++ CODE FOR MODEL anon_model_53588bb481d3f3b19450fc8e3b147683 NOW.
  error: [Errno 11] Resource temporarily unavailable

  ----------------------------------------
  Failed building wheel for fbprophet
  Running setup.py clean for fbprophet
Failed to build fbprophet
Installing collected packages: fbprophet
  Running setup.py install for fbprophet ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-6r49tg2p/fbprophet/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-7c5dep4c-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib
    creating build/lib/fbprophet
    creating build/lib/fbprophet/stan_models
    INFO:pystan:COMPILING THE C++ CODE FOR MODEL anon_model_35bf14a7f93814266f16b4cf48b40a5a NOW.
    INFO:pystan:COMPILING THE C++ CODE FOR MODEL anon_model_53588bb481d3f3b19450fc8e3b147683 NOW.
    error: [Errno 11] Resource temporarily unavailable

    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-6r49tg2p/fbprophet/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-7c5dep4c-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-6r49tg2p/fbprophet/

Is this because python3 can’t fork properly on windows? I’ve already done a rebaseall and verified cygwin core components as part of the exercise leading up to this while getting pystan installed (no small feat). Am I doing something wrong?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17 (5 by maintainers)

Most upvoted comments

I think this is the first report of Prophet in Windows via Cygwin.

In Windows Python not-via-cygwin, there is an ongoing issue that is preventing successful installation (#2) which seems to be an upstream issue in PyStan not supporting matrix multiplication in Windows (https://github.com/stan-dev/pystan/issues/308). You do have a different error however, so it would be great if you could check that PyStan is working with matrix multiplication.

This code is a simple test that PyStan is working at all (sounds like it is):

import pystan
model_code = 'parameters {real y;} model {y ~ normal(0,1);}'
model = pystan.StanModel(model_code=model_code)  # this will take a minute
y = model.sampling(n_jobs=1).extract()['y']
y.mean()  # should be close to 0

This code will test matrix multiplication, which is currently failing in Windows not-cygwin:

import pystan
model_code = """
data {
  int n;                                
  int m;                                
  matrix[n, m] A;
  vector[n] y;
}

parameters {
  vector[m] delta;
}

model {y ~ normal(A * delta,1);}
"""
model = pystan.StanModel(model_code=model_code)

I’m going to close this for now and if the upstream issues are fixed we can revisit this.