Code Monkey home page Code Monkey logo

Comments (7)

UnixJunkie avatar UnixJunkie commented on July 4, 2024

I guess you are not using the python interpreter for which rdkit was installed.
Now comes the next question: how to find out which one it is...
Brute force answer: find all the python3 executables on your computer, try import rdkit in them one by one...

from homebrew-rdkit.

UnixJunkie avatar UnixJunkie commented on July 4, 2024

The script roundtrip_test.py uses /usr/local/bin/python3.9. You can try this one first.

from homebrew-rdkit.

JuergenDi avatar JuergenDi commented on July 4, 2024

Short update: FYI, I installed anaconda3 (python 3.7, download of actual version) and was able to run rdkit including additional tools (like Mol2Vec) succesfully. Due to the limitations I do not like (and normally do not use) conda, I will try to figure out which python version is working with rdkit as recommended. However, the setting of DYLD_LIBRARY_PATH is obviously wrong, could you please give an update here which directory should be referred to? Or is the installation description not longer valid? (Normally I do not use also PYTHONHOME and PYTHONPATH, I only set those variables due to the installation guidance). Thanks in advance!

from homebrew-rdkit.

UnixJunkie avatar UnixJunkie commented on July 4, 2024

On the Mac where I have rdkit installed and working via brew:
DYLD_LIBRARY_PATH is empty.
PYTHONHOME and PYTHONPATH are also empty.
The python interpreter is this one: /usr/local/bin/python3.9

PS: I really do not like conda (too slow, too stpuid at updating an existing environment, only
working when creating a new environment from scratch, polluting many environment variables)

from homebrew-rdkit.

UnixJunkie avatar UnixJunkie commented on July 4, 2024

You can try this to force brew installing rdkit (brew is also a rather dumb package manager, with bad reproducibility of installs):

# backup you installed packages list
brew list --formula > my_brew_packages.txt
# uninstall all of them
brew uninstall --force $(brew list --formula)
# try installing rdkit from fresh
brew install rdkit --with-python3 --with-inchi

from homebrew-rdkit.

UnixJunkie avatar UnixJunkie commented on July 4, 2024

FTR on a recent Ubuntu:

sudo apt install python3-rdkit

And the job would be done, system-wide, for a fraction of the time... :)

from homebrew-rdkit.

JuergenDi avatar JuergenDi commented on July 4, 2024

Ok thanks I followed your brew deinstallation suggestion and afterwards I reinstalled Python 3.9.1 and now it works. I need to get rid of conda and clean the environment variables (I assume the problem occurs when pyenv is installed?). Again thanks for your great support )

from homebrew-rdkit.

Related Issues (20)

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.