Re: [Rdkit-devel] Adding RDKit::ROMol *s to a boost::python::list

2017-07-17 Thread Paul Emsley
); boost::python::object obj(xx); rdkit_mols_list.append(obj); On 16/07/2017 20:32, Paul Emsley wrote: Oh good grief... I did a bit of googling: "python::object RDKit::ROMol" to see if I could find someone having similar problems: The first

Re: [Rdkit-devel] Adding RDKit::ROMol *s to a boost::python::list

2017-07-16 Thread Paul Emsley
#x27;ve seen one of these, but could it be that you either haven't imported rdkit.Chem (in Python) before calling the function that returns the RDKit molecule or that your extension module is linked against a different rdkit library than the rdkit extension module that you're using? -greg

Re: [Rdkit-devel] Adding RDKit::ROMol *s to a boost::python::list

2017-07-16 Thread Paul Emsley
it molecule or that your extension module is linked against a different rdkit library than the rdkit extension module that you're using? -greg On Sun, Jul 16, 2017 at 4:40 PM, Paul Emsley <mailto:pems...@mrc-lmb.cam.ac.uk>> wrote: Hi, I'd like to bring to python a

[Rdkit-devel] Adding RDKit::ROMol *s to a boost::python::list

2017-07-16 Thread Paul Emsley
Hi, I'd like to bring to python a function that returns a list (or vector?) of RDKit molecules. But I am lost in boost::python. BOOST_PYTHON_MODULE(pyrogen) { def("extract_ligands_from_coords_file", coot::extract_ligands_from_coords_file); } boost::python::list coot::extract_ligands_from

Re: [Rdkit-devel] Install RDKit

2015-01-28 Thread Paul Emsley
On 28/01/15 20:14, Soren Wacker wrote: Hi, I want to install RDKit to a certain directory. However, when I am in the source directory and do md build cd build cmake .. -DCMAKE_INSTALL_PREFIX=/home/.../Programme/RDKit make make install RDKit is build and installed, but not to the directory. Wh

Re: [Rdkit-devel] boost.python C++ to python

2012-06-05 Thread Paul Emsley
On 05/06/12 07:28, Paul Emsley wrote: > > Hi, > > I have a different question. I am in the C++ world. I want to get to > the value returned by the python function default(mol) from the module > silicos_it.descriptors.qed. > > And to do that, I'm following this: &

[Rdkit-devel] boost.python C++ to python

2012-06-04 Thread Paul Emsley
Hi, I have a different question. I am in the C++ world. I want to get to the value returned by the python function default(mol) from the module silicos_it.descriptors.qed. And to do that, I'm following this: http://www.codeproject.com/Articles/11805/Embedding-Python-in-C-C-Part-I I can get

Re: [Rdkit-devel] [Rdkit-discuss] python/c++ interface again...

2012-06-04 Thread Paul Emsley
On 03/06/12 18:33, Paul Emsley wrote: > On 02/06/12 04:44, Greg Landrum wrote: >> Hi Paul, >> >> On Fri, Jun 1, 2012 at 1:41 PM, Paul Emsley >> wrote: >>> I've been trying to read boost python docs and I am lost... >>> >>> I'd

Re: [Rdkit-devel] [Rdkit-discuss] python/c++ interface again...

2012-06-03 Thread Paul Emsley
On 02/06/12 04:44, Greg Landrum wrote: > Hi Paul, > > On Fri, Jun 1, 2012 at 1:41 PM, Paul Emsley > wrote: >> I've been trying to read boost python docs and I am lost... >> >> I'd like to return a PyObject *. I have a RDKit::RWMol, say - or a >> p