Skip to content
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

ValueError: loadGlmlib does not currently work for windows #60

Open
OhIlder opened this issue Apr 15, 2022 · 5 comments
Open

ValueError: loadGlmlib does not currently work for windows #60

OhIlder opened this issue Apr 15, 2022 · 5 comments

Comments

@OhIlder
Copy link

OhIlder commented Apr 15, 2022

Hello,Does this package not work on Windows?

@cerdem12
Copy link

Second that question! Is this working for Windows or any plans on that? Thank you..

@bbalasub1
Copy link
Owner

It should work just fine on windows.

@cerdem12
Copy link

cerdem12 commented Dec 2, 2022

Hello, here is the the error message after installing glmnet_python, and running the glmnet_examples notebook:


ValueError Traceback (most recent call last)
Cell In [5], line 2
1 # call glmnet
----> 2 fit = glmnet(x = x.copy(), y = y.copy(), family = 'gaussian',
3 weights = wts,
4 alpha = 0.2, nlambda = 20
5 )

File ~\anaconda3\envs\glmtest\lib\site-packages\glmnet_python\glmnet.py:448, in glmnet(x, y, family, **options)
445 ## finally call the appropriate fit code
446 if family == 'gaussian':
447 # call elnet
--> 448 fit = elnet(x, is_sparse, irs, pcs, y, weights, offset, gtype, parm,
449 lempty, nvars, jd, vp, cl, ne, nx, nlam, flmin, ulam,
450 thresh, isd, intr, maxit, family)
451 elif (family == 'binomial') or (family == 'multinomial'):
452 # call lognet
453 fit = lognet(x, is_sparse, irs, pcs, y, weights, offset, parm,
454 nobs, nvars, jd, vp, cl, ne, nx, nlam, flmin, ulam,
455 thresh, isd, intr, maxit, kopt, family)

File ~\anaconda3\envs\glmtest\lib\site-packages\glmnet_python\elnet.py:17, 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)
12 def elnet(x, is_sparse, irs, pcs, y, weights, offset, gtype, parm, lempty,
13 nvars, jd, vp, cl, ne, nx, nlam, flmin, ulam, thresh, isd, intr,
14 maxit, family):
15
16 # load shared fortran library
---> 17 glmlib = loadGlmLib()
19 # pre-process data
20 ybar = scipy.dot(scipy.transpose(y), weights)

File ~\anaconda3\envs\glmtest\lib\site-packages\glmnet_python\loadGlmLib.py:28, in loadGlmLib()
25 return(glmlib)
26 elif os.name == 'nt':
27 # this does not currently work
---> 28 raise ValueError('loadGlmlib does not currently work for windows')
29 # glmlib = ctypes.windll.LoadLibrary(glmnet_dll)
30 else:
31 raise ValueError('loadGlmLib not yet implemented for non-posix OS')

ValueError: loadGlmlib does not currently work for windowsrk for windows

@reabbot
Copy link

reabbot commented Feb 8, 2023

I am also getting this message. Is there a resolution to this?

@jericholawson
Copy link

I too am also getting this message. Any updates to this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants