I've managed to build openbabel 3 with bindings to python 3 on a local install. Everything went smooth. This is my cmake command:
cmake ../openbabel-3.0.0 -DCMAKE_INSTALL_PREFIX=~/WORKSPACE/OpenBabel/openbabel-3.0.0_INSTALL -DPYTHON_BINDINGS=ON -DRUN_SWIG=ON Still, after setting the PYTHONPATH: export PYTHONPATH=~/WORKSPACE/OpenBabel/openbabel-3.0.0_INSTALL I get error: >>> from openbabel import openbabel ModuleNotFoundError: No module named 'openbabel' I don't know if it can be useful, but if I add this path instead (the "lib" sub-directory) to the PYTHONPATH i get this: export PYTHONPATH=~/WORKSPACE/OpenBabel/openbabel-3.0.0_INSTALL/lib >>> from openbabel import openbabel ImportError: cannot import name 'openbabel' >>> import openbabel >>> dir(openbabel) ['__doc__', '__loader__', '__name__', '__package__', '__path__', '__spec__']
_______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss