Replies: 2 comments
-
This does sound like a PyInstaller bug not an RDKit bug. However, it looks like it was a stack overflow topic at one point: https://stackoverflow.com/questions/70437063/rdkit-hook-for-pyinstaller-to-create-exe-file |
Beta Was this translation helpful? Give feedback.
-
The answer in above-mentioned stack overflow topic is useful but outdated now since The updated .spec file: #main.spec
a = Analysis(
['main.py'],
binaries=[('/path/to/your/site-packages/rdkit.libs', 'rdkit.libs')],
...
) Or CLI: |
Beta Was this translation helpful? Give feedback.
-
When i use pyinstaller to turn a python file into an executable rdkit throws an erroneous everytime i load the exe.
Thanks for trying to help, here is the full error msg
File "app.py", line 3466, in screenManager.add_widget(TwelveD(name="TwelveD")) File "kivy\uix\screenmanager.py", line 1001, in add_widget File "kivy\properties.pyx", line 520, in kivy.properties.Property.set File "kivy\properties.pyx", line 567, in kivy.properties.Property.set File "kivy\properties.pyx", line 606, in kivy.properties.Property._dispatch File "kivy_event.pyx", line 1307, in kivy._event.EventObservers.dispatch File "kivy_event.pyx", line 1213, in kivy._event.EventObservers._dispatch File "kivy\uix\screenmanager.py", line 1069, in on_current File "kivy_event.pyx", line 731, in kivy.event.EventDispatcher.dispatch File "app.py", line 535, in on_enter from rdkit import Chem File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module File "rdkit_init.py", line 22, in * :class:~kivy.modules.showborder: Show widget's border. ImportError: DLL load failed while importing rdBase: The specified module could not be found.
The important bit is
line 495, in exec_module File "rdkit_init.py", line 22, in * :class:~kivy.modules.showborder: Show widget's border. ImportError: DLL load failed while importing rdBase: The specified module could not be found.
I would also more than just the fix like to know what the dll file is and where it is located, that could help me aswell though i am not certain.
Beta Was this translation helpful? Give feedback.
All reactions