Closed pseudotensor closed 5 years ago
Google suggests need C++14 features, which centos7 doesn't have it (would need to rebuild gcc, which is non-trivial due to dependencies).
However, didn't have this issue with prior versions of pystan as of yesterday.
Something happened at April 7, 20:24 through 21:43 PST, as our build system shows.
Stan 2.19 needs C++14 compatible compiler
See https://pystan.readthedocs.io/en/latest/whats_new.html#v2-19-0-0-31-mar-2019
PyPI was updated yesterday to pystan 2.19.
Can you install 2.18 or 2.17?
Yes, 2.18 is good. But just so you know, noone who has centos/redhat (which is alot of actual users out there) won't be able to use 2.19 etc. that require these compiler features.
Good to know. These compiler options are handled and decided in the main Stan lib.
cc @seantalts do we have some solutions for centos/redhat users?
You'll have to install a newer version of gcc. I think instructions for doing this should be easy to find.
(We actually install a newer version of gcc on a centos docker image in order to build the Python wheels for Linux -- so I know it's possible.)
On 5/9/19 4:23 AM, Ari Hartikainen wrote:
Good to know. These compiler options are handled and decided in the main Stan lib.
cc @seantalts https://github.com/seantalts do we have some solutions for centos/redhat users?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/stan-dev/pystan/issues/583#issuecomment-490807158, or mute the thread https://github.com/notifications/unsubscribe-auth/AJQUBVUFXRZK5O22RYS2G73PUPNQ3ANCNFSM4HEGWSOQ.
Yep. And for the record, you can always "install" packages in your home directory and set your own PATH on Linux (e.g. this post doing so with clang some years ago on SO).
I suppose you are saying there was some major reason to switch to C++14 features, or are you saying there was no good reason and weren't aware of this issue of lack of support on centos/redhat and you are just giving a solution now that you can't go back?
There are major reasons we switched to C++1y if that helps.
On Thu, May 9, 2019 at 16:14 pseudotensor notifications@github.com wrote:
I suppose you are saying there was some major reason to switch to C++14 features, or are you saying there was no good reason and weren't aware of this issue of lack of support on centos/redhat and you are just giving a solution now that you can't go back?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/stan-dev/pystan/issues/583#issuecomment-491049165, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGET3AGDGXY7XMK2CMEBJLPUSAY3ANCNFSM4HEGWSOQ .
I get the same error on Majowe, when I try to install fbprophet. It seems pystan installed succesfully however, when I test, it does not work properly and throws the same error. I have tried to downgrade it however, it gives following error. Please help.
ERROR: Cannot uninstall 'pystan'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
Please create a new issue if you have a problem with macOS Mojave.
INFO:pystan:COMPILING THE C++ CODE FOR MODEL anon_model_861b75c6337e237650a61ae58c4385ef NOW. error: command '/usr/bin/clang' failed with exit status 1
==
clang --version Apple LLVM version 9.1.0 (clang-902.0.39.1) Target: x86_64-apple-darwin17.3.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin
How to fix it?
Hi, please create a new issue if you have compilation problems.
Summary:
Please provide a short couple sentence summary.
command 'gcc' failed with exit status 1
Description:
Describe the issue as clearly as possible.
fbprophet fails, and traced down to change just yesterday in dependency on pystan, where prophet was allowing >=2.14 and apparently 2.19 has major build changes.
Reproducible Steps:
Please report steps to reproduce the issue. If it's not possible to reproduce, please include a description of how you discovered the issue.
1) centos7 docker, with gcc, etc. 2) pip install pystan 3)
If you have a reproducible example, please include it.
Current Output:
The current output. Knowing what is the current behavior is useful.
Expected Output:
Describe what you expect the output to be. Knowing the correct behavior is also very useful.
Compile without error.
PyStan Version:
2.19, but 2.14-2.18 work fine.
Python Version:
3.6.4
Operating System:
x86 centos7
work-around for fbprophet is to install pystan<=2.18, e.g. 2.14 works fine.