I installed openmm package by miniconda with following code. It was executed on colab
import sys
print(sys.version)
!wget https://repo.anaconda.com/miniconda/Miniconda3-py37_4.10.3-Linux-x86_64.sh
!bash Miniconda3-py*.sh -bfp /usr/local
!conda config --set always_yes yes
!conda config --add channels conda-forge
!conda create -n openmm python=3.7 cudatoolkit=10.0 git jupyterlab numpy pandas scipy matplotlib ipympl rdkit openbabel openmm mdtraj pymbar pdbfixer parmed openff-toolkit openmoltools openmmforcefields
sys.path.append('/usr/local/envs/openmm/lib/python3.7/site-packages')
import openmm.testInstallation
openmm.testInstallation.main()
since openmm package contains openff package, the following code should be executed.
from openff.toolkit.topology import Molecule
from openforcefield.utils.toolkits import RDKitToolkitWrapper, AmberToolsToolkitWrapper
from openforcefield.topology import Topology
from openforcefield.typing.engines.smirnoff import ForceField
biar = Molecule.from_smiles('c1ccccc1-c1c(C)ccnc1')
#Gerates conformers, default number of generated conformers is 10.
biar.generate_conformers()
biar.compute_partial_charges_am1bcc()
I know that the 2nd-4th line have errors, however, the first line shouldn't have any problems.
The error was following.
ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/local/lib/python3.7/site-packages/openmm/../../../libOpenMM.so.7.7)
I tried downgrading RDkit and adding GLIBCXX_3.4.26 by the following.
!add-apt-repository ppa:ubuntu-toolchain-r/test
!apt-get update --fix-missing
!apt-get dist-upgrade
None of them was worked.
Is there any possible way to resolve this error? I'm really frustrating now...