-
Notifications
You must be signed in to change notification settings - Fork 95
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
"No suitable image found" on OS-X #13
Comments
Ok, after more fiddling it seems like I got things to run. I had to copy libgfortran.3.dylib to a magic location.
|
Thanks. That is good to know. |
I'm encountering the same issue that @PeterJacob described. I'm running OS X version 10.11.6 (15G1217), and I've tried installing glmnet python via "pip install glmnet_py" and via the source installation instructions. In both cases the installation succeeds, and I'm able to "import glmnet_py" and "import glmnet_python," but when I run "glmnet(x = X.values.astype('float64'), y = y.values, family = 'cox')" in Python 3.6, I get the error `--------------------------------------------------------------------------- /Users/lmackey/anaconda/envs/python3/lib/python3.6/site-packages/glmnet_python/glmnet.py in glmnet(x, y, family, **options) /Users/lmackey/anaconda/envs/python3/lib/python3.6/site-packages/glmnet_python/elnet.py in elnet(x, is_sparse, irs, pcs, y, weights, offset, gtype, parm, lempty, nvars, jd, vp, cl, ne, nx, nlam, flmin, ulam, thresh, isd, intr, maxit, family) /Users/lmackey/anaconda/envs/python3/lib/python3.6/site-packages/glmnet_python/loadGlmLib.py in loadGlmLib() /Users/lmackey/anaconda/envs/python3/lib/python3.6/ctypes/init.py in LoadLibrary(self, name) /Users/lmackey/anaconda/envs/python3/lib/python3.6/ctypes/init.py in init(self, name, mode, handle, use_errno, use_last_error) OSError: dlopen(/Users/lmackey/anaconda/envs/python3/lib/python3.6/site-packages/glmnet_python/GLMnet.so, 6): no suitable image found. Did find: I've tried the libgfortran.3.dylib fix that @PeterJacob suggested, but my traceback is unchanged. @PeterJacob suggested that he may have had an incorrect GLMnet.so file; is a corrected GLMnet.so available for Mac OS X? Thanks! |
Peter,
Are you still having luck with the glmnet? I am wondering if I should add
your fix to the FAQ. Please let us know if the fix actually worked for you.
…On Thu, Jun 1, 2017 at 5:53 AM, Peter Smit ***@***.***> wrote:
Ok, after more fiddling it seems like I got things to run. I had to copy
libgfortran.3.dylib to a magic location.
mkdir -p /usr/local/opt/gcc/lib/gcc/6/
cp /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libgfortran.3.dylib /usr/local/opt/gcc/lib/gcc/6/
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKpDE0ukiz0pewagdw1Gsgg2AGk5oIAnks5r_ooTgaJpZM4Nsr2l>
.
|
Is there a recommended fix for this? I'm getting the same issue on OSX 10.13.2 |
I have fixed the problem by first placing the libgfortran.3.dylib file in the location suggested by PeterJacob. First I located the file with:
Next move the file as suggested:
After that I installed gfortran from here During this process I replaced the old file so unfortunately I can not check what exactly the difference is which may be causing this trouble. |
marnixkoops solution worked for me (using the path indicated in the error I was getting for moving the gfortran files)- thanks for uploading the file! |
For me, this worked:
And replacing the GLMnet.so as @marnixkoops suggested. |
Hi, I'm running Mac OS-X 10.12.3 (16D32). During the installation via pip there were no errors, but when I try to run a simple script fitting the model I get the following error. Does anyone understand what's going wrong?
A colleague of mine has the library running without problems, but doesn't remember how exactly.
The file mentions in the traceback (GLMnet.so) is the same as the one in the repo, but for some reason he has a file with different size. If I rename the version installed on my pc with his version I get the following traceback:
I tried installing Xcode + glibfortran for OS-X, but that doesn't help. Traceback is the same.
The text was updated successfully, but these errors were encountered: