stan-dev/pystan

python setup.py bdist_wheel did not run successfully.

uomodellamansarda opened this issue · 1 comments

Hi I am working on Colab with Prophet.
In the previous months everything was working properly, but now when I install pystan 2.14 or 2.19 I get an error message.

Basically if I run on Google Colab one of these two pip install

!pip install pystan~=2.14
!pip install pystan~=2.19.1.1

Google Colab returns the following error:


Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Collecting pystan~=2.19.1.1
  Using cached pystan-2.19.1.1.tar.gz (16.2 MB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: Cython!=0.25.1,>=0.22 in /usr/local/lib/python3.10/dist-packages (from pystan~=2.19.1.1) (0.29.34)
Requirement already satisfied: numpy>=1.7 in /usr/local/lib/python3.10/dist-packages (from pystan~=2.19.1.1) (1.22.4)
Building wheels for collected packages: pystan
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  Building wheel for pystan (setup.py) ... error
  ERROR: Failed building wheel for pystan
  Running setup.py clean for pystan
Failed to build pystan
ERROR: Could not build wheels for pystan, which is required to install pyproject.toml-based projects
Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/

I thought this was the best place where to ask.

Best,
Andrea

Hi, pystan 2.x is not supported anymore.

Maybe colab updated python or some other component (compiler?) which has caused this error.

I think latest prophet should support cmdstanpy, maybe try workflow against it.