Quantipy / quantipy

Python for people data
MIT License
66 stars 14 forks source link

Installation error (Failed building wheel for Quantipy & failed with error code 1 #1131

Closed jskalant closed 6 years ago

jskalant commented 6 years ago

Dear all,

I am trying to install QuantiPy using Conda and I get the error messages that you will find below. Do you know how to fix this?

I am using a Windows 7 laptop with running instances of Python 3.6 and Conda version 4.5.4

Not sure what else to check on my side.

Thank you for any help you can provide.

JC

Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.14.26428\include" -I"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\share d" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\cppwinrt" /EHsc /TpC:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantip y/quicked/_quicked.cpp /Fobuild\temp.win-amd64-3.6\Release\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.obj _quicked.cpp c:\programdata\anaconda3\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(12) : Warning Msg: Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/misc\utils.h(84): warning C4244: '+=': conversion from 'double' to 'uint32', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/misc\combinatorics.h(71): warning C4146: unary minus operator applied to unsigned type, result still unsigned C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/misc\combinatorics.h(78): warning C4244: 'initializing': conversion from 'uint64' to 'int', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/misc\combinatorics.h(104): warning C4244: 'initializing': conversion from 'uint64' to 'int', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/misc\combinatorics.h(161): warning C4244: 'return': conversion from 'uint64' to 'uint32', possible loss of data c:\users\jc.escalante\appdata\local\temp\pip-install-cucrh0m1\quantipy\quantipy\quicked\src\basisstates\BasisStateSpinhalf.h(34): warning C4244: 'return': conversion from 'unsigned int64' to 'uint32', possible loss of data c:\users\jc.escalante\appdata\local\temp\pip-install-cucrh0m1\quantipy\quantipy\quicked\src\symmetries\SymmetryDetail.h(50): warning C4267: 'initializing': conversion from 'size_t' to 'uint32', possible loss of data c:\users\jc.escalante\appdata\local\temp\pip-install-cucrh0m1\quantipy\quantipy\quicked\src\symmetries\SymmetryDetail.h(50): warning C4267: 'initializing': conversion from 'size_t' to 'const uint32', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(93): warning C4244: 'return': conversion from 'double' to 'uint64', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(96): warning C4244: 'return': conversion from 'double' to 'uint64', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(99): warning C4244: 'return': conversion from 'double' to 'uint64', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.cpp(437): warning C4244: 'initializing': conversion from 'npy_intp' to 'uint32', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.cpp(442): warning C4244: 'initializing': conversion from 'npy_intp' to 'uint32', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.cpp(452): warning C4244: '+=': conversion from 'double' to 'uint32', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.cpp(653): warning C4244: 'initializing': conversion from 'npy_intp' to 'uint32', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.cpp(658): warning C4244: 'initializing': conversion from 'npy_intp' to 'uint32', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.cpp(668): warning C4244: '+=': conversion from 'double' to 'uint32', possible loss of data c:\users\jc.escalante\appdata\local\temp\pip-install-cucrh0m1\quantipy\quantipy\quicked\src\basisstates\BasisStateSpinhalfDetail.h(34): warning C4244: 'initializing': conversion from 'uint64' to 'int', possible loss of data c:\users\jc.escalante\appdata\local\temp\pip-install-cucrh0m1\quantipy\quantipy\quicked\src\hilbertspaces\HilbertSpaceSpinhalf.h(57): note: see reference to function template instantiation 'T quicked::BasisStateSpinhalfDetail::get_nth_pattern<unsigned int64>(const uint64 &,const uint64 &,const i nt &)' being compiled with [ T=unsigned int64 ] c:\users\jc.escalante\appdata\local\temp\pip-install-cucrh0m1\quantipy\quantipy\quicked\src\basisstates\BasisStateSpinhalfDetail.h(62): warning C4244: 'initializing': conversion from 'uint64' to 'int', possible loss of data c:\users\jc.escalante\appdata\local\temp\pip-install-cucrh0m1\quantipy\quantipy\quicked\src\hilbertspaces\HilbertSpaceSpinhalf.h(60): note: see reference to function template instantiation 'uint64 quicked::BasisStateSpinhalfDetail::get_n_for_pattern(const T &,const uint64 &,const int &)' being compiled with [ T=unsigned __int64 ] C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/symmetries\SymmetryEngine.h(78): warning C4267: 'initializing': conversion from 'size_t' to 'uint32', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/symmetries\SymmetryEngine.h(73): note: while compiling class template member function 'quicked::SymmetryEngine<1,quicked::LocalSymmetryVoid<1>>::SymmetryEngine(const std::vector<std::vector<uint32,std::allo cator<_Ty>>,std::allocator<std::vector<_Ty,std::allocator<_Ty>>>> &,const std::vector<complex,std::allocator<std::complex>> &,const TLocalSymmetry &)' with [ _Ty=uint32, TLocalSymmetry=quicked::LocalSymmetryVoid<1> ] C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.cpp(249): note: see reference to function template instantiation 'quicked::SymmetryEngine<1,quicked::LocalSymmetryVoid<1>>::SymmetryEngine(const std::vector<std::vector<uint32,std::allocator<_Ty>>,std: :allocator<std::vector<_Ty,std::allocator<_Ty>>>> &,const std::vector<complex,std::allocator<std::complex>> &,const TLocalSymmetry &)' being compiled with [ _Ty=uint32, TLocalSymmetry=quicked::LocalSymmetryVoid<1> ] C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.cpp(249): note: see reference to class template instantiation 'quicked::SymmetryEngine<1,quicked::LocalSymmetryVoid<1>>' being compiled C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.cpp(312): note: see reference to function template instantiation 'void dispatch_get_basis_states_symmetrized<1>(const uint32 &,const uint32 &,const std::vector<std::vector<uint32,std::allocator<_Ty>>,s td::allocator<std::vector<_Ty,std::allocator<_Ty>>>> &,const std::vector<complex,std::allocator<std::complex>> &,uint64 ,uint64 ,double )' being compiled with [ _Ty=uint32 ] C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(193): warning C4244: 'initializing': conversion from 'double' to 'uint32', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.cpp(381): note: see reference to function template instantiation 'void quicked::interface::get_operator<1>(const uint64 &,const uint64 ,const uint32 &,const uint32 ,int ,complex ,uint64 ,uint64 ,uint64 ,complex )' being compiled C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.cpp(466): note: see reference to function template instantiation 'void dispatch_get_operator<1>(const uint32 &,const uint32 &,const uint32 &,const uint32 ,int ,complex ,uint64 ,uint64 ,uint64 * ,uint64 ,uint64 ,complex **)' being compiled C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(193): warning C4244: 'initializing': conversion from 'double' to 'const uint32', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(191): error C2131: expression did not evaluate to a constant C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(191): note: failure was caused by a read of a variable outside its lifetime C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(191): note: see usage of 'n_sites_for_bonds' C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(195): error C2131: expression did not evaluate to a constant C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(191): note: failure was caused by a read of a variable outside its lifetime C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(191): note: see usage of 'n_sites_for_bonds' C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(203): error C3863: array type 'uint32 [n_sites_for_bond]' is not assignable C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(228): error C2131: expression did not evaluate to a constant C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(191): note: failure was caused by a read of a variable outside its lifetime C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(191): note: see usage of 'n_sites_for_bonds' C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(239): warning C4244: 'initializing': conversion from 'int64' to 'uint32', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(289): warning C4244: 'initializing': conversion from 'double' to 'uint32', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.cpp(558): note: see reference to function template instantiation 'void quicked::interface::get_operator_symmetrized<1,quicked::SymmetryEngine<1,quicked::LocalSymmetryVoid<1>>>(const TSymmetryEngine &,c onst uint64 &,const uint64 ,const double ,const uint32 &,const uint32 ,int ,complex ,uint64 ,uint64 ,uint64 ,complex )' being compiled with [ TSymmetryEngine=quicked::SymmetryEngine<1,quicked::LocalSymmetryVoid<1>> ] C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.cpp(681): note: see reference to function template instantiation 'void dispatch_get_operator_symmetrized<1>(const uint32 &,const uint32 &,const std::vector<std::vector<uint32,std::allocator<_Ty>>,std:: allocator<std::vector<_Ty,std::allocator<_Ty>>>> &,const std::vector<complex,std::allocator<std::complex>> &,const uint32 &,const uint32 ,int ,complex ,uint64 ,uint64 ,double *,uint64 ,uint64 ,uint64 ,complex **)' being compiled with [ _Ty=uint32 ] C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(289): warning C4244: 'initializing': conversion from 'double' to 'const uint32', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(287): error C2131: expression did not evaluate to a constant C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(287): note: failure was caused by a read of a variable outside its lifetime C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(287): note: see usage of 'n_sites_for_bonds' C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(290): error C2131: expression did not evaluate to a constant C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(287): note: failure was caused by a read of a variable outside its lifetime C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(287): note: see usage of 'n_sites_for_bonds' C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(298): error C3863: array type 'uint32 [n_sites_for_bond]' is not assignable C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(320): error C2131: expression did not evaluate to a constant C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(287): note: failure was caused by a read of a variable outside its lifetime C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(287): note: see usage of 'n_sites_for_bonds' C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(335): warning C4244: 'initializing': conversion from '__int64' to 'uint32', possible loss of data error: Command "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.14.26428\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/ -IC:\Users\JC5569~1.ESC\AppData\Local \Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/ -IC:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/basisstates -IC:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/hilbertspaces -IC:\Users\JC5569~1.ESC\AppD ata\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/misc -IC:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/symmetries -Ic:\programdata\anaconda3\lib\site-packages\numpy\core\include -Ic:\programdata\anaconda3\include -Ic:\programdata\anaconda 3\include -I"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.14.26428\include" -I"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" -I"C:\Program Files (x86)\Windows Kits\10\include\10 .0.17134.0\shared" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\cppwinrt" /EHsc /TpC:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\ Quantipy\quantipy/quicked/_quicked.cpp /Fobuild\temp.win-amd64-3.6\Release\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.obj" failed with exit status 2


Failed building wheel for Quantipy Running setup.py clean for Quantipy Failed to build Quantipy Installing collected packages: Quantipy Running setup.py install for Quantipy ... error Complete output from command c:\programdata\anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(co mpile(code, file, 'exec'))" install --record C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-record-f3t4solb\install-record.txt --single-version-externally-managed --compile: c:\programdata\anaconda3\lib\site-packages\setuptools\dist.py:398: UserWarning: Normalizing '0.0.0dev3' to '0.0.0.dev3' normalized_version, running install running build running build_py creating build creating build\lib.win-amd64-3.6 creating build\lib.win-amd64-3.6\quantipy copying quantipy\mplrcsettings.py -> build\lib.win-amd64-3.6\quantipy copying quantipy__init.py -> build\lib.win-amd64-3.6\quantipy creating build\lib.win-amd64-3.6\quantipy\correlations copying quantipy\correlations\correlations.py -> build\lib.win-amd64-3.6\quantipy\correlations copying quantipy\correlations\dynspecfunc.py -> build\lib.win-amd64-3.6\quantipy\correlations copying quantipy\correlations__init.py -> build\lib.win-amd64-3.6\quantipy\correlations creating build\lib.win-amd64-3.6\quantipy\lattice copying quantipy\lattice\lattice.py -> build\lib.win-amd64-3.6\quantipy\lattice copying quantipy\lattice__init.py -> build\lib.win-amd64-3.6\quantipy\lattice creating build\lib.win-amd64-3.6\quantipy\models copying quantipy\models\genericmodel.py -> build\lib.win-amd64-3.6\quantipy\models copying quantipy\models\quadratic.py -> build\lib.win-amd64-3.6\quantipy\models copying quantipy\models\spinwave.py -> build\lib.win-amd64-3.6\quantipy\models copying quantipy\models\test.py -> build\lib.win-amd64-3.6\quantipy\models copying quantipy\models\tightbinding.py -> build\lib.win-amd64-3.6\quantipy\models copying quantipy\models\init.py -> build\lib.win-amd64-3.6\quantipy\models creating build\lib.win-amd64-3.6\quantipy\operators copying quantipy\operators\heisenberg.py -> build\lib.win-amd64-3.6\quantipy\operators copying quantipy\operators\init.py -> build\lib.win-amd64-3.6\quantipy\operators creating build\lib.win-amd64-3.6\quantipy\quicked copying quantipy\quicked\quicked.py -> build\lib.win-amd64-3.6\quantipy\quicked copying quantipy\quicked\init.py -> build\lib.win-amd64-3.6\quantipy\quicked creating build\lib.win-amd64-3.6\quantipy\spectra copying quantipy\spectra\spectra.py -> build\lib.win-amd64-3.6\quantipy\spectra copying quantipy\spectra\init.py -> build\lib.win-amd64-3.6\quantipy\spectra creating build\lib.win-amd64-3.6\quantipy\spglib copying quantipy\spglib\spglib.py -> build\lib.win-amd64-3.6\quantipy\spglib copying quantipy\spglib\spglib2d.py -> build\lib.win-amd64-3.6\quantipy\spglib copying quantipy\spglib\init.py -> build\lib.win-amd64-3.6\quantipy\spglib creating build\lib.win-amd64-3.6\quantipy\symmetries copying quantipy\symmetries\symmetries.py -> build\lib.win-amd64-3.6\quantipy\symmetries copying quantipy\symmetries\init.py -> build\lib.win-amd64-3.6\quantipy\symmetries creating build\lib.win-amd64-3.6\quantipy\towerofstates copying quantipy\towerofstates\towerofstates.py -> build\lib.win-amd64-3.6\quantipy\towerofstates copying quantipy\towerofstates\init__.py -> build\lib.win-amd64-3.6\quantipy\towerofstates creating build\lib.win-amd64-3.6\quantipy\utils copying quantipy\utils\decorator.py -> build\lib.win-amd64-3.6\quantipy\utils copying quantipy\utils\findfiles.py -> build\lib.win-amd64-3.6\quantipy\utils copying quantipy\utils\geometryutils.py -> build\lib.win-amd64-3.6\quantipy\utils copying quantipy\utils\pathdistance.py -> build\lib.win-amd64-3.6\quantipy\utils copying quantipy\utils\pfaffian.py -> build\lib.win-amd64-3.6\quantipy\utils copying quantipy\utils\plotutils.py -> build\lib.win-amd64-3.6\quantipy\utils copying quantipy\utils\rowoperations.py -> build\lib.win-amd64-3.6\quantipy\utils copying quantipy\utils\sun_combinatorics.py -> build\lib.win-amd64-3.6\quantipy\utils copying quantipy\utils\init__.py -> build\lib.win-amd64-3.6\quantipy\utils running build_ext No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils building '_quicked' extension creating build\temp.win-amd64-3.6 creating build\temp.win-amd64-3.6\Release creating build\temp.win-amd64-3.6\Release\Users creating build\temp.win-amd64-3.6\Release\Users\JC5569~1.ESC creating build\temp.win-amd64-3.6\Release\Users\JC5569~1.ESC\AppData creating build\temp.win-amd64-3.6\Release\Users\JC5569~1.ESC\AppData\Local creating build\temp.win-amd64-3.6\Release\Users\JC5569~1.ESC\AppData\Local\Temp creating build\temp.win-amd64-3.6\Release\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1 creating build\temp.win-amd64-3.6\Release\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy creating build\temp.win-amd64-3.6\Release\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy creating build\temp.win-amd64-3.6\Release\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy\quicked C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.14.26428\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/ -IC:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-inst all-cucrh0m1\Quantipy\quantipy/quicked/src/ -IC:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/basisstates -IC:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/hilbertspaces -IC:\Users\JC5569~1.ESC\AppData\Local\Temp \pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/misc -IC:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/symmetries -Ic:\programdata\anaconda3\lib\site-packages\numpy\core\include -Ic:\programdata\anaconda3\include -Ic:\programdata\anaconda3\include -I"C :\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.14.26428\include" -I"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\sha red" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\cppwinrt" /EHsc /TpC:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quant ipy/quicked/_quicked.cpp /Fobuild\temp.win-amd64-3.6\Release\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.obj _quicked.cpp c:\programdata\anaconda3\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(12) : Warning Msg: Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/misc\utils.h(84): warning C4244: '+=': conversion from 'double' to 'uint32', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/misc\combinatorics.h(71): warning C4146: unary minus operator applied to unsigned type, result still unsigned C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/misc\combinatorics.h(78): warning C4244: 'initializing': conversion from 'uint64' to 'int', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/misc\combinatorics.h(104): warning C4244: 'initializing': conversion from 'uint64' to 'int', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/misc\combinatorics.h(161): warning C4244: 'return': conversion from 'uint64' to 'uint32', possible loss of data c:\users\jc.escalante\appdata\local\temp\pip-install-cucrh0m1\quantipy\quantipy\quicked\src\basisstates\BasisStateSpinhalf.h(34): warning C4244: 'return': conversion from 'unsigned int64' to 'uint32', possible loss of data c:\users\jc.escalante\appdata\local\temp\pip-install-cucrh0m1\quantipy\quantipy\quicked\src\symmetries\SymmetryDetail.h(50): warning C4267: 'initializing': conversion from 'size_t' to 'uint32', possible loss of data c:\users\jc.escalante\appdata\local\temp\pip-install-cucrh0m1\quantipy\quantipy\quicked\src\symmetries\SymmetryDetail.h(50): warning C4267: 'initializing': conversion from 'size_t' to 'const uint32', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(93): warning C4244: 'return': conversion from 'double' to 'uint64', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(96): warning C4244: 'return': conversion from 'double' to 'uint64', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(99): warning C4244: 'return': conversion from 'double' to 'uint64', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.cpp(437): warning C4244: 'initializing': conversion from 'npy_intp' to 'uint32', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.cpp(442): warning C4244: 'initializing': conversion from 'npy_intp' to 'uint32', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.cpp(452): warning C4244: '+=': conversion from 'double' to 'uint32', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.cpp(653): warning C4244: 'initializing': conversion from 'npy_intp' to 'uint32', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.cpp(658): warning C4244: 'initializing': conversion from 'npy_intp' to 'uint32', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.cpp(668): warning C4244: '+=': conversion from 'double' to 'uint32', possible loss of data c:\users\jc.escalante\appdata\local\temp\pip-install-cucrh0m1\quantipy\quantipy\quicked\src\basisstates\BasisStateSpinhalfDetail.h(34): warning C4244: 'initializing': conversion from 'uint64' to 'int', possible loss of data c:\users\jc.escalante\appdata\local\temp\pip-install-cucrh0m1\quantipy\quantipy\quicked\src\hilbertspaces\HilbertSpaceSpinhalf.h(57): note: see reference to function template instantiation 'T quicked::BasisStateSpinhalfDetail::get_nth_pattern(const uint64 &,const uint64 &,const int &)' being compiled with [ T=unsigned int64 ] c:\users\jc.escalante\appdata\local\temp\pip-install-cucrh0m1\quantipy\quantipy\quicked\src\basisstates\BasisStateSpinhalfDetail.h(62): warning C4244: 'initializing': conversion from 'uint64' to 'int', possible loss of data c:\users\jc.escalante\appdata\local\temp\pip-install-cucrh0m1\quantipy\quantipy\quicked\src\hilbertspaces\HilbertSpaceSpinhalf.h(60): note: see reference to function template instantiation 'uint64 quicked::BasisStateSpinhalfDetail::get_n_for_pattern(const T &,const uint64 &,con st int &)' being compiled with [ T=unsigned __int64 ] C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/symmetries\SymmetryEngine.h(78): warning C4267: 'initializing': conversion from 'size_t' to 'uint32', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/symmetries\SymmetryEngine.h(73): note: while compiling class template member function 'quicked::SymmetryEngine<1,quicked::LocalSymmetryVoid<1>>::SymmetryEngine(const std::vector<std::vector<uint32,std::al locator<_Ty>>,std::allocator<std::vector<_Ty,std::allocator<_Ty>>>> &,const std::vector<complex,std::allocator<std::complex>> &,const TLocalSymmetry &)' with [ _Ty=uint32, TLocalSymmetry=quicked::LocalSymmetryVoid<1> ] C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.cpp(249): note: see reference to function template instantiation 'quicked::SymmetryEngine<1,quicked::LocalSymmetryVoid<1>>::SymmetryEngine(const std::vector<std::vector<uint32,std::allocator<_Ty>>,st d::allocator<std::vector<_Ty,std::allocator<_Ty>>>> &,const std::vector<complex,std::allocator<std::complex>> &,const TLocalSymmetry &)' being compiled with [ _Ty=uint32, TLocalSymmetry=quicked::LocalSymmetryVoid<1> ] C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.cpp(249): note: see reference to class template instantiation 'quicked::SymmetryEngine<1,quicked::LocalSymmetryVoid<1>>' being compiled C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.cpp(312): note: see reference to function template instantiation 'void dispatch_get_basis_states_symmetrized<1>(const uint32 &,const uint32 &,const std::vector<std::vector<uint32,std::allocator<_Ty>> ,std::allocator<std::vector<_Ty,std::allocator<_Ty>>>> &,const std::vector<complex,std::allocator<std::complex>> &,uint64 ,uint64 ,double )' being compiled with [ _Ty=uint32 ] C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(193): warning C4244: 'initializing': conversion from 'double' to 'uint32', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.cpp(381): note: see reference to function template instantiation 'void quicked::interface::get_operator<1>(const uint64 &,const uint64 ,const uint32 &,const uint32 ,int ,complex ,uint64 ,uint6 4 ,uint64 ,complex )' being compiled C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.cpp(466): note: see reference to function template instantiation 'void dispatch_get_operator<1>(const uint32 &,const uint32 &,const uint32 &,const uint32 ,int ,complex ,uint64 ,uint64 ,uint64 *,uint64 ,uint64 ,complex **)' being compiled C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(193): warning C4244: 'initializing': conversion from 'double' to 'const uint32', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(191): error C2131: expression did not evaluate to a constant C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(191): note: failure was caused by a read of a variable outside its lifetime C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(191): note: see usage of 'n_sites_for_bonds' C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(195): error C2131: expression did not evaluate to a constant C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(191): note: failure was caused by a read of a variable outside its lifetime C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(191): note: see usage of 'n_sites_for_bonds' C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(203): error C3863: array type 'uint32 [n_sites_for_bond]' is not assignable C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(228): error C2131: expression did not evaluate to a constant C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(191): note: failure was caused by a read of a variable outside its lifetime C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(191): note: see usage of 'n_sites_for_bonds' C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(239): warning C4244: 'initializing': conversion from 'int64' to 'uint32', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(289): warning C4244: 'initializing': conversion from 'double' to 'uint32', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.cpp(558): note: see reference to function template instantiation 'void quicked::interface::get_operator_symmetrized<1,quicked::SymmetryEngine<1,quicked::LocalSymmetryVoid<1>>>(const TSymmetryEngine & ,const uint64 &,const uint64 ,const double ,const uint32 &,const uint32 ,int ,complex ,uint64 ,uint64 ,uint64 ,complex )' being compiled with [ TSymmetryEngine=quicked::SymmetryEngine<1,quicked::LocalSymmetryVoid<1>> ] C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.cpp(681): note: see reference to function template instantiation 'void dispatch_get_operator_symmetrized<1>(const uint32 &,const uint32 &,const std::vector<std::vector<uint32,std::allocator<_Ty>>,std ::allocator<std::vector<_Ty,std::allocator<_Ty>>>> &,const std::vector<complex,std::allocator<std::complex>> &,const uint32 &,const uint32 ,int ,complex ,uint64 ,uint64 ,double *,uint64 ,uint64 ,uint64 ,complex **)' being compiled with [ _Ty=uint32 ] C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(289): warning C4244: 'initializing': conversion from 'double' to 'const uint32', possible loss of data C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(287): error C2131: expression did not evaluate to a constant C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(287): note: failure was caused by a read of a variable outside its lifetime C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(287): note: see usage of 'n_sites_for_bonds' C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(290): error C2131: expression did not evaluate to a constant C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(287): note: failure was caused by a read of a variable outside its lifetime C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(287): note: see usage of 'n_sites_for_bonds' C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(298): error C3863: array type 'uint32 [n_sites_for_bond]' is not assignable C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(320): error C2131: expression did not evaluate to a constant C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(287): note: failure was caused by a read of a variable outside its lifetime C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(287): note: see usage of 'n_sites_for_bonds' C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/interface.h(335): warning C4244: 'initializing': conversion from '__int64' to 'uint32', possible loss of data error: Command "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.14.26428\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/ -IC:\Users\JC5569~1.ESC\AppData\Loc al\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/ -IC:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/basisstates -IC:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/hilbertspaces -IC:\Users\JC5569~1.ESC\Ap pData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/misc -IC:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/src/symmetries -Ic:\programdata\anaconda3\lib\site-packages\numpy\core\include -Ic:\programdata\anaconda3\include -Ic:\programdata\anacon da3\include -I"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.14.26428\include" -I"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" -I"C:\Program Files (x86)\Windows Kits\10\include\ 10.0.17134.0\shared" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\cppwinrt" /EHsc /TpC:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m 1\Quantipy\quantipy/quicked/_quicked.cpp /Fobuild\temp.win-amd64-3.6\Release\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\quantipy/quicked/_quicked.obj" failed with exit status 2

----------------------------------------

Command "c:\programdata\anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'e xec'))" install --record C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-record-f3t4solb\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\JC5569~1.ESC\AppData\Local\Temp\pip-install-cucrh0m1\Quantipy\

jskalant commented 6 years ago

Hi!

It was my fault... I didnt create the right environment.

After using conda create -n envqp python=2.7 numpy==1.11.3 scipy==0.18.1 and demoting decorator down to version 4.0.2 everything worked.

Cheers,

JC

TuhinGh commented 5 years ago

Hi JC,

Hope you are doing well. Please could you help me a bit detail how to resolve the issue you have mentioned above?

@jskalant

Regards, Tuhin

Hi!

It was my fault... I didnt create the right environment.

After using conda create -n envqp python=2.7 numpy==1.11.3 scipy==0.18.1 and demoting decorator down to version 4.0.2 everything worked.

Cheers,

JC

Hi JC,

Hope you are doing well. Please could you help me a bit detail how to resolve the issue you have mentioned above?

@jskalant

Regards, Tuhin