-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
installation problem on mac #112
Comments
Please use the latest versions of SCIP (5.0) and PySCIPOpt (1.3). |
Now i use SCIP 5.0 and PySCIPOpt 1.3, but the error is still there. |
I need more info on what you have done. Please write how you installed
SCIP. Have you tested whether SCIP itself works properly.
…On Tue, Dec 26, 2017, 12:09 gorbulas ***@***.***> wrote:
Now i use SCIP 5.0 and PySCIPOpt 1.3, but the error is still there.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#112 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABb-s05-Do8kxuCYnH0382akyVhhOafBks5tENPYgaJpZM4RMbdp>
.
|
First i use make ZLIB=false ZIMPL=false GMP=false READLINE=false scipoptlib in the folder of scipoptsuite. Then make test and scip has worked for all test problems. Finally i use make install. To install PySCIPOpt i use export SCIPOPTDIR= with the path to the build of scip and python3 setup.py install in the PySCIPOpt folder to install it for anaconda. |
So you're not using CMake as is recommended for PySCIPOpt. The Makefiles do
not work.
You might also try the dmg installer for Mac.
…On Tue, Dec 26, 2017, 14:07 gorbulas ***@***.***> wrote:
First i use make ZLIB=false ZIMPL=false GMP=false READLINE=false
scipoptlib in the folder of scipoptsuite. Then make test and scip has
worked for all test problems. Finally i use make install.
To install PySCIPOpt i use export SCIPOPTDIR= with the path to the build
of scip and python3 setup.py install in the PySCIPOpt folder to install it
for anaconda.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#112 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABb-s4jfSgtwNeNNqrA1IrIYAm_dsXUxks5tEO-XgaJpZM4RMbdp>
.
|
Nigther the dmg installer nor using CMake have solved the problem. The tests after using CMake worked. ImportError: dlopen(/Users/anaconda3/lib/python3.5/site-packages/PySCIPOpt-1.3.0-py3.5-macosx-10.5-x86_64.egg/pyscipopt/scip.cpython-35m-darwin.so, 2): Symbol not found: _SCIPnlpiComp For the CMake installation i run cmake GMP=false READLINE=false SHARED=true .. , make , make check and make install. |
I am sure that you're not linking to the correct SCIP library. When you're using the old Makefile system you end up with several libs: libscip, liblpi, libnlpi, libobjscip, ... With the new CMake system you wil only get one lib that contains everything so linking is a lot easier. This new lib is also called libscip, though. I strongly believe that you're still linking to the old, incomplete libscip.
You should not need to specify the Make sure that you remove any old libraries of SCIP that might still be used for PySCIPOpt before installing SCIP. |
I'm closing this due to inactivity. |
I'm having the same issue. I installed the dmg package, pip worked fine, used the DYLD_LIBRARY_PATH setting as some other issue poster suggested... still I get the dlink error when importing in Python. I'm using MacOSX High Sierra and Anaconda (with Python 3.6). This is the error I get.
According to this link, it looks like you can't use DYLD_LIBRARY_PATH with Conda and MacOSX because System Integrity Protection doesn't allow to. If I do a hard copy of the libraries to my working folder, than it fails because it links to a gmp dynamic library, which I didn't have. After installing GMP, it failed again, and I don't understand the reason. See error below...
Any thoughts? Thanks |
Hey @ggleizer, sorry your comment somehow went under my radar. |
Hi, i also tried to compile on my own, failed too what might be the solution ? thank you |
Apparently the |
Thank you for your help, I have it installed on Ubuntu. |
This is actually quite curious. I found the following while messing around with Travis CI configs. On macOS, even though macOS: Linux: |
Hello, I had a similar problem using the dmg installer, SCIP 6.0 and thanks to the comments on this thread helped me make it work. Thanks, and in case it helps. Made a symbolic link from the location of the libscip.6.0.dylib to the /usr/local/lib In terminal, ln -s {PATH_EXTRACTED_FOLDER}/lib/libscip.6.0.dylib /usr/local/lib/libscip.6.0.dylib |
Huh, thanks for that! So it looks like the Linux install is not working correctly or Python does not look up the correct paths. What I really don't understand is why specifying the |
@mattmilten I think you meant my appveyor setup. Anyways, the linux problems shows up when using cmake/make install, not when using .deb |
No, I did not mean your appveyor setup. Anyway, it seems that Ubuntu does not look into |
I have installed pyscipopt on mac with anaconda. But if i import model this error occures:
ImportError: dlopen(/Users/anaconda3/lib/python3.5/site-packages/PySCIPOpt-1.2.0-py3.5-macosx-10.5-x86_64.egg/pyscipopt/scip.cpython-35m-darwin.so, 2): Symbol not found: _SCIPnlpiComp
Referenced from: /Users/anaconda3/lib/python3.5/site-packages/PySCIPOpt-1.2.0-py3.5-macosx-10.5-x86_64.egg/pyscipopt/scip.cpython-35m-darwin.so
Expected in: dynamic lookup
The text was updated successfully, but these errors were encountered: