Skip to content

No rule to make target /opt/conda/lib/libpython3.10.so, needed by lib/_openbabel.so #15

@vedifredi

Description

@vedifredi

I just cloned your pretty well-structured repo and tried to build the Docker image when facing this error:

[ 86%] Built target obconformer
Scanning dependencies of target bindings_python
make[2]: *** No rule to make target '/opt/conda/lib/libpython3.10.so', needed by 'lib/_openbabel.so'.  Stop.
make[2]: *** Waiting for unfinished jobs....
[ 86%] Building CXX object scripts/CMakeFiles/bindings_python.dir/python/openbabel/openbabel-python.cpp.o
/root/openbabel-3.1.1/scripts/python/openbabel/openbabel-python.cpp:177:11: fatal error: Python.h: No such file or directory
  177 | # include <Python.h>
      |           ^~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/CMakeFiles/bindings_python.dir/build.make:70: scripts/CMakeFiles/bindings_python.dir/python/openbabel/openbabel-python.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:5563: scripts/CMakeFiles/bindings_python.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 86%] Building CXX object test/CMakeFiles/test_runner.dir/aliastest.cpp.o
...

Any idea how to quickly solve that error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions