Re: [Rdkit-discuss] Building RDKit on Windows. Only static libraries produced? How to make the Pyth
Open-Source Cheminformatics and Machine Learning
Brought to you by:
glandrum
|
From: Ernst-Georg S. <pg...@tu...> - 2023-05-11 12:35:40
|
Am 10.05.2023 um 16:32 schrieb pgchem pgchem: > I'm currently trying to build RDKit 2023_03_1 on Windows 11 with Visual > Studio 2022 Community. The building itself works: > - No errors during the build > - I get a working extension against PostgreSQL 15.2 > - I get working static libraries for Visual Studio (RDGeneral.lib etc.) > - I get a rdkit package for Python 3.10 > BUT this does not work: > from rdkit import Chem > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "C:\RDKit\lib\site-packages\rdkit\__init__.py", line 6, in <module> > from . import rdBase > ImportError: DLL load failed while importing rdBase: The specified > module could not be found. Hello again, I have managed to build the shared objects also by now. I had to carve this out of the azure pipelines, apparently it only works correctly if you build like there, i.e. using cmake instead of MSBuild directly. E.g. C:\CMake\bin\cmake --build . --config=Release --target install instead of & "C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe" /p:Configuration=Release INSTALL.vcxproj (as the RDKit Book says) But the rdkit Python package still throws abovementioned error. I did the same build on Ubuntu, and everything worked out of the box. I have also checked various "solutions" from the WWW but to no avail. I cannot see any unresolved dependencies for rdBase.pyd. Any helpful suggestions or pointers are appreciated. best regards Ernst-Georg |