difficulty installing pystan

787 views
Skip to first unread message

Noah Motion

unread,
Oct 23, 2014, 8:31:31 PM10/23/14
to stan-...@googlegroups.com
I've gotten pystan to install and function properly on two Macs (one iMac, one Macbook Air), both running Yosemite. I tried to install it on a third Mac, also running Yosemite, and got this error:

error: Command "gcc -fno-strict-aliasing -I/Users/noahsilbert/anaconda/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -Ipystan/stan/src -Ipystan/stan/lib/eigen_3.2.0 -Ipystan/stan/lib/boost_1.54.0 -c pystan/stan/src/stan/agrad/rev/var_stack.cpp -o build/temp.macosx-10.5-x86_64-2.7/pystan/stan/src/stan/agrad/rev/var_stack.o" failed with exit status 69

I am at a loss to understand what this means or what I can do to get pystan to work on this computer. Any advice would be greatly appreciated.

Allen Riddell

unread,
Oct 23, 2014, 8:47:39 PM10/23/14
to stan-...@googlegroups.com
Hi Noah,

I'll take a stab at figuring this out. Are you doing ``pip install pystan`` from
within an Anaconda environment? Could you post more of the error? (posting it on
github would be ideal too).

Thanks,

-a
> --
> You received this message because you are subscribed to the Google Groups "Stan users mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to stan-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Noah Motion

unread,
Oct 24, 2014, 7:35:30 AM10/24/14
to stan-...@googlegroups.com, a...@ariddell.org
Allen, thanks for being willing to help out. Yes, I am using Anaconda, and I tried 'pip install pystan --upgrade' (since I had an older version installed). (And I should have given that information in the first place, too - sorry!). I've attached the log file that pip pointed me to after the installation/upgrade failed. As far as I can tell, all the error messages are at the end, but there may well be useful information elsewhere in the file.
pip_pystan_error_log.txt

Noah Motion

unread,
Oct 24, 2014, 7:55:32 AM10/24/14
to
Somehow I had missed that it was telling me I hadn't agreed to the Xcode license on this computer, so I've now done that and am trying to upgrade again. Hopefully this will work...

EDIT: And it worked. Thanks again for being willing to help out. Sorry to have wasted anyone's time on this.

Noah Motion

unread,
Oct 24, 2014, 2:36:03 PM10/24/14
to stan-...@googlegroups.com, a...@ariddell.org
Allen,

And now I'm having difficulty with a different computer. This one is a Mac Pro with Yosemite and Anaconda, and I didn't have an older version of pystan installed already, so I tried 'pip install pystan' and got the following error message (it's not telling me where, if anywhere, there is an error log, and I can't find anything after poking around for a few minutes):

gcc: warning: couldn’t understand kern.osversion ‘14.0.0

cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++

In file included from /usr/local/include/c++/4.9.0/bits/postypes.h:40:0,

                 from /usr/local/include/c++/4.9.0/bits/char_traits.h:40,

                 from /usr/local/include/c++/4.9.0/string:40,

                 from /usr/local/include/c++/4.9.0/stdexcept:39,

                 from pystan/stan/src/stan/agrad/rev/var_stack.hpp:4,

                 from pystan/stan/src/stan/agrad/rev/var_stack.cpp:4:

/usr/local/include/c++/4.9.0/cwchar:44:19: fatal error: wchar.h: No such file or directory

 #include <wchar.h>

                   ^

compilation terminated.

error: Command "gcc -fno-strict-aliasing -I/Users/noahsilbert/anaconda/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DBOOST_RESULT_OF_USE_TR1 -DBOOST_NO_DECLTYPE -DBOOST_DISABLE_ASSERTS -Ipystan/stan/src -Ipystan/stan/lib/eigen_3.2.0 -Ipystan/stan/lib/boost_1.54.0 -c pystan/stan/src/stan/agrad/rev/var_stack.cpp -o build/temp.macosx-10.5-x86_64-2.7/pystan/stan/src/stan/agrad/rev/var_stack.o" failed with exit status 1

----------------------------------------
Cleaning up...
Command /Users/noahsilbert/anaconda/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/pystan/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-hFiKIZ-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/pystan
Traceback (most recent call last):
  File "/Users/noahsilbert/anaconda/bin/pip", line 6, in <module>
    sys.exit(main())
  File "/Users/noahsilbert/anaconda/lib/python2.7/site-packages/pip/__init__.py", line 198, in main
    return command.main(cmd_args)
  File "/Users/noahsilbert/anaconda/lib/python2.7/site-packages/pip/basecommand.py", line 161, in main
    text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 24: ordinal not in range(128)



On Thursday, October 23, 2014 8:47:39 PM UTC-4, Allen Riddell wrote:
Reply all
Reply to author
Forward
0 new messages