Giter VIP home page Giter VIP logo

homebrew-rdkit's Introduction

Build status

Homebrew-rdkit: tap-ready formula for rdkit

First, make sure you Homebrew version is 0.9 or above (you can check your brew version with brew --version).

After tapping this repo with

brew tap rdkit/rdkit

You can install rdkit with just one line of command:

brew install rdkit

If you want to stay on the edge and use the latest and greatest from GitHub:

brew install --HEAD rdkit

Optional installs

  • --with-python3 will install RDkit under the Python3 (By default, the RDkit is installed under Python2)
  • --with-java will install the Java wrapper.
  • --with-inchi will install the InChI support. This will download InChI from http://inchitrust.org if necessary.
  • --with-avalon will install the Avalon toolkit support. This will download the Avalon Toolkit source.
  • --with-postgresql will install the PostgreSQL cartridge.

Errors you might encounter

  • Unsatisfied dependency: numpy

By default, Homebrew will attempt to install and manage numpy for you, like all other dependencies. You may alternatively install and manage numpy separately, via pip. However, when installing rdkit with python 3, a pip-installed numpy for python 2 can prevent homebrew properly installing numpy for python 3. To solve this, make sure you use pip in both python 2 and 3:

pip install numpy
pip3 install numpy
brew install rdkit --with-python3 --without-numpy

Or use homebrew in both python 2 and 3:

pip uninstall numpy
pip3 uninstall numpy
brew install rdkit --with-python3
  • Fatal Python error: Interpreter not initialized (version mismatch?)

This indicates that rdkit or one of its dependencies (e.g. boost) was linked against a different version of Python than the one you are using it with. Try rebuilding boost from source:

brew uninstall boost
brew install boost --build-from-source

If that doesn't fix it, try comparing the output of these three commands:

python-config --prefix
find /usr/local/Cellar/rdkit -name rdBase.so -exec otool -L {} \;
find /usr/local/Cellar/boost -name libboost_python-mt.dylib -exec otool -L {} \;
  • TypeError: No to_python (by-value) converter found for C++ type: boost::shared_ptrRDKit::ROMol

This is likely due to a bug in boost-python v1.60, which has now been patched in the boost homebrew formula. To get the patch, run:

brew reinstall boost
brew reinstall rdkit

homebrew-rdkit's People

Contributors

bp-kelley avatar edc avatar greglandrum avatar hsiaoyi0504 avatar mcs07 avatar myyc avatar rwest avatar zmactep avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.