-
Notifications
You must be signed in to change notification settings - Fork 256
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
Cannot import pyscipopt into python (ubuntu 18.04 and Mac) #327
Comments
Hi there! cheers, |
I have an issue with the
The
However, both
|
Sorry, @avrech, how is your comment related to this issue? |
Hi @mattmilten, Regars |
Hi @mattmilten , Traceback (most recent call last): I have also tried putting the directory containing libscip.6.0.dylib in the DY_LIBRARY_PATH as mentioned in another thread. Thanks for help! |
The name of the environment variable has to be |
the DYLD_LIBRARY_PATH change did not solve it. A default search location seems to be /usr/lib. tried to move the folder there but "Operation not permitted": sudo mv /Users/ingomeise/scipoptsuite/SCIPOptSuite-6.0.2-Darwin /usr/lib/ |
Same problem here. Failed to build pyscipopt |
I think there are two different problems in this issue. What is your problem and what did you try to do? |
ERROR: Failed building wheel for pyscipopt |
@mattmilten do you have any idea? I find it weird to see stuff like
as those are zimpl header files... |
I would suggest to compile and install the SCIPOptSuite yourself. The error does look rather strange, though. |
Hi everyone, newer versions of macOS protect certain environment variables (such as The recommendation to my understanding is to set the required variables from within the process (although this is somewhat cumbersome), so for pyscipopt this could be: import os
libdir = os.environ['SCIPOPTDIR'] + '/lib'
assert 'libscip.7.0.dylib' in os.listdir(libdir)
os.environ['DYLD_LIBRARY_PATH'] = libdir However, even after this, we get: import pyscipopt # Import Error ... Reason: image not found Similarly, setting import sys
...
sys.path.insert(0, libdir)
import pyscipopt # Import Error ... Reason: image not found The only thing that worked for me was to create a symbolic link to the required library (in my case ln -s $SCIPOPTDIR/lib/libscip.7.0.dylib /usr/local/lib/ I used the precompiled binaries and tried this on macOS 10.15.7 |
Same problem, add following solves the problem.
Mac 10.15.3 |
PySCIPOpt was installed successfully, but I cannot import pyscipopt into python (ubuntu 18.04 and Mac) |
PySCIPOpt was installed successfully, but I cannot import pyscipopt into python (ubuntu 18.04 and Mac) |
Hello, @tingllllll ! How did you install pyscipopt? I would definitely suggest using conda to install it. |
I installed it using pip, versions 3.0.2 and 3.1.5 PySCIPOpt was installed successfully, but I cannot import pyscipopt into python |
@tingllllll, do you have any other Python versions? Maybe you are trying to import pyscipopt from a different Python (other than the one with pyscipopt installed)? Did you follow the instruction here? |
PySCIPOpt was installed successfully, but I cannot import pyscipopt into python (ubuntu 18.04 and Mac).
The text was updated successfully, but these errors were encountered: