Dear all,
Greetings...

I am trying to execute python script from PHP (test.php) on XAMPP server.
My python script (test.py) unable to import rdkit rdkitand showing error
message "n import rdkit ImportError: No module named rdkit"
when trying to run same python script from system through cmd or through
python shell its running properly.

My environmental variable are
RDBASE: C:\RDKit_2013_09_1
PYTHONPATH: %RDBASE%
path: C:\RDKit_2013_09_1\lib

My files look like:
%%test.py
print "111"
from rdkit import Chem
print "222"

%%test.php
<html>
<body>
<?php
$result = shell_exec("C:/Python27/python.exe
D:/Databases/XAMPP/htdocs/jsmol/PredictR/python_prog/asas.py  2>&1");
echo $result;
?>
</body>
</html>

%%output
111 Traceback (most recent call last): File "path/test.py", line 2, in
import rdkit ImportError: No module named rdkit

Please help me out to sort this problem
Thanks in advance.


-- 
Warm regards
Sujit R. Tangadpalliwar
PhD Research Scholar,
NIPER, Mohali.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Rdkit-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to