andre-martins / AD3

Alternating Directions Dual Decomposition
GNU Lesser General Public License v3.0
68 stars 38 forks source link

windows installation problems #15

Closed drandreaskrueger closed 6 years ago

drandreaskrueger commented 8 years ago

This is an attempt to install pystruct on windows, see https://github.com/pystruct/pystruct/issues/190 and https://github.com/cvxopt/cvxopt/issues/67 and https://github.com/cvxgrp/CVXcanon/issues/26

when I do

pip install ad3

I get two errors, the first is:

pip install ad3
Collecting ad3
  Using cached ad3-2.0.2.tar.gz
Building wheels for collected packages: ad3
  Running setup.py bdist_wheel for ad3 ... error
  Complete output from command C:\Anaconda\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\andreas\\a
ppdata\\local\\temp\\pip-build-b1_exo\\ad3\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().repl
ace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d c:\users\andreas\appdata\local\temp\tmpxnrgqipip-wheel- --python-t
ag cp27:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-2.7
  creating build\lib.win-amd64-2.7\ad3
  copying python\ad3\simple_inference.py -> build\lib.win-amd64-2.7\ad3
  copying python\ad3\__init__.py -> build\lib.win-amd64-2.7\ad3
  running build_clib
  building 'ad3' library
  creating build\temp.win-amd64-2.7
  creating build\temp.win-amd64-2.7\ad3
  C:\Users\Andreas\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox
/MD /W3 /GS- /DNDEBUG -I. -I./ad3 -I./Eigen /Tpad3/FactorGraph.cpp /Fobuild\temp.win-amd64-2.7\ad3/FactorGraph.obj
  FactorGraph.cpp
  C:\Users\Andreas\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Include\xlocale(342) : warning C
4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
  ad3/FactorGraph.cpp(22) : fatal error C1083: Cannot open include file: 'gettimeofday.h': No such file or directory
  error: command 'C:\\Users\\Andreas\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\
amd64\\cl.exe' failed with exit status 2

  ----------------------------------------
  Failed building wheel for ad3
  Running setup.py clean for ad3
Failed to build ad3
drandreaskrueger commented 8 years ago

trying

pip install https://github.com/andre-martins/AD3/archive/master.zip

Yei, that worked:

pip install https://github.com/andre-martins/AD3/archive/master.zip
Collecting https://github.com/andre-martins/AD3/archive/master.zip
  Downloading https://github.com/andre-martins/AD3/archive/master.zip
     / 2.1MB 2.1MB/s
Installing collected packages: ad3
  Running setup.py install for ad3 ... done
Successfully installed ad3-2.0.1

please update pypi so that the usual pip install ad3 is working.

Thanks.

andre-martins commented 8 years ago

Thanks for solving this.

2016-08-19 9:33 GMT+01:00 drandreaskrueger notifications@github.com:

trying

pip install https://github.com/andre-martins/AD3/archive/master.zip

Yei, that worked:

pip install https://github.com/andre-martins/AD3/archive/master.zip Collecting https://github.com/andre-martins/AD3/archive/master.zip Downloading https://github.com/andre-martins/AD3/archive/master.zip / 2.1MB 2.1MB/s Installing collected packages: ad3 Running setup.py install for ad3 ... done Successfully installed ad3-2.0.1

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/andre-martins/AD3/issues/15#issuecomment-240960395, or mute the thread https://github.com/notifications/unsubscribe-auth/ABU1wwGym-tFEz3Rvb6E-N_cmbLCPw4kks5qhWprgaJpZM4JoQB5 .

vene commented 6 years ago

This should be fixed since the last release. Thanks!