RPy / R

J

jason

Hello:

I installed the following:

python-2.4.2.msi
pywin32-207.win32-py2.4.exe
R-2.2.1-win32.exe
rpy-0.4.6-R-2.0.0-to-2.2.1-py24.win32.exe

on a Windows XP (SP2) box.

When I try to run the following (source:
http://rpy.sourceforge.net/plotting-with-RPy.html) in IDLE
from rpy import *
x = range(0, 10)
y = [ 2*i for i in x ]
r.plot_default(x, y)

I get a window entitled "pythonw.exe" which says: pythonw.exe has
encountered a problem and needs to close. We are sorry for the
inconvenience.

And then in IDLE
When try the following test (from
http://rpy.sourceforge.net/rpy/doc/manual.pdf page 5),

from rpy import *
r.wilcox_test
r.wilcox_test([1,2,3], [4,5,6])

I get for the second line:
<Robj object at 0x0099D180>
And then for the third line I get the same error.

Is this a setup issue? Thanks for your help.
 
H

Hans Georg Krauthaeuser

jason said:
Hello:

I installed the following:

python-2.4.2.msi
pywin32-207.win32-py2.4.exe
R-2.2.1-win32.exe
rpy-0.4.6-R-2.0.0-to-2.2.1-py24.win32.exe

on a Windows XP (SP2) box.

When I try to run the following (source:
http://rpy.sourceforge.net/plotting-with-RPy.html) in IDLE
from rpy import *
x = range(0, 10)
y = [ 2*i for i in x ]
r.plot_default(x, y)

Jason,

the example runs here without problems.

My configuration:

Python 2.3.5 (#2, Aug 30 2005, 15:50:26)
[GCC 4.0.2 20050821 (prerelease) (Debian 4.0.1-6)] on linux2
Type "copyright", "credits" or "license()" for more information.
{'status': '', 'major': '2', 'language': 'R', 'os': 'linux-gnu', 'svn
rev': '36812', 'system': 'i486, linux-gnu', 'month': '12', 'platform':
'i486-pc-linux-gnu', 'year': '2005', 'arch': 'i486', 'day': '20',
'minor': '2.1'}

Seems to be a problem with your installation...

Hans Georg
 
E

Eddie

Hi Jason

I had more success, being able to run a few test programs.
Not sure why yours would be crashing - I have a similar setup (Win XP
SP2 with all updates) - my version of Python is the Activestate download
(ActivePython-2.4.2.10-win32-x86.msi). Have you installed Numeric?
If all else fails might be worth trying to unistall Python and
installing the Activestate version (which includes the Win32 extensions).

Good luck

Eddie
 
J

jason

Thanks for your response. I'll try to install all the same versions that you
have.

I have removed my version of Python and installed ActivePython
(ActivePython-2.4.2.10-win32-x86.msi).

Could you please tell me which versions of the following you have installed:
NumPy
SciPy
RPy
R

I have not installed Numeric. Is that different from NumPy? If so, which
version do you have?

Thanks.

Eddie said:
Hi Jason

I had more success, being able to run a few test programs.
Not sure why yours would be crashing - I have a similar setup (Win XP SP2
with all updates) - my version of Python is the Activestate download
(ActivePython-2.4.2.10-win32-x86.msi). Have you installed Numeric?
If all else fails might be worth trying to unistall Python and installing
the Activestate version (which includes the Win32 extensions).

Good luck

Eddie
Hello:

I installed the following:

python-2.4.2.msi
pywin32-207.win32-py2.4.exe
R-2.2.1-win32.exe
rpy-0.4.6-R-2.0.0-to-2.2.1-py24.win32.exe

on a Windows XP (SP2) box.

[SNIP]

Is this a setup issue? Thanks for your help.
 
E

Eddie

R = 2.2.1
Rpy = rpy-0.4.6-R-2.0.0-to-2.2.1-py24.win32.exe
Active Python = ActivePython-2.4.2.10-win32-x86.msi
Numeric = Numeric-24.2.win32-py2.4.exe
NumPy = numpy-0.9.4.win32-py2.4.exe
I don't believe I have installed SciPy

The Numeric and NumPy differences are explained at http://numeric.scipy.org/

Eddie

Thanks for your response. I'll try to install all the same versions that you
have.

I have removed my version of Python and installed ActivePython
(ActivePython-2.4.2.10-win32-x86.msi).

Could you please tell me which versions of the following you have installed:
NumPy
SciPy
RPy
R

I have not installed Numeric. Is that different from NumPy? If so, which
version do you have?

Thanks.

Hi Jason

I had more success, being able to run a few test programs.
Not sure why yours would be crashing - I have a similar setup (Win XP SP2
with all updates) - my version of Python is the Activestate download
(ActivePython-2.4.2.10-win32-x86.msi). Have you installed Numeric?
If all else fails might be worth trying to unistall Python and installing
the Activestate version (which includes the Win32 extensions).

Good luck

Eddie
Hello:

I installed the following:

python-2.4.2.msi
pywin32-207.win32-py2.4.exe
R-2.2.1-win32.exe
rpy-0.4.6-R-2.0.0-to-2.2.1-py24.win32.exe

on a Windows XP (SP2) box.

[SNIP]

Is this a setup issue? Thanks for your help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top