Hey Greg,
Thanks a lot for your help . As you said all the python modules were in
/home/hari/rdkit/trunk

So I had to add that to my PYTHONPATH . I also did put the *.so files
to my LD_LIBRARY_PATH and set RDBASE appropriately.

Once I did that I can indeed start using the module .

I still have not managed to get the aggdraw module installed . I get a
compilation error ( given below). I have emailed Fredrik Lundh about
the error , but was wondering if you or anyone know how  I can get it
working.
Thanks
Hari


#####################
MY .bashrc contains
#####################
export 
PYTHONPATH="$PYTHONPATH:/usr/local/openbabel/lib/python2.6/site-packages:/home/hari/rdkit/trunk"
export 
LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH:/usr/local/openbabel/lib:/home/hari/rdkit/trunk/bin"
export RDBASE="/home/hari/rdkit/trunk"


#######################################################################
aggdraw compilation problem Ubuntu Lucid 10.04 gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
#######################################################################
h...@hari:~/aggdraw$ python setup.py build
running build
running build_ext
building 'aggdraw' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DHAVE_FREETYPE2 -Iagg2/include
-Iagg2/font_freetype -I./freetype-2.3.12/include
-I./freetype-2.3.12/include/freetype2 -I/usr/include/python2.6 -c
aggdraw.cxx -o build/temp.linux-x86_64-2.6/aggdraw.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid
for Ada/C/ObjC but not for C++
In file included from agg2/include/agg_vertex_sequence.h:23,
                from agg2/include/agg_vcgen_contour.h:20,
                from agg2/include/agg_conv_contour.h:23,
                from aggdraw.cxx:62:
agg2/include/agg_array.h: In member function ‘agg::int8u*
agg::pod_allocator::allocate(unsigned int, unsigned int)’:
agg2/include/agg_array.h:523: error: cast from ‘agg::int8u*’ to
‘unsigned int’ loses precision
In file included from agg2/font_freetype/agg_font_freetype.h:28,
                from aggdraw.cxx:69:
agg2/include/agg_scanline_storage_bin.h: In member function ‘unsigned
int agg::scanline_storage_bin::byte_size() const’:
agg2/include/agg_scanline_storage_bin.h:247: warning: unused variable ‘sp’
aggdraw.cxx: In function ‘void draw_setup(DrawObject*)’:
aggdraw.cxx:457: warning: deprecated conversion from string constant to ‘char*’
aggdraw.cxx:460: warning: deprecated conversion from string constant to ‘char*’
aggdraw.cxx:463: warning: deprecated conversion from string constant to ‘char*’
aggdraw.cxx:466: warning: deprecated conversion from string constant to ‘char*’
aggdraw.cxx: In function ‘PyObject* draw_new(PyObject*, PyObject*)’:
aggdraw.cxx:572: warning: deprecated conversion from string constant to ‘char*’
aggdraw.cxx: In function ‘agg::rgba8 getcolor(PyObject*, int)’:
aggdraw.cxx:778: warning: deprecated conversion from string constant to ‘char*’
aggdraw.cxx: In function ‘PyObject* draw_flush(DrawObject*, PyObject*)’:
aggdraw.cxx:1239: warning: deprecated conversion from string constant to ‘char*’
aggdraw.cxx:1239: warning: deprecated conversion from string constant to ‘char*’
aggdraw.cxx: In function ‘PyObject* pen_new(PyObject*, PyObject*, PyObject*)’:
aggdraw.cxx:1331: warning: deprecated conversion from string constant to ‘char*’
aggdraw.cxx:1331: warning: deprecated conversion from string constant to ‘char*’
aggdraw.cxx:1331: warning: deprecated conversion from string constant to ‘char*’
aggdraw.cxx: In function ‘PyObject* brush_new(PyObject*, PyObject*, PyObject*)’:
aggdraw.cxx:1362: warning: deprecated conversion from string constant to ‘char*’
aggdraw.cxx:1362: warning: deprecated conversion from string constant to ‘char*’
aggdraw.cxx: In function ‘PyObject* font_new(PyObject*, PyObject*, PyObject*)’:
aggdraw.cxx:1393: warning: deprecated conversion from string constant to ‘char*’
aggdraw.cxx:1393: warning: deprecated conversion from string constant to ‘char*’
aggdraw.cxx:1393: warning: deprecated conversion from string constant to ‘char*’
aggdraw.cxx:1393: warning: deprecated conversion from string constant to ‘char*’
In file included from agg2/font_freetype/agg_font_freetype.h:35,
                from aggdraw.cxx:69:
agg2/include/agg_font_cache_manager.h: In member function ‘void
agg::font_cache_manager<FontEngine>::init_embedded_adaptors(const
agg::glyph_cache*, double, double) [with FontEngine =
agg::font_engine_freetype_int32]’:
aggdraw.cxx:381:   instantiated from ‘void
draw_adaptor<PixFmt>::drawtext(float*, PyObject*, FontObject*) [with
PixFmt = agg::pixel_formats_rgba32<agg::order_rgba32>]’
aggdraw.cxx:1940:   instantiated from here
agg2/include/agg_font_cache_manager.h:306: warning: enumeration value
‘glyph_data_invalid’ not handled in switch
error: command 'gcc' failed with exit status 1

On Mon, Jun 21, 2010 at 11:48 AM, Greg Landrum <[email protected]> wrote:
> Dear Hari,
>
>
> On Mon, Jun 21, 2010 at 5:44 PM, hari jayaram <[email protected]> wrote:
>> First off thanks for this toolkit . It seems very powerful indeed
>
> You're welcome; I hope it is useful to you.
>
>> I did run a make install . The output indicates that everything was
>> normal ( see below)
>
> Yep, looks good.
>
>>
>> On a probably unrelated note , I was able to call rdkit from cinfony
>> and calculate the molecular weight as indicated here  (
>> http://code.google.com/p/cinfony/wiki/InstallationOnLinuxV10)
>> But the rdk module does not seem to have gotten installed.
>
> Looks like things are installed in: /home/hari/rdkit/trunk/rdkit,
> which means you should make sure that /home/hari/rdkit/trunk is in
> your PYTHONPATH and RDBASE is /home/hari/rdkit/trunk.
>
> This ought to solve things.
>
> -greg
>

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to