Pystan problems

80 views
Skip to first unread message

Daniel Berman

unread,
Jun 28, 2015, 10:18:14 PM6/28/15
to stan-...@googlegroups.com
I'm having trouble getting pystan to work. I am able to import pystan without errors but I'm not able to run run. Can someone help?

fit = pystan.stan(model_code=schools_code, data=schools_dat,
                  iter=1000, chains=4)
INFO:pystan:COMPILING THE C++ CODE FOR MODEL anon_model_95013624776d537c3cd7cd4d641c30e0 NOW.
Traceback (most recent call last):
  File "C:\Users\daniel\Anaconda\lib\site-packages\IPython\core\interactiveshell.py", line 3032, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-52-f3d4d4964bda>", line 2, in <module>
    iter=1000, chains=4)
  File "C:\Users\daniel\Anaconda\lib\site-packages\pystan\api.py", line 372, in stan
    save_dso=save_dso, verbose=verbose)
  File "C:\Users\daniel\Anaconda\lib\site-packages\pystan\model.py", line 308, in __init__
    build_extension.run()
  File "C:\Users\daniel\Anaconda\lib\distutils\command\build_ext.py", line 337, in run
    self.build_extensions()
  File "C:\Users\daniel\Anaconda\lib\distutils\command\build_ext.py", line 446, in build_extensions
    self.build_extension(ext)
  File "C:\Users\daniel\Anaconda\lib\distutils\command\build_ext.py", line 496, in build_extension
    depends=ext.depends)
  File "C:\Users\daniel\Anaconda\lib\distutils\ccompiler.py", line 574, in compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File "C:\Users\daniel\Anaconda\lib\distutils\cygwinccompiler.py", line 166, in _compile
    raise CompileError, msg
CompileError: command 'gcc' failed: No such file or directory

Ben Goodrich

unread,
Jun 28, 2015, 11:51:33 PM6/28/15
to stan-...@googlegroups.com, daniel....@gmail.com
On Sunday, June 28, 2015 at 10:18:14 PM UTC-4, Daniel Berman wrote:
CompileError: command 'gcc' failed: No such file or directory

Lack of compiler, compiler not on PATH, etc. Can you compile some hello world C++ program with Visual Studio?

Ben

Daniel Berman

unread,
Jun 29, 2015, 7:59:31 AM6/29/15
to stan-...@googlegroups.com, daniel....@gmail.com
I just reinstalled Visual Studio last night but I get the same error.

Bob Carpenter

unread,
Jun 30, 2015, 3:29:47 PM6/30/15
to stan-...@googlegroups.com
I have no idea, but hopefully Allen will jump in and
indicate whether it's possible to run PyStan with Visual Studio.

- Bob
> --
> 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.

Allen B. Riddell

unread,
Jun 30, 2015, 7:32:36 PM6/30/15
to stan-...@googlegroups.com
I think it's fair to say that apart from the installation instructions
here:

https://pystan.readthedocs.org/en/latest/windows.html

there's nobody to provide support for Windows problems. People have
reported getting it to work on Windows but that's about all I can say.
Better testing is definitely on the todo list.

-Allen
Reply all
Reply to author
Forward
0 new messages