Code Monkey home page Code Monkey logo

Comments (16)

YoshitakaMo avatar YoshitakaMo commented on June 26, 2024 2

Now the homebrew-core (default) repository has the rdkit formula (Release 2020.09.4) and it binds to python3 by default.

brew untap rdkit/rdkit # if required
brew install rdkit

It also has rdkit-postgresql.

See also https://github.com/Homebrew/homebrew-core/blob/master/Formula/rdkit.rb

from homebrew-rdkit.

UnixJunkie avatar UnixJunkie commented on June 26, 2024 2

I am closing this, I am sure the formula here supports --with-python3.

from homebrew-rdkit.

UnixJunkie avatar UnixJunkie commented on June 26, 2024

try --with-python3 and tell me if it fixes your problem

from homebrew-rdkit.

aurimas13 avatar aurimas13 commented on June 26, 2024

Same issue still. It says invalid option: --with-python3

from homebrew-rdkit.

UnixJunkie avatar UnixJunkie commented on June 26, 2024

Can you show the exact command you are using, full line?

from homebrew-rdkit.

aurimas13 avatar aurimas13 commented on June 26, 2024

Of course.

I am writing this command in terminal:

brew install rdkit --with-python3

from homebrew-rdkit.

UnixJunkie avatar UnixJunkie commented on June 26, 2024

Did you do

brew tap rdkit/rdkit

before?
It is needed.

from homebrew-rdkit.

aurimas13 avatar aurimas13 commented on June 26, 2024

Yeah. I've done the command you mentioned but still am getting invalid error when running:

brew install rdkit --with-python3

from homebrew-rdkit.

UnixJunkie avatar UnixJunkie commented on June 26, 2024

As a workaround, try the conda install method of rdkit.

For the future, can you create a gist showing the full log of your install attempt?

Out of despair, you should try what is mentioned in this paragraph of the README.md file
of this homebrew recipe:
"Forcing brew to install rdkit and all its dependencies from scratch"

from homebrew-rdkit.

aurimas13 avatar aurimas13 commented on June 26, 2024

Out of despair I tried to reinstall rdkit from scratch:
brew list --formula > my_brew_packages.txt
brew uninstall --force $(cat my_brew_packages.txt)
brew install rdkit --with-python3
and then again did this:
brew tap rdkit/rdkit
brew install rdkit --with-python3
but in both cases I am still getting:
Error: invalid option: --with-python3

As for conda when I tried the installation with it I don't how to check whether it worked. What should I run to enter rdkit?

Also when I try to install RDKitPostgreSQL I run this:

conda install -c rdkit rdkit-postgresql it installs everything and then is followed by
/Users/Aurimas/opt/anaconda3/envs/my-rdkit-env/bin/initdb -D /folder/where/data/should/be/stored
which gives:
creating directory /folder/where/data/should/be/stored ... initdb: error: could not create directory "/folder": Read-only file system
How could this be solved?

from homebrew-rdkit.

UnixJunkie avatar UnixJunkie commented on June 26, 2024

@aurimas13
Here is a test script; roundtrip_test.py in this repository:

#!/usr/local/bin/python3.9
# we have to use the python interpreter installed by brew...

# quick check that rdkit is installed and working
# upon success, the installed rdkit version is printed out
# upon failure, an assert will fail or some other error will
# be printed out

import rdkit
from rdkit import Chem

in_smi = 'c1ccncc1'
mol = Chem.MolFromSmiles(in_smi)
out_smi = Chem.MolToSmiles(mol)
assert(in_smi == out_smi)
print(rdkit.__version__)

from homebrew-rdkit.

UnixJunkie avatar UnixJunkie commented on June 26, 2024

The fact that there is a new formula with the same name in the master repository of brew might have broke the current formula
(it is silently ignored/overwritten).

from homebrew-rdkit.

wenchengxucool avatar wenchengxucool commented on June 26, 2024

still have this problem

from homebrew-rdkit.

nirajkamal avatar nirajkamal commented on June 26, 2024

I have this problem too, after latest Mac upgrade

from homebrew-rdkit.

nirajkamal avatar nirajkamal commented on June 26, 2024

brew install vim --with-python3

this command shows this:
Error: invalid option: --with-python3

from homebrew-rdkit.

nirajkamal avatar nirajkamal commented on June 26, 2024

@UnixJunkie , no it doesn't! it did before, but the latest version doesn't! Please do your research before closing issues.

Options have been removed from Homebrew core formulas and only exist in taps now. See this GitHub issue:
Homebrew/homebrew-core#31510

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.