PyStan 0.1.1 on the Python Package Index

321 views
Skip to first unread message

Allen Riddell

unread,
Jul 23, 2013, 5:03:11 PM7/23/13
to stan...@googlegroups.com
PyStan 0.1.1 is up on the Python Package Index (Python's CRAN).

https://pypi.python.org/pypi/pystan

Sampling works fine under Python 2.7 and Python 3.3. It's still alpha though;
there are a number of things to be implemented, such as reading/writing to csv.

Useful links:

- Source code repo: https://github.com/ariddell/pystan
- HTML documentation: http://pystan.readthedocs.org
- Issue tracker: https://github.com/ariddell/pystan/issues

Ben Goodrich

unread,
Jul 23, 2013, 7:00:45 PM7/23/13
to stan...@googlegroups.com, a...@ariddell.org
I'm having some trouble. I eventually got python3 versions of all the dependencies installed, which allowed it to build

running install_egg_info
Writing /usr/local/lib/python3.3/dist-packages/pystan-0.1.1.egg-info
running install_clib
creating
/usr/local/lib/python3.3/dist-packages/pystan/bin
copying build
/temp.linux-x86_64-3.3/libstan.a -> /usr/local/lib/python3.3/dist-packages/pystan/bin/

root@CYBERPOWERPC
:/tmp/pystan# updatedb
root@CYBERPOWERPC
:/tmp/pystan# mlocate -b pystan
/usr/local/lib/python3.3/dist-packages/pystan
/usr/local/lib/python3.3/dist-packages/pystan-0.1.1.egg-info

But it doesn't work for me when I try it

goodrich@CYBERPOWERPC:/tmp/pystan$ python3
Python 3.3.2+ (default, Jun 13 2013, 11:56:31)
[GCC 4.8.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pystan
Traceback (most recent call last):
 
File "<stdin>", line 1, in <module>
 
File "./pystan/__init__.py", line 8, in <module>
   
from pystan.api import stanc, stan
 
File "./pystan/api.py", line 12, in <module>
   
import pystan._api  # stanc wrapper
ImportError: No module named 'pystan._api'

Ben

Allen Riddell

unread,
Jul 23, 2013, 8:54:51 PM7/23/13
to Ben Goodrich, stan...@googlegroups.com
Hi Ben,

I think you may need to change out directory you extracted pystan into. Likely
Python is trying to import pystan._api from your immediate directory rather
than from the installed directory.

Best,

Allen

Ben Goodrich

unread,
Jul 23, 2013, 9:04:17 PM7/23/13
to stan...@googlegroups.com
Ok, it is working now.

Thanks,
Ben

Reply all
Reply to author
Forward
0 new messages