Closed rapodaca closed 3 years ago
Did you try this:
pip3 install numpy
brew install rdkit --with-python3
Thanks for the suggestion. I took it, and got the following (puzzling) result. Boost is installed (1.72.0) "but" the minimum required is 1.56.0.
$ pip3 install numpy
Requirement already satisfied: numpy in /usr/local/lib/python3.7/site-packages (1.18.1)
$ brew install rdkit --with-python3
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
...
==> Installing rdkit from rdkit/rdkit
==> Downloading https://github.com/rdkit/rdkit/archive/Release_2019_09_1.tar.gz
Already downloaded: .../Library/Caches/Homebrew/downloads/dbc78c6529381ce39a1c4765d1b16ec83572d3c1ad3cfde3d65efc15a6bfc66f--rdkit-Release_2019_09_1.tar.gz
==> cmake -DRDK_INSTALL_INTREE=OFF -DRDK_BUILD_CPP_TESTS=OFF -DRDK_INSTALL_STATI
Last 15 lines from .../Library/Logs/Homebrew/rdkit/01.cmake:
Call Stack (most recent call first):
CMakeLists.txt:254 (find_package)
CMake Error at /usr/local/Cellar/cmake/3.17.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
Could NOT find Boost (missing: python) (found suitable version "1.72.0",
minimum required is "1.56.0")
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.17.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
/usr/local/Cellar/cmake/3.17.2/share/cmake/Modules/FindBoost.cmake:2162 (find_package_handle_standard_args)
CMakeLists.txt:262 (find_package)
-- Configuring incomplete, errors occurred!
See also "/tmp/rdkit-20200507-3232-19v8q26/rdkit-Release_2019_09_1/CMakeFiles/CMakeOutput.log".
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/rdkit/homebrew-rdkit/issues
Maybe try this:
pip3 install boost-python3
# or pip3 install boost-python
# I son't have a Mac to test right now
brew install rdkit --with-python3
I get the following:
$ pip3 install boost-python
ERROR: Could not find a version that satisfies the requirement boost-python (from versions: none)
ERROR: No matching distribution found for boost-python
and
$ pip3 install boost-python3
ERROR: Could not find a version that satisfies the requirement boost-python3 (from versions: none)
ERROR: No matching distribution found for boost-python3
Trying brew:
$ brew install boost-python3
Warning: boost-python3 1.72.0_1 is already installed and up-to-date
To reinstall 1.72.0_1, run `brew reinstall boost-python3`
Finally, the same error as originally reported with brew install rdkit --with-python3
.
Just an idea: uninstall all boost things (we want them to be reinstalled). And you are right, boost-python3 should be installed by brew. Then, retry the
brew install rdkit --with-python3
brew should install boost and all the required dependencies.
I know installing rdkit with brew is painful.
Everybody is just dreaming that pip install rdkit
would just work one day...
Because, the reproducibility of brew builds is just bad.
Followed the advice, but got nowhere. I'm seeing what I saw before.
brew uninstall boost-python3
Uninstalling /usr/local/Cellar/boost-python3/1.72.0_1... (472 files, 20MB)
brew install rdkit --with-python3
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
...
==> Updated Formulae
...
==> Deleted Formulae
...
==> Installing rdkit from rdkit/rdkit
==> Installing dependencies for rdkit/rdkit/rdkit: boost-python3
==> Installing rdkit/rdkit/rdkit dependency: boost-python3
==> Downloading https://homebrew.bintray.com/bottles/boost-python3-1.72.0_1.moja
Already downloaded: .../Library/Caches/Homebrew/downloads/7e3f7b6eaef5f2d309fd4429a50298277d3ce6b587a0ca3c0a0ac213220ab67d--boost-python3-1.72.0_1.mojave.bottle.tar.gz
==> Pouring boost-python3-1.72.0_1.mojave.bottle.tar.gz
Warning: boost-python3 dependency gcc was built with a different C++ standard
library (libstdc++ from clang). This may cause problems at runtime.
🍺 /usr/local/Cellar/boost-python3/1.72.0_1: 472 files, 20MB
==> Installing rdkit/rdkit/rdkit --with-python3
==> Downloading https://github.com/rdkit/rdkit/archive/Release_2019_09_1.tar.gz
Already downloaded: /Users/rich/Library/Caches/Homebrew/downloads/dbc78c6529381ce39a1c4765d1b16ec83572d3c1ad3cfde3d65efc15a6bfc66f--rdkit-Release_2019_09_1.tar.gz
==> cmake -DRDK_INSTALL_INTREE=OFF -DRDK_BUILD_CPP_TESTS=OFF -DRDK_INSTALL_STATI
Last 15 lines from .../Library/Logs/Homebrew/rdkit/01.cmake:
Call Stack (most recent call first):
CMakeLists.txt:254 (find_package)
CMake Error at /usr/local/Cellar/cmake/3.17.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
Could NOT find Boost (missing: python) (found suitable version "1.72.0",
minimum required is "1.56.0")
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.17.2/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
/usr/local/Cellar/cmake/3.17.2/share/cmake/Modules/FindBoost.cmake:2162 (find_package_handle_standard_args)
CMakeLists.txt:262 (find_package)
-- Configuring incomplete, errors occurred!
See also "/tmp/rdkit-20200511-32081-1xpw9g7/rdkit-Release_2019_09_1/CMakeFiles/CMakeOutput.log".
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/rdkit/homebrew-rdkit/issues
Ideas?
Try the anaconda installer. I don't like it and I don't use it but it is the officially supported way to install rdkit...
Maybe, boost was updated in brew recently, and this new boost version breaks the rdkit build on Mac.
Maybe open an issue in rdkit's tracker, stating your boost version and the error you get. Maybe some boost expert will tell you what modification is needed when calling cmake so that compilation works with this particular boost version.
Yes, I think rdkit's build is broken because of a boost update in brew. This has happened multiple times in the past. To the point where I was shipping a fixed version of boost in the brew formula. But then, some people complained about the rdkit build time that sky rocketed.
@UnixJunkie is it possible to pin the version of boost and boost-python3 in the RDKit formula? I feel like this is a problem that never goes away :/
Yes, it was done in the past. But some users started to complain that the rdkit brew formula was taking ages to install. The short term solution would be to fix rdkit build with whatever boost version is in brew nowadays. I'll gladly accept any PR.
You might try this:
# backup your brew installed packages list
brew list --formula > my_brew_packages.txt
# uninstall all of them
brew uninstall --force $(cat my_brew_packages.txt)
# install rdkit from scratch
brew install rdkit --with-python3
Description:
Installation via Homebrew (2.2.15) fails with error ending:
[ 15%] Built target coordge
. I expected to be able to install using the instructions given at:https://github.com/rdkit/homebrew-rdkit
None of the possible errors listed there appear to explain what I'm seeing. What am I missing?
A version of Boost had been installed. Also couldn't compile in that case. Deleted boost, and received the error below on attempt to install.
Full output: