You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is my first time using Anaconda on Windows, but using RDKit 2015 Q1:
from rdkit.Chem import PandasTools
Traceback (most recent call last):
File "", line 1, in
File "C:\Tools\RDKit\OfficialReleases\RDKit_2015_03_1\rdkit\Chem\PandasTools.py", line 293, in
remover = SaltRemover.SaltRemover()
File "C:\Tools\RDKit\OfficialReleases\RDKit_2015_03_1\rdkit\Chem\SaltRemover.py", line 48, in init
self._initPatterns()
File "C:\Tools\RDKit\OfficialReleases\RDKit_2015_03_1\rdkit\Chem\SaltRemover.py", line 67, in _initPatterns
inF = open(self.defnFilename,'r')
IOError: [Errno 2] No such file or directory: 'C:/Program Files (x86)/RDKit\Data\Salts.txt'
The workaround is to put that file there.
The text was updated successfully, but these errors were encountered:
I do not recognize the installation path, are you using one of the windows binary releases that are available for download from GitHub? I'm not familiar with those packages, but my first guess is the problem could be related to the current %RDBASE% settings.
did you also try the packages that are available from https://conda.anaconda.org/rdkit (no %RDBASE% should be set in that case)? or maybe they wouldn't be useful to you in this specific case?
A binary from SF. I don't have RDBASE set. Is this now a requirement? I would have thought it could find the data file relative to SaltRemover.py file.
RDBASE has always been a requirement to find data files. The code uses that instead of a relative path to provide a bit more flexibility while doing installs.
This particular problem can be solved (and I will solve it) by not having the SaltRemover constructed at import time.
actually, I believe that the RDBASE environment variable shouldn't be required when the installation is performed outside the source tree. In that case the resources are located based on the installation prefix (this is the case for the rpm and conda packages, I'm not sure about how the other binary windows distributions are configured).
This is my first time using Anaconda on Windows, but using RDKit 2015 Q1:
The workaround is to put that file there.
The text was updated successfully, but these errors were encountered: