There was also a bug in RPy's handling of unicode strings until 1.0, so make sure you have a recent version of RPy as well.
-G On Jan 8, 2008, at 2:47AM , Laurent Gautier wrote: > Crashes with unicode labels in plots was reported as a problem > with R-2.3 to R-2.5. > It appears fixed with the R-2.6.1 I have here. > > As I agree that it would make sense to have this written somewhere > (like in a section about known problems), but the easiest fix seems to > update R. > > > Hoping this helps, > > > L. > > > 2008/1/7, Ross <[EMAIL PROTECTED]>: >> Aha. >> I think I've just learned something interesting. It took me a >> while to >> figure out although everyone else may already know - pysqlite returns >> unicode strings from queries, which is not generally a problem - >> however, >> passing these directly as strings for titles and axes for plots in >> rpy is >> very bad for your sanity as it (at least in my hands) leads to >> (otherwise >> mysterious) segfaults - eg >> >> RHOME= /usr/local/lib64/R >> RVERSION= 2.4.1 >> RVER= 2041 >> RUSER= /home/rerla >> Loading Rpy version 2041 .. Done. >> Creating the R object 'r' .. Done >> Error: segfault from C stack overflow >> Segmentation fault >> >> For my setup, a liberal dash of ascii re-encoding such as: >> rslist = [x.encode('ascii') for x in rslist] >> seems to make the nasty segfaults go away and pretty R graphs >> appear in >> their place. >> >> Anyone know how to handle this in a general way? >> >> Lots of people probably want unicode in their R plot headers. But, >> I wonder >> how many people have been burned by this? Could be useful in the docs >> somewhere? >> >> -- >> python -c "foo = map(None,' [EMAIL PROTECTED]'); foo.reverse >> (); print >> ''.join(foo)" >> >> --------------------------------------------------------------------- >> ---- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/ >> marketplace >> _______________________________________________ >> rpy-list mailing list >> rpy-list@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/rpy-list >> >> > > > -- > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > > iEYEARECAAYFAkYgwJ4ACgkQB/w/MLoyRDeQlgCeMp8v69/Wy24Q4IaBVhoG1M5R > 2h4AoIOTvKbrFpTklRDjV7u8tEOeSQqt > =JPph > -----END PGP SIGNATURE----- > > ---------------------------------------------------------------------- > --- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/ > marketplace > _______________________________________________ > rpy-list mailing list > rpy-list@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/rpy-list ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list