Hi guys,

I'm facing a problem getting rdkit to work from python cgi scripts on an 
apache web server, on an Ubuntu 14.04 machine.
By default (apt-get rdkit) an old version of rdkit (2013.09.01) is 
provided, thus I compiled the latest version, which is now under 
/opt/RDKit_2014_03_1/

My ~/.profile file looks like this:
export RDBASE=/opt/RDKit_2014_03_1
export LD_LIBRARY_PATH=$RDBASE/lib:$LD_LIBRARY_PATH
export PYTHONPATH=$RDBASE:$PYTHONPATH

Which allows me to:
 >>> import rdkit
 >>> rdkit.__path__
['/opt/RDKit_2014_03_1/rdkit']
 >>> from rdkit import Chem
 >>> Chem.rdBase.rdkitVersion
'2014.03.1'

So far so good.

Now on the apache server, I added the same three lines to the 
/etc/apache2/envvars file:
export RDBASE=/opt/RDKit_2014_03_1
export LD_LIBRARY_PATH=$RDBASE/lib
export PYTHONPATH=$RDBASE:$PYTHONPATH

Importing rdkit gives me the "ImportError: No module named rdkit" error;
looking at the environment variables from within python, only
LD_LIBRARY_PATH:    /opt/RDKit_2014_03_1/lib
is available.

Any clue what I'm missing??

Thanks for your help!

Grégori

------------------------------------------------------------------------------
Slashdot TV.  Video for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to