Installation problem -- importError: DLL load failed: The specified module could not be found

953 views
Skip to first unread message

kiran

unread,
Mar 2, 2020, 4:37:16 PM3/2/20
to or-tools-discuss
Hi all, I am new to this forum.  I just installed the binary version of ortools for windows and was trying to run it in jupyter notebook.  I can import the ortools module into jupyter but I am getting a DLL load failed error fro cp_model as well as pywraplp.  Same story when I import directly to the console (see below).  I would appreciate suggestions on how I can get around this. Thank you   Kiran

Jupyter QtConsole 4.6.0
Python 3.7.6 (default, Jan  8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.12.0 -- An enhanced Interactive Python. Type '?' for help.

sys.path
Out[3]: 
['C:\\Users\\kdpan\\OneDrive\\Documents\\0_Projects',
 'C:\\Users\\kdpan\\Anaconda3\\python37.zip',
 'C:\\Users\\kdpan\\Anaconda3\\DLLs',
 'C:\\Users\\kdpan\\Anaconda3\\lib',
 'C:\\Users\\kdpan\\Anaconda3',
 '',
 'C:\\Users\\kdpan\\AppData\\Roaming\\Python\\Python37\\site-packages',
 'C:\\Users\\kdpan\\Anaconda3\\lib\\site-packages',
 'C:\\Users\\kdpan\\Anaconda3\\lib\\site-packages\\win32',
 'C:\\Users\\kdpan\\Anaconda3\\lib\\site-packages\\win32\\lib',
 'C:\\Users\\kdpan\\Anaconda3\\lib\\site-packages\\Pythonwin',
 'C:\\Users\\kdpan\\Anaconda3\\lib\\site-packages\\IPython\\extensions',
 'C:\\Users\\kdpan\\.ipython']

import ortools.sat.python as ort

help(ort)
Help on package ortools.sat.python in ortools.sat:

NAME
    ortools.sat.python

PACKAGE CONTENTS
    cp_model
    cp_model_helper
    visualization

FILE
    c:\users\kdpan\anaconda3\lib\site-packages\ortools\sat\python\__init__.py



from ortools.linear_solver import pywraplp
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-6-b7aff4ea2913> in <module>
----> 1 from ortools.linear_solver import pywraplp

~\Anaconda3\lib\site-packages\ortools\linear_solver\pywraplp.py in <module>
     11 # Import the low-level C/C++ module
     12 if __package__ or "." in __name__:
---> 13     from . import _pywraplp
     14 else:
     15     import _pywraplp

ImportError: DLL load failed: The specified module could not be found.

Xiang Chen

unread,
Mar 2, 2020, 4:55:15 PM3/2/20
to or-tools...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/828a82b5-b796-4695-b8a1-2fc5cea61a1a%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages