DLL load failed

Completed

Hi,

I hope, I'm posting in the right support forum. I'm using IntelliJ IDEA with Python plugin installed. I am working in a Windows environment. Python itself has been installed via Anaconda. In Python, I'm using some specific library named RDKit. I followed the instruction for the installation. So far, so good. I'm having an environment which can be activated.

In a Windows console, just after activation, I am able to execute the following >>> from rdkit import Chem in a Python console. Following the instructions found on Jetbrains homepage, I am able to setup my new Conda environment. However running a file which only contains from rdkit import Chem throws following exception:

Traceback (most recent call last):
  File "C:\Users\ribeach1\workspace\PatentComparison\src\com\novartis\patentdb\richard\test.py", line 1, in <module>
    from rdkit import Chem
  File "C:\Users\ribeach1\Apps\Anaconda\envs\my-rdkit-env\lib\site-packages\rdkit\__init__.py", line 2, in <module>
    from .rdBase import rdkitVersion as __version__
ImportError: DLL load failed: The specified module could not be found.

Compiling works fine. It seems that activate my-new-env in Windows console does a bit more. Any hint? Thanks in advance for any help.

Cheers and have a nice day,

christian

1
5 comments
Avatar
Christian Ribeaud

[SOLVED] The answer is:

Launch pycharm from a fully activated Anaconda Prompt.
1
Avatar
Bakaryn'tjidiallo

Sorry but how to do that?

0
Avatar
Bakaryn'tjidiallo

Hello

I'm having a similar problem but in Conda.

I have installed Conda on Windows 10, then installed rdkit following here: http://www.rdkit.org/docs/Install.html.

When I run "conda list" at the conda command prompt, I have rdkit in the list: rdkit                     2018.03.1.1      py35he980bc4_1    rdkit

Now when I activate the rdkit environment ('activate my-rdkit-env'), then lauch python ('python') and try to import rdkit, I run into the following error:

>>> import rdkit
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Bakary\AppData\Local\conda\conda\envs\my-rdkit-env\lib\site-packages\rdkit\__init__.py", line 2, in <module>
from .rdBase import rdkitVersion as __version__
ImportError: DLL load failed: The specified module could not be found.

It would really nice if someone can help me out.
Thanks a lot!

0

There's a known issue with PATH missing essential entries for conda venv in PyCharm: PY-27234 causing the DLL fails.

0
Avatar
Bakaryn'tjidiallo
I finally managed to resolve the problem by reinstalling everything. I have the related post on stackoverflow here.

Thank you for your help
0

Please sign in to leave a comment.