drufat/triangle

I can not for the life of me install triangle

mdietrich16 opened this issue · 7 comments

I am actually trying to install glumpy, which depends on triangle. Both cannot be installed either via pip or source install, and because both spit out the same error, I am now here. I am using Windows 10, installing in an Anaconda env with Python 3.7. The error I get after cloning the repo, doing

cd triangle
python setup.py install

is

E:\-----\VisualStudio\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DVOID=void -DREAL=double -DNO_TIMER=1 -DTRILIBRARY=1 -DANSI_DECLARATORS=1 -Ic -IE:\*****\Anaconda3\include -IE:\*****\Anaconda3\include -IE:\-----\VisualStudio\VC\Tools\MSVC\14.15.26726\ATLMFC\include -IE:\-----\VisualStudio\VC\Tools\MSVC\14.15.26726\include "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\cppwinrt" /Tctriangle/core.c /Fobuild\temp.win-amd64-3.7\Release\triangle/core.obj
core.c
E:\-----\VisualStudio\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:E:\*****\Anaconda3\libs /LIBPATH:E:\*****\Anaconda3\PCbuild\amd64 /LIBPATH:E:\-----\VisualStudio\VC\Tools\MSVC\14.15.26726\ATLMFC\lib\x64 /LIBPATH:E:\-----\VisualStudio\VC\Tools\MSVC\14.15.26726\lib\x64 "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17134.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17134.0\um\x64" /EXPORT:PyInit_core build\temp.win-amd64-3.7\Release\c/triangle.obj build\temp.win-amd64-3.7\Release\triangle/core.obj /OUT:build\lib.win-amd64-3.7\triangle\core.cp37-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.7\Release\c\core.cp37-win_amd64.lib
LINK : fatal error LNK1104: cannot open file 'OLDNAMES.lib'
error: command 'E:\\-----\\VisualStudio\\VC\\Tools\\MSVC\\14.15.26726\\bin\\HostX86\\x64\\link.exe' failed with exit status 1104

I masked my filesystem structure with ----- and *****. Those should be valid paths.
I would be happy to give you more information, I just don't know what :)

I have not used Windows for years, so I am afraid I will not be of much help. But if you can fix the issue, I would be happy to merge the fix. It would be nice to run triangle on as many platforms as possible.

Well, since I have no idea what any of this means, I probably can't fix it. Do you know what it's trying to do?

The error line

LINK : fatal error LNK1104: cannot open file 'OLDNAMES.lib'

indicates it is trying to to link against a file, which is not mentioned anywhere in the triangle source.

Can you try to install triangle on windows using pip? It is released as a binary wheel now so there should be no compilation step.

I already installed it successfully right from the wheel, I can try to do it via pip.

Yes, works via pip in windows.

Great! Thanks for checking.