Hi all, I'm building Docker images for openbabel with Python bindings for Python versions 3.6 - 3.8 from source. I have two questions about this. You can see the repo with the Dockerfiles here: https://gitlab.com/Midnighter/python-openbabel/
1. The easier one is probably that I get the following error when importing openbabel or pybel when I compile and install openbabel with the bindings (-DRUN_SWIG=ON -DPYTHON_BINDINGS=ON). However, I do not get that error if I simply compile openbabel and install the Python bindings via `pip install openbabel`. Then it works just fine. >>> import openbabel T raceback (most recent call last): Fil e "/usr/local/lib/python3.6/site-packages/openbabel.py", line 4, in <module> import dlModuleNotFoundError: No module named 'dl' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.6/site-packages/openbabel.py", line 6, in <module> import DLFCN as dlModuleNotFoundError: No module named 'DLFCN' 2. My second question is probably a bit more tricky. I would like to make use of Docker multi stage builds. That means I build openbabel in the first stage and then copy artefacts from the first to the second stage. A bit like the following: COPY --from=builder /usr/local/lib/openbabel /usr/local/lib/ However, I find it hard to get a comprehensive list of all the artefacts that I need to copy. I also assume that I would need the compiled dynamic libraries of the dependencies. So, for example, libxml2 instead of the package libxml2-dev. Can anyone here help me with that? Thanks, Moritz
_______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss