On 2012-12-10 21:16, Artur Wroblewski wrote:
> On Mon, Dec 10, 2012 at 6:29 PM, Laurent Gautier <[email protected]> wrote:
>> Hi,
>>
>> Rpy2-2.3.0 is (finally) out and is on pypi. To upgrade, `pip install
>> rpy2 --upgrade` should just do the trick.
> Hi,
>
> Not sure if that's known problem, but with the following script
>
> ---- cut ----
> import rpy2.robjects as ro
> R = ro.r
>
> R('library(Hmisc)')
> ---- cut ----
>
> I am getting the following
>
> Traceback (most recent call last):
> File "/usr/lib64/python3.3/site-packages/rpy2/rinterface/__init__.py",
> line 100, in consolePrint
> sys.stdout.write(bytes(x, 'utf-8'))
> TypeError: must be str, not bytes
First problem. That was quick.
I can reproduce it. This seems to be specific to the R package "Hmisc",
and I don't get an error with a forced quiet import such as:
import rpy2.robjects as ro
from rpy2.robjects.packages import importr
Hmisc = importr("Hmisc")
Please file a bug report. I'd need to investigate further when I have a
bit of time.
L.
>
> Best regards,
>
> Artur
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> rpy-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/rpy-list
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
rpy-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rpy-list