Windows64 installation from prebuilt Python package is broken

331 views
Skip to first unread message

Hans den Boer

unread,
Mar 14, 2013, 10:07:18 AM3/14/13
to or-tools...@googlegroups.com
Using the Google.OrTools.python.Windows64.2322.zip package, the installation breaks down immediately on a missing ')' in line 16 of the setup.py script.

I saw that in the mean time the setup.py script has been updated in the subversion repository to correct this error.

Continuing from this point, the installation stalls on the absence of constraint_solver\_pywrapcp.dll:
installing package data to build\bdist.win-amd64\egg
running install_data
error: can't copy 'constraint_solver\_pywrapcp.dll': doesn't exist or not a regular file

I do observe a _pywrapcp.pyd file in the indicated directory and changing the dll extension to pyd for _pywrapcp and other files in setup.py does help to get a setup that runs to completion. 

However, when you subsequently run one of the examples, e.g., examples\3_jugs_mip.py, I get the following error.
Traceback (most recent call last):
  File "examples\3_jugs_mip.py", line 31, in <module>
    from linear_solver import pywraplp
  File "C:\Python27\lib\site-packages\or_tools-1.0.2322-py2.7.egg\linear_solver\pywraplp.py", line 26, in <module>
    _pywraplp = swig_import_helper()
  File "C:\Python27\lib\site-packages\or_tools-1.0.2322-py2.7.egg\linear_solver\pywraplp.py", line 22, in swig_import_he
lper
    _mod = imp.load_module('_pywraplp', fp, pathname, description)
ImportError: DLL load failed: The specified module could not be found.

This is where I am stuck.

Petter

unread,
Apr 23, 2013, 3:21:00 PM4/23/13
to or-tools...@googlegroups.com
You are probably missing a DLL file _pywrapcp.pyd needs. I have run this successfully using the fixes you mentioned. 

Try installing the Visual Studio runtimes 2008 and possible 2010 and see if that helps.

Laurent Perron

unread,
Apr 23, 2013, 7:56:29 PM4/23/13
to or-tools-discuss
Actually, on windows, you do not need dlls, you need to rename them to pyd.

I will have a look.

Thanks


--
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.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
--Laurent

Reply all
Reply to author
Forward
0 new messages