Closed gmarchi closed 7 years ago
Which compiler are you using?
Here is mine:
clang -v
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Laurent Perron | Operations Research | lperron@google.com | (33) 1 42 68 53 00
2017-07-21 3:32 GMT-07:00 gmarchi notifications@github.com:
Reopened #438 https://github.com/google/or-tools/issues/438.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/google/or-tools/issues/438#event-1173649864, or mute the thread https://github.com/notifications/unsubscribe-auth/AKj17Vib6OnFIEhPk_8PwlSEnbhbf1Rzks5sQH45gaJpZM4OfPAl .
Here is my compiler:
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
I pushed a fix that removes the link.
Can you try it out?
Thanks
Laurent Perron | Operations Research | lperron@google.com | (33) 1 42 68 53 00
2017-07-21 8:40 GMT-07:00 gmarchi notifications@github.com:
This one seems mine:
Apple LLVM version 8.1.0 (clang-802.0.42) Target: x86_64-apple-darwin16.7.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/google/or-tools/issues/438#issuecomment-317035156, or mute the thread https://github.com/notifications/unsubscribe-auth/AKj17VSn83u89EcJcEsWGXm73zPszHZuks5sQMZ8gaJpZM4OfPAl .
Ok thanks @lperron ! However i'm in travel until monday, so i'll try it on monday, sorry.
Ok @lperron I'm here, compiling has gone well and with every solver, thank you.
However I made some tests (using your makefiles): C++ interface seems working without errors, but python test raise me this exception:
Traceback (most recent call last):
File "/Users/Giacomo/or-tools/ortools/constraint_solver/../gen/ortools/constraint_solver/pywrapcp.py", line 14, in swig_import_helper
return importlib.import_module(mname)
File "/Users/Giacomo/anaconda/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 978, in _gcd_import
File "<frozen importlib._bootstrap>", line 961, in _find_and_load
File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 648, in _load_unlocked
File "<frozen importlib._bootstrap>", line 560, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 922, in create_module
File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
ImportError: dlopen(/Users/Giacomo/or-tools/ortools/constraint_solver/../gen/ortools/constraint_solver/_pywrapcp.so, 2): Symbol not found: _SCIPtpiCollectJobs
Referenced from: /Users/Giacomo/or-tools/lib/libortools.dylib
Expected in: flat namespace
in /Users/Giacomo/or-tools/lib/libortools.dylib
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "examples/python/hidato_table.py", line 27, in <module>
from ortools.constraint_solver import pywrapcp
File "/Users/Giacomo/or-tools/ortools/constraint_solver/../gen/ortools/constraint_solver/pywrapcp.py", line 17, in <module>
_pywrapcp = swig_import_helper()
File "/Users/Giacomo/or-tools/ortools/constraint_solver/../gen/ortools/constraint_solver/pywrapcp.py", line 16, in swig_import_helper
return importlib.import_module('_pywrapcp')
File "/Users/Giacomo/anaconda/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_pywrapcp'
make: *** [test_python_examples] Error 1
I thought the problem could be caused by my previous version of installed or-tools (via pip), so I uninstalled them, but nothing changed. I'm new to python so it isn't so easy for me to debug exceptions, sorry, I need your help one more time.
can you type
otool -L
I would expect it does not find a scip dynamic library.
Laurent Perron | Operations Research | lperron@google.com | (33) 1 42 68 53 00
2017-07-23 13:24 GMT-07:00 gmarchi notifications@github.com:
Ok @lperron https://github.com/lperron I'm here, compiling has gone well and with every solver, thank you.
However I made some tests (using your makefiles): C++ interface seems working without errors, but python test raise me this exception:
Traceback (most recent call last): File "/Users/Giacomo/or-tools/ortools/constraint_solver/../gen/ortools/constraint_solver/pywrapcp.py", line 14, in swig_import_helper return importlib.import_module(mname) File "/Users/Giacomo/anaconda/lib/python3.6/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "
", line 978, in _gcd_import File " ", line 961, in _find_and_load File " ", line 950, in _find_and_load_unlocked File " ", line 648, in _load_unlocked File " ", line 560, in module_from_spec File " ", line 922, in create_module File " ", line 205, in _call_with_frames_removed ImportError: dlopen(/Users/Giacomo/or-tools/ortools/constraint_solver/../gen/ortools/constraint_solver/_pywrapcp.so, 2): Symbol not found: _SCIPtpiCollectJobs Referenced from: /Users/Giacomo/or-tools/lib/libortools.dylib Expected in: flat namespace in /Users/Giacomo/or-tools/lib/libortools.dylib During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "examples/python/hidato_table.py", line 27, in
from ortools.constraint_solver import pywrapcp File "/Users/Giacomo/or-tools/ortools/constraint_solver/../gen/ortools/constraint_solver/pywrapcp.py", line 17, in _pywrapcp = swig_import_helper() File "/Users/Giacomo/or-tools/ortools/constraint_solver/../gen/ortools/constraint_solver/pywrapcp.py", line 16, in swig_import_helper return importlib.import_module('_pywrapcp') File "/Users/Giacomo/anaconda/lib/python3.6/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ModuleNotFoundError: No module named '_pywrapcp' make: *** [test_python_examples] Error 1 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/google/or-tools/issues/438#issuecomment-317279557, or mute the thread https://github.com/notifications/unsubscribe-auth/AKj17WudkiwxJFym9dyM8eLodDsDgEuEks5sQ6vxgaJpZM4OfPAl .
otool -L /Users/Giacomo/or-tools/lib/libortools.dylib
gives me this output:
/Users/Giacomo/or-tools/lib/libortools.dylib: /Users/Giacomo/or-tools/lib/libortools.dylib (compatibility version 6.3.0, current version 6.3.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.60.2) libgurobi75.so (compatibility version 7.5.0, current version 7.5.1) /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.8)
Il giorno 23 lug 2017, alle ore 23:52, lperron notifications@github.com ha scritto:
can you type
otool -L
/libortools.dylib? I would expect it does not find a scip dynamic library.
Laurent Perron | Operations Research | lperron@google.com | (33) 1 42 68 53 00
2017-07-23 13:24 GMT-07:00 gmarchi notifications@github.com:
Ok @lperron https://github.com/lperron I'm here, compiling has gone well and with every solver, thank you.
However I made some tests (using your makefiles): C++ interface seems working without errors, but python test raise me this exception:
Traceback (most recent call last): File "/Users/Giacomo/or-tools/ortools/constraint_solver/../gen/ortools/constraint_solver/pywrapcp.py", line 14, in swig_import_helper return importlib.import_module(mname) File "/Users/Giacomo/anaconda/lib/python3.6/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "
", line 978, in _gcd_import File " ", line 961, in _find_and_load File " ", line 950, in _find_and_load_unlocked File " ", line 648, in _load_unlocked File " ", line 560, in module_from_spec File " ", line 922, in create_module File " ", line 205, in _call_with_frames_removed ImportError: dlopen(/Users/Giacomo/or-tools/ortools/constraint_solver/../gen/ortools/constraint_solver/_pywrapcp.so, 2): Symbol not found: _SCIPtpiCollectJobs Referenced from: /Users/Giacomo/or-tools/lib/libortools.dylib Expected in: flat namespace in /Users/Giacomo/or-tools/lib/libortools.dylib During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "examples/python/hidato_table.py", line 27, in
from ortools.constraint_solver import pywrapcp File "/Users/Giacomo/or-tools/ortools/constraint_solver/../gen/ortools/constraint_solver/pywrapcp.py", line 17, in _pywrapcp = swig_import_helper() File "/Users/Giacomo/or-tools/ortools/constraint_solver/../gen/ortools/constraint_solver/pywrapcp.py", line 16, in swig_import_helper return importlib.import_module('_pywrapcp') File "/Users/Giacomo/anaconda/lib/python3.6/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ModuleNotFoundError: No module named '_pywrapcp' make: *** [test_python_examples] Error 1 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/google/or-tools/issues/438#issuecomment-317279557, or mute the thread https://github.com/notifications/unsubscribe-auth/AKj17WudkiwxJFym9dyM8eLodDsDgEuEks5sQ6vxgaJpZM4OfPAl .
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/google/or-tools/issues/438#issuecomment-317284792, or mute the thread https://github.com/notifications/unsubscribe-auth/ALqfr0iAUCnyLdjsSGTelR43-QAuzLdsks5sQ8CZgaJpZM4OfPAl.
I have clarified the way to build scip.
can you try the instructions there:
http://or-tools.blogspot.com/2017/03/changing-way-we-link-with-scip.html
Everything works! Thank you!
Il giorno 01 ago 2017, alle ore 16:51, lperron notifications@github.com ha scritto:
I have changed the way to build scip.
can you try the instructions there:
http://or-tools.blogspot.com/2017/03/changing-way-we-link-with-scip.html http://or-tools.blogspot.com/2017/03/changing-way-we-link-with-scip.html — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/google/or-tools/issues/438#issuecomment-319394106, or mute the thread https://github.com/notifications/unsubscribe-auth/ALqfrwXa5CaJu4DAUfLzo6QvokgnW8C9ks5sTzt1gaJpZM4OfPAl.
I was trying to compile v6.2 of or-tools on macOS Sierra with
make python
, to use some external solvers like GLPK, SCIP and Gurobi, but at some point it showed me this error:The whole command which generates the error should be:
with option used in line:
As
man ld
says:Could it be the reason of my fail or it's caused by gurobi?
So, how to workaround it?