[Spglib-users] Installing python-spglib on Windows
Brought to you by:
atztogo
From: Nicholas F. <nf...@gm...> - 2016-09-27 19:57:02
|
Greetings, I ran into some installation trouble but don't know whether to call it an issue with the code. Can anyone advise whether I need to adjust configuration on my machine, or report an issue to spglib, or to setuptools, etc? I run 32 bit Python 3.5 on Windows and have Numpy1.11+MKL installed from a pre-built wheel. I cloned the spglib repository from github and ran python setup.py install Watching in the log, all the .obj files compiled. However, the linker failed, and the output shows that build_ext issued a command that does not quote the paths of the library files. Since I have paths with spaces in my installation, the automatic link command fails unless I manually fix it. I have seen that within distutils and numpy, LIBPATH quoting was identified and fixed long ago: http://bugs.python.org/issue13765 https://github.com/numpy/numpy/pull/5765 Thanks for the useful library. Best regards, Nicholas Fette P.S. Excerpts from install output: setuptools is used. running install ... running build_py running build_ext No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils building 'spglib._spglib' extension C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe ... Found executable C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\link.exe LINK : fatal error LNK1181: cannot open input file 'Files.obj' error: Command "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Program Files (x86)\Python35-32\libs /LIBPATH:C:\Program Files (x86)\Python35-32\PCbuild\win32 ..." failed with exit status 1181 |