[Rpy] Trivial patch to prevent exception

2007-09-05 Thread Manuzhai
Hello there,

I'm looking at using RPy for a production system for a pretty big
financial system, so this might not be the last time I'm emailing this
list... I can see from the svn log that development is  not that
quick, but are the developers (people w/ commit access) paying
attention?

Well, if nothing else, I'd like to shoot off a little patch that fixes
a stupid traceback. Please see [1] for the patch. I ran into this
because just typing "r" at the interpreter after "from rpy import r"
gives a traceback, which is a pity. It seems this is a problem with a
little imbalance of using '.' and '_' in different places. Should be
straightforward.

I also noticed that my version 1.0.3 of NumPy complained about the use
of numpy.get_numpy_include() rather than numpy.get_include() in
setup.py (it issued a DeprecationWarning). Not sure what the backwards
compatibility concerns for this thing are, but it might be of some
use. See [2].

Cheers,

Manuzhai

[1] http://manuzhai.nl/files/fix-r-version.diff
[2] http://manuzhai.nl/files/correct-numpy-include.diff

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list


[Rpy] Crashes with latest R, RPy, Python, NumPy on Win XP

2007-09-05 Thread Manuzhai
Right, there I am again...

Since my last email, I've been trying to get my own version of RPy
(including the two patches that I sent earlier) to run on the Win XP
laptops. I've tried the official version as well (this is with Python
2.5.1.1 from ActiveState, NumPy 1.0.3.1 or some such, and R 2.5.1).
After some frustration because I had stubbornly installed MinGW to a
non-standard location, I got the thing to compile and I could do some
digging. It turns out that RPy crashes in the setup_term_ui() call
from the rpy_init() function in rpymodule.c. I can get a bug thingie
from Windows, but I have no clue how to go about this from here, since
it seems setup_term_ui() is either from Windows or from R (it's not in
the RPy source distribution) -- I have some experience debugging C
code on Linux, but not on Windows.

So, are there any pointers that can help me resolve this? I'm not sure
whether it's the same problem as reported by many others, but I sure
could look at it while I'm at it.

Cheers,

Manuzhai

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list


[Rpy] Another small patch

2007-09-06 Thread Manuzhai
I made another one-liner to fix what I think is a problem with the
conversion from Numeric to NumPy (setup.py doesn't actually try
importing Numeric anymore, so it will try to compile with Numeric even
if Numeric is not present on the system).

Patch is at http://manuzhai.nl/files/check-numeric.diff

Cheers,

Manuzhai

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list


[Rpy] Fixed the Win XP problem

2007-09-06 Thread Manuzhai
I think I fixed the problem, at least it works on my box. You can
download a source tarball from my Mercurial repository at [1] (the fix
can also be seen here), this includes the other patches I proposed
earlier. I even prepared a binary [2], but I don't with which versions
it'll work. It seems to work with the setup I have here, which has
Python 2.5, R 2.5.1 and NumPy 1.0.3.

Cheers,

Manuzhai

[1] http://hg.xavamedia.nl/rpy/
[2] http://manuzhai.nl/files/rpy-1.0-RC3.win32-py2.5.exe

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list


Re: [Rpy] Fixed the Win XP problem

2007-09-06 Thread Manuzhai
On 9/6/07, Javier Alfaro <[EMAIL PROTECTED]> wrote:
> Was this the silent crash problem on XP for laptops?

It was some sort of crash on XP, pretty silent, not sure if it
occurred just on laptops.

Cheers,

Manuzhai

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list


Re: [Rpy] import error

2007-09-12 Thread Manuzhai
What RPy version did you use? You might want to try the latest
1.0-RC3, which should have fixed this problem.

Cheers,

Manuzhai

On 9/11/07, Thomas Walter <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I have successfully used rpy under python 2.4 with R 2.2, and it was
> really a great help, because the data structure under R is not so
> comfortable to use.
>
> Now, I had to install R 2.5.1. I did this according to the
> recommendation as a shared library.
> I reinstalled rpy. Everything went fine. But now, I cannot import rpy
> anymore. The error is:
>
> RHOME= /usr/local/lib/R
> RVERSION= 2.5.1
> RVER= 2051
> RUSER= /home/twalter
> Loading Rpy version 2051 ..
> Traceback (most recent call last):
>  File "", line 1, in ?
>  File "/usr/local/lib/python2.4/site-packages/rpy.py", line 117, in ?
>exec("import _rpy%s as _rpy" % RVER)
>  File "", line 1, in ?
> ImportError: /usr/local/lib/python2.4/site-packages/_rpy2051.so:
> undefined symbol: R_CStackLimit
>
> What can I do?
>
> Thank you very much!
>
> Thomas.
>
> --
> -
> Thomas Walter
>
> EMBL Heidelberg
> Meyerhofstrasse 1
> 69117 Heidelberg
> Germany
>
> Tel: +49 (0)6221 387-8857
>
>
>
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> rpy-list mailing list
> rpy-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rpy-list
>

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list


Re: [Rpy] Python 2.5 and R 2.5.1 and Windows Vista

2007-09-12 Thread Manuzhai
Maybe you can try the binary I compiled using R 2.5.1 and Python 2.5.
It's a patched up version of RPy-1.0-RC3. It seems to work for me,
although it doesn't seem to fully work for everyone. Anyway, if you
try it, let me know if it works.

http://manuzhai.nl/files/rpy-1.0-RC3.win32-py2.5.exe

Cheers,

Manuzhai

On 9/11/07, David Montgomery <[EMAIL PROTECTED]> wrote:
> Thanks for the response.tried installing numeric...worked...but still
> rpy did notstill freezes at the same location.
>
> I am now out of ideas on how to get rpy to work on windows vista with the
> latest R and Python installs.
>
>
>
> > Date: Mon, 10 Sep 2007 09:31:37 +0100
> > From: [EMAIL PROTECTED]
> > To: rpy-list@lists.sourceforge.net
> > Subject: Re: [Rpy] Python 2.5 and R 2.5.1 and Windows Vista
>
> >
> > David Montgomery wrote:
> > > Also, per the rpy install directions, required libraries are the
> > > win32api modules and the numeric module. The win32api is fine.
> > > However, I do have numpy but the numeric module only works with python
> > > 2.4 so I cant install it. If numeric is a requirment for rpy and does
> > > not work with 2.5...seems like a catch22 to me.
> > >
> > > So the question ishow can I get rpy to work? Or do I have to
> > > downgrade to Python 2.4?
> >
> > You could try installing Numeric for Python 2.5 for Windows from here,
> > courtesy of Biopython:
> >
> > http://biopython.org/DIST/Numeric-24.2.win32-py2.5.exe
> >
> > This is a pragmatic short term solution - keep in mind that Numeric is
> > no longer supported as the developers have moved over to numpy entirely.
> >
> > Peter
> >
> >
> >
> -
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2005.
> > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> > ___
> > rpy-list mailing list
> > rpy-list@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/rpy-list
>
>
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> rpy-list mailing list
> rpy-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rpy-list
>
>

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list


Re: [Rpy] Fixed the Win XP problem

2007-09-12 Thread Manuzhai
That crashes for me, too. Since I don't know anything about the
innards of R or numpy, I have no clue on how to fix this. If/when I
need this, I'll look into it again.

Cheers,

Manuzhai

On 9/12/07, Reinder Brolsma <[EMAIL PROTECTED]> wrote:
> This version seems to work on my PC (WinXP, python 2.5, R 2.5.1 and
> NumPy 1.0.3), so thanks for the good work.
> 1 problem though, on my pc it seems like python crashes, when I want to
> plot a float32 array, while a float64 is no problem. Am I the only one
> having this problem?
>
> from numpy import *
> from rpy import *
> a=arange(10).astype(float32)
> r.plot(a)
>
>
> Manuzhai wrote:
> > I think I fixed the problem, at least it works on my box. You can
> > download a source tarball from my Mercurial repository at [1] (the fix
> > can also be seen here), this includes the other patches I proposed
> > earlier. I even prepared a binary [2], but I don't with which versions
> > it'll work. It seems to work with the setup I have here, which has
> > Python 2.5, R 2.5.1 and NumPy 1.0.3.
> >
> > Cheers,
> >
> > Manuzhai
> >
> > [1] http://hg.xavamedia.nl/rpy/
> > [2] http://manuzhai.nl/files/rpy-1.0-RC3.win32-py2.5.exe
> >
> > -
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >>  http://get.splunk.com/
> > ___
> > rpy-list mailing list
> > rpy-list@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/rpy-list
> >
>
>
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> rpy-list mailing list
> rpy-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rpy-list
>

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list


Re: [Rpy] Windows problem

2007-09-24 Thread Manuzhai
On 9/24/07, D. R. Evans <[EMAIL PROTECTED]> wrote:
> I'm obviously doing something very wrong, but I have no idea what :-(

It's probably a problem with RPy, not with you. ;)

If you're using Python 2.5, you might want to try the fixed up binary
I compiled a while ago, it's at
http://manuzhai.nl/files/rpy-1.0-RC3.win32-py2.5.exe

Cheers,

Manuzhai

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list