My guess is that your python3 is not at /usr/bin/python3 . Are you sure it
isn't at /usr/local/bin/python3 ? Based on your Python.framework
information, that would seem to be likely where it is.

On that note, we should consider printing an error if the detected version
of python is 1.4 ; that means that FindPythonInterp could not determine the
version of python, so it is assuming it is 1.4 (see
https://github.com/Kitware/CMake/blob/master/Modules/FindPythonInterp.cmake
).



On Sun, Feb 19, 2017 at 5:26 PM, i4hashmi <i4has...@hotmail.com> wrote:

> Hi David,
>
> Can you please suggest me a solution? I am trying it for the last two weeks
> but could not find a solution. I even posted a thread at this forum but
> could not solve the problem.
> Now as your directions, I downloaded the openbabel from git:
> https://github.com/openbabel/openbabel
>
> And then used the command:
> *cmake ../ -DPYTHON_EXECUTABLE=/usr/bin/python3 -DPYTHON_BINDINGS=ON
> -DRUN_SWIG=ON*
>
> but the installation gave error at the end. I am appending the whole output
> below. Please help me here.
>
> c02j2e0bdhjf:build hashmimu$ cmake ../ -DPYTHON_EXECUTABLE=/usr/bin/
> python3
> -DPYTHON_BINDINGS=ON -DRUN_SWIG=ON
> -- The C compiler identification is AppleClang 8.0.0.8000042
> -- The CXX compiler identification is AppleClang 8.0.0.8000042
> -- Check for working C compiler:
> /Applications/Xcode.app/Contents/Developer/Toolchains/
> XcodeDefault.xctoolchain/usr/bin/cc
> -- Check for working C compiler:
> /Applications/Xcode.app/Contents/Developer/Toolchains/
> XcodeDefault.xctoolchain/usr/bin/cc
> -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Check for working CXX compiler:
> /Applications/Xcode.app/Contents/Developer/Toolchains/
> XcodeDefault.xctoolchain/usr/bin/c++
> -- Check for working CXX compiler:
> /Applications/Xcode.app/Contents/Developer/Toolchains/
> XcodeDefault.xctoolchain/usr/bin/c++
> -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> -- Using included inchi library.
> -- Found LibXml2: /usr/lib/libxml2.dylib (found version "2.9.4")
> -- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.8")
> -- Found wxWidgets: -L/usr/local/lib;;;-framework IOKit;-framework
> Carbon;-framework Cocoa;-framework AudioToolbox;-framework
> System;-framework
> OpenGL;-lwx_baseu-3.0;-lwx_osx_cocoau_core-3.0;-lwx_osx_cocoau_adv-3.0
> (found version "3.0.2")
> -- Looking for conio.h
> -- Looking for conio.h - not found
> -- Looking for sys/time.h
> -- Looking for sys/time.h - found
> -- Looking for time.h
> -- Looking for time.h - found
> -- Looking for strings.h
> -- Looking for strings.h - found
> -- Looking for rpc/xdr.h
> -- Looking for rpc/xdr.h - not found
> -- Looking for regex.h
> -- Looking for regex.h - found
> -- Looking for C++ include sstream
> -- Looking for C++ include sstream - found
> -- Looking for rint
> -- Looking for rint - found
> -- Looking for snprintf
> -- Looking for snprintf - found
> -- Looking for sranddev
> -- Looking for sranddev - found
> -- Looking for strcasecmp
> -- Looking for strcasecmp - found
> -- Looking for strncasecmp
> -- Looking for strncasecmp - found
> -- Looking for dlopen in dl
> -- Looking for dlopen in dl - found
> -- Looking for sys/types.h
> -- Looking for sys/types.h - found
> -- Looking for stdint.h
> -- Looking for stdint.h - found
> -- Looking for stddef.h
> -- Looking for stddef.h - found
> -- Check size of clock_t
> -- Check size of clock_t - done
> -- Performing Test SCANDIR_NEEDS_CONST
> -- Performing Test SCANDIR_NEEDS_CONST - Failed
> -- Checking available shared pointer...
> -- Performing Test HAVE_STD_SHARED_PTR
> -- Performing Test HAVE_STD_SHARED_PTR - Success
> -- Performing Test HAVE_STD_TR1_SHARED_PTR
> -- Performing Test HAVE_STD_TR1_SHARED_PTR - Failed
> -- Performing Test HAVE_STD_TR1_SHARED_PTR_IN_TR1_HEADER
> -- Performing Test HAVE_STD_TR1_SHARED_PTR_IN_TR1_HEADER - Failed
> -- Use std::shared_ptr in memory
> -- Found Eigen3: /usr/local/include/eigen3 (Required is at least version
> "2.91.0")
> -- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.1")
> -- Checking for module 'cairo'
> --   Found cairo, version 1.14.8
> -- Found Cairo: /usr/local/Cellar/cairo/1.14.8/lib/libcairo.dylib
> -- Cairo found. PNG output will be supported.
> -- Looking for getopt
> -- Looking for getopt - found
> -- GUI will not be built
> -- Found PythonInterp: /usr/bin/python3 (found version "1.4")
> -- Found SWIG: /usr/local/bin/swig (found version "3.0.12")
> -- Found SWIG: /usr/local/bin/swig (found suitable version "3.0.12",
> minimum
> required is "2.0")
> -- Found PythonLibs:
> /usr/local/Frameworks/Python.framework/Versions/3.6/lib/
> libpython3.6m.dylib
> (found version "3.6.0")
> -- Python bindings will be compiled
> CMake Error at scripts/CMakeLists.txt:120 (install):
>   install TARGETS given no LIBRARY DESTINATION for module target
>   "bindings_python".
>
>
> CMake Error at scripts/CMakeLists.txt:123 (install):
>   install FILES given no DESTINATION!
>
>
> CMake Error at scripts/CMakeLists.txt:126 (install):
>   install FILES given no DESTINATION!
>
>
> -- Configuring incomplete, errors occurred!
> See also
> "/usr/local/Cellar/obabel/openbabel-master/build/
> CMakeFiles/CMakeOutput.log".
> See also
> "/usr/local/Cellar/obabel/openbabel-master/build/
> CMakeFiles/CMakeError.log".
>
>
> I hope it gives you all the information to detect the problem.
>
> Thanks and regards,
> Hashmi
>
>
>
> --
> View this message in context: http://forums.openbabel.org/
> OpenBabel-for-Python-3-tp4659432p4659738.html
> Sent from the General discussion mailing list archive at Nabble.com.
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> OpenBabel-discuss mailing list
> OpenBabel-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to