import pandas.rpy.common as com failed

371 views
Skip to first unread message

Shiwei

unread,
Oct 25, 2011, 7:18:23 PM10/25/11
to pystatsmodels
when i was trying to
import pandas.rpy.common as com

it says
no module named rp2.robjects.package

...why is this happening? I checked that under site-packages there is
pandas\rpy\common.pyc and common.pyo.......

Wes McKinney

unread,
Oct 25, 2011, 7:30:05 PM10/25/11
to pystat...@googlegroups.com

You can only use that module if you have rpy2 installed:

http://rpy.sourceforge.net/rpy2.html

It can only be built on OS X and Linux at the moment, so if you're
using Windows you're SOL for now.

josef...@gmail.com

unread,
Oct 25, 2011, 7:48:57 PM10/25/11
to pystat...@googlegroups.com

And my guess is that no more rpy2 for Windows will stay that way.
The instructions that David Hirschfeld posted a while ago looked way
to scary for my taste since you also need to rebuild R, and I haven't
heard any other success story in 2 or so years.

Josef

Shiwei

unread,
Oct 26, 2011, 3:48:30 AM10/26/11
to pystatsmodels
Thanks Wes! Do you know if there's any earlier version that may work
on Windows?

On Oct 25, 4:30 pm, Wes McKinney <wesmck...@gmail.com> wrote:

Wes McKinney

unread,
Oct 26, 2011, 12:08:11 PM10/26/11
to pystat...@googlegroups.com

If there is, I doubt it supports the latest API. Your only recourse
might be to use VirtualBox to install a Linux VM... Getting Windows
support would be nice eventually but will require some financial
backing.

Reply all
Reply to author
Forward
0 new messages