python-glmnet icon indicating copy to clipboard operation
python-glmnet copied to clipboard

BUG: unable to build on Windows

Open andyljones opened this issue 9 years ago • 5 comments

I'm trying to build this package on Windows and not having much luck. Using the mingw-w64 Fortran compiler (installed from Anaconda) and Visual Studio 2015, I get these errors:

glmnet5.o : error LNK2001: unresolved external symbol _gfortran_runtime_error_at
glmnet5.o : error LNK2001: unresolved external symbol _gfortran_internal_pack
glmnet5.o : error LNK2001: unresolved external symbol _gfortran_internal_unpack

A morning of Googling hasn't been much help. The closest I found was this StackOverflow question, but setting the compiler=mingw32 flag in setup.cfg leads to a different error, ValueError: Unknown MS Compiler version 1900.

Have you successfully built this package on Windows?

andyljones avatar Sep 01 '16 12:09 andyljones

We have not yet built the package under Windows. Unfortunately, we do not have easy access to a Windows box. I'll do some digging through numpy and conda recipes to see if those are provide any hints.

wlattner avatar Sep 01 '16 13:09 wlattner

https://www.scipy.org/scipylib/building/windows.html http://scipy.github.io/old-wiki/pages/F2PY_Windows

wlattner avatar Sep 01 '16 13:09 wlattner

I got this build/run on Windows 10 with a small change in the setup.py

PythonWillRule avatar Sep 29 '18 20:09 PythonWillRule

@John3-16 , thank you for the report. What change? If it's a generally applicable fix, you could contribute it as a pull request.

stephen-hoover avatar Oct 01 '18 14:10 stephen-hoover

A working Fortran compiler is also required to build the package

is it fixed pls?

Sandy4321 avatar Jun 20 '21 19:06 Sandy4321