Comments (7)
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.
The script roundtrip_test.py uses /usr/local/bin/python3.9. You can try this one first.
from homebrew-rdkit.
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.
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.
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.
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.
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)
- update to latest release HOT 2
- Add build with Cairo flag HOT 1
- Installs RDKit/Code into the wrong directory HOT 3
- Failing make at "[ 14%] Built target rdBase" HOT 2
- Installation Not Working HOT 1
- rdpath in dylibs is not set (10.15.7 intel) HOT 11
- Invalid option: --with-python3 HOT 16
- rdkit with pyenv HOT 2
- Invalid option --with-python3 HOT 4
- Installation Error on Mac 10.15.2 HOT 4
- Update README to reflect python3 only
- Failure to install on macOS Mojave HOT 12
- Problem with linker while compiling HOT 5
- Could NOT find Boost (missing: python) (found suitable version "1.72.0", minimum required is "1.56.0") HOT 5
- Failed to install on MacOS Mojave 10.14.6 HOT 6
- Build error in Ubuntu 16.04.6 LTS HOT 9
- Add rdkit.egg-info directory HOT 7
- rdkit installation problem in mac os catelina HOT 2
- RDKIt PostgreSQL cartrdige via brew HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebrew-rdkit.