Re: [Rdkit-discuss] 2D depiction problem

2009-08-26 Thread Greg Landrum
Dear Uwe, On Tue, Aug 18, 2009 at 7:49 PM, Uwe Hoffmann wrote: > Am Montag, den 17.08.2009, 23:48 +0200 schrieb Greg Landrum: > > in principle yes, but it was a quick hack to get the ball running. > it's possible that some other AttributeErrors will be masked so i think > the following version wil

Re: [Rdkit-discuss] 2D depiction problem

2009-08-18 Thread Uwe Hoffmann
Am Montag, den 17.08.2009, 23:48 +0200 schrieb Greg Landrum: > Hi Uwe, > > On Mon, Aug 17, 2009 at 11:04 PM, Uwe Hoffmann wrote: > >> > > try: > >stride = cairo.ImageSurface.format_stride_for_width ( > > cairo.FORMAT_ARGB32, > > image.size[0]) > >if stride !=

Re: [Rdkit-discuss] 2D depiction problem

2009-08-17 Thread Greg Landrum
Hi Uwe, On Mon, Aug 17, 2009 at 11:04 PM, Uwe Hoffmann wrote: >> > > if you are still interested (and do not want to install pycairo 1.8.6): > Change the lines (cairoCanvas.py around line 40) >        stride = cairo.ImageSurface.format_stride_for_width ( >          cairo.FORMAT_ARGB32, >          

Re: [Rdkit-discuss] 2D depiction problem

2009-08-17 Thread Uwe Hoffmann
Hi, see below regards Uwe Am Donnerstag, den 13.08.2009, 10:38 +0100 schrieb Chris Arthur: > stride=cairo.ImageSurface.format_stride_for_width (cairo.FORMAT_ARGB32, > AttributeError:type object 'cairo.ImageSurface' has no attribute > 'format_stride_for_width' > > I have tried this on two

Re: [Rdkit-discuss] 2D depiction problem

2009-08-15 Thread Greg Landrum
Hi Chris, On Thu, Aug 13, 2009 at 11:38 AM, Chris Arthur wrote: > I've just installed RDKIt and everything seems to have gone fine. > > But..when i run the example code given in the wiki for creating 2d > pictures i get an error with cairo > > Line37 of cairocanvas.py > > stride=cairo.ImageSurface