zcang / COMMOT

MIT License
97 stars 13 forks source link

Error installation rvlib #8

Closed anidj closed 1 year ago

anidj commented 1 year ago

Hi,

I have a problem to install commot. It is a problem related to rvlib. I am using Windows 10. This is the error I got:

`Building wheels for collected packages: rvlib Building wheel for rvlib (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [103 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-310 creating build\lib.win-amd64-cpython-310\rvlib copying rvlib\specials.py -> build\lib.win-amd64-cpython-310\rvlib copying rvlib\univariate.py -> build\lib.win-amd64-cpython-310\rvlib copying rvlib\version.py -> build\lib.win-amd64-cpython-310\rvlib copying rvlib__init__.py -> build\lib.win-amd64-cpython-310\rvlib running egg_info writing rvlib.egg-info\PKG-INFO writing dependency_links to rvlib.egg-info\dependency_links.txt writing requirements to rvlib.egg-info\requires.txt writing top-level names to rvlib.egg-info\top_level.txt reading manifest file 'rvlib.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE.txt' writing manifest file 'rvlib.egg-info\SOURCES.txt' copying rvlib\metadata.yaml -> build\lib.win-amd64-cpython-310\rvlib running build_ext generating cffi module 'build\temp.win-amd64-cpython-310\Release\rvlib._rmath_ffi.c' creating build\temp.win-amd64-cpython-310 creating build\temp.win-amd64-cpython-310\Release building 'rvlib._rmath_ffi' extension creating build\temp.win-amd64-cpython-310\Release\build creating build\temp.win-amd64-cpython-310\Release\build\temp.win-amd64-cpython-310 creating build\temp.win-amd64-cpython-310\Release\build\temp.win-amd64-cpython-310\Release creating build\temp.win-amd64-cpython-310\Release\src "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Isrc -Iinclude -IC:\Users\adjedi\Anaconda3\envs\commot-env\include -IC:\Users\adjedi\Anaconda3\envs\commot-env\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcbuild\temp.win-amd64-cpython-310\Release\rvlib._rmath_ffi.c /Fobuild\temp.win-amd64-cpython-310\Release\build\temp.win-amd64-cpython-310\Release\rvlib._rmath_ffi.obj -DMATHLIB_STANDALONE -std=c99 cl : Command line warning D9002 : ignoring unknown option '-std=c99' rvlib._rmath_ffi.c include\Rconfig.h(16): warning C4005: 'HAVE_HYPOT': macro redefinition C:\Users\adjedi\Anaconda3\envs\commot-env\include\pyconfig.h(61): note: see previous definition of 'HAVE_HYPOT' "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Isrc -Iinclude -IC:\Users\adjedi\Anaconda3\envs\commot-env\include -IC:\Users\adjedi\Anaconda3\envs\commot-env\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcsrc\bd0.c /Fobuild\temp.win-amd64-cpython-310\Release\src\bd0.obj -DMATHLIB_STANDALONE -std=c99 cl : Command line warning D9002 : ignoring unknown option '-std=c99' bd0.c C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\include\stdarg.h(13): warning C4068: unknown pragma 'Rf_warning' C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\include\stdarg.h(14): warning C4068: unknown pragma 'Rf_warning' C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\include\stdarg.h(29): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_stdio_config.h(12): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_stdio_config.h(13): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_stdio_config.h(131): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_wstdio.h(15): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_wstdio.h(16): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_wstdio.h(1130): warning C4996: '_vsnwprintf_l': This function or variable may be unsafe. Consider using _vsnwprintf_s_l instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_wstdio.h(1640): warning C4996: '_vsnwprintf_l': This function or variable may be unsafe. Consider using _vsnwprintf_s_l instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_wstdio.h(1662): warning C4996: '_vsnwprintf_l': This function or variable may be unsafe. Consider using _vsnwprintf_s_l instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_wstdio.h(1797): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_wstdio.h(1798): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_wstdio.h(1854): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_wstdio.h(2094): warning C4996: '_vsnwscanf_l': This function or variable may be unsafe. Consider using _vsnwscanf_s_l instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_wstdio.h(2116): warning C4996: '_vsnwscanf_l': This function or variable may be unsafe. Consider using _vsnwscanf_s_l instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_wstdio.h(2171): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(15): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(16): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(1412): warning C4996: '_vsnprintf_l': This function or variable may be unsafe. Consider using _vsnprintf_s_l instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(1459): warning C4996: '_vsnprintf_l': This function or variable may be unsafe. Consider using _vsnprintf_s_l instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(1474): warning C4996: '_vsnprintf_l': This function or variable may be unsafe. Consider using _vsnprintf_s_l instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(1755): warning C4996: '_vsprintf_l': This function or variable may be unsafe. Consider using _vsprintf_s_l instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(1776): warning C4996: '_vsprintf_l': This function or variable may be unsafe. Consider using _vsprintf_s_l instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(1899): warning C4996: '_vsnprintf_l': This function or variable may be unsafe. Consider using _vsnprintf_s_l instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(2192): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(2193): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(2216): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(2300): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(2301): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(2398): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(2447): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_malloc.h(13): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_malloc.h(14): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_malloc.h(234): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_search.h(16): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_search.h(17): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_search.h(218): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_wstdlib.h(13): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_wstdlib.h(14): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_wstdlib.h(481): warning C4068: unknown pragma 'Rf_warning' C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\include\limits.h(13): warning C4068: unknown pragma 'Rf_warning' C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\include\limits.h(14): warning C4068: unknown pragma 'Rf_warning' C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\include\limits.h(78): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(18): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(19): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(308): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(309): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(343): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(1217): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(1218): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(1231): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(1289): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(1290): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(1292): warning C4141: 'deprecated': used more than once C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(1300): warning C4141: 'deprecated': used more than once C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(1308): warning C4141: 'deprecated': used more than once C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(1315): warning C4141: 'deprecated': used more than once C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(1322): warning C4141: 'deprecated': used more than once C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(1337): warning C4141: 'deprecated': used more than once C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(1351): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(1361): warning C4068: unknown pragma 'Rf_warning' src\bd0.c(42): warning C4068: unknown pragma 'Rf_warning' src\bd0.c(42): warning C4068: unknown pragma 'Rf_warning' src\bd0.c(42): error C2124: divide or mod by zero error: command 'C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe' failed with exit code 2 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for rvlib Running setup.py clean for rvlib Failed to build rvlib Installing collected packages: rvlib, requests-futures, quantecon, python-Levenshtein, pygsp, pot, pandas, miniful, matplotlib, inequality, cligj, click-plugins, botocore, aws-requests-auth, statsmodels, seaborn, s3transfer, rasterio, pynndescent, mapclassify, libpysal, fst-pso, fiona, anndata, umap-learn, spreg, rasterstats, pyfume, pointpats, geopandas, esda, boto3, tobler, spvcm, spglm, spaghetti, scanpy, quilt3, momepy, giddy, FuzzyTM, access, spopt, splot, spint, segregation, mgwr, gensim, pysal, karateclub, commot Running setup.py install for rvlib ... error error: subprocess-exited-with-error

× Running setup.py install for rvlib did not run successfully. │ exit code: 1 ╰─> [105 lines of output] running install C:\Users\adjedi\Anaconda3\envs\commot-env\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_py creating build creating build\lib.win-amd64-cpython-310 creating build\lib.win-amd64-cpython-310\rvlib copying rvlib\specials.py -> build\lib.win-amd64-cpython-310\rvlib copying rvlib\univariate.py -> build\lib.win-amd64-cpython-310\rvlib copying rvlib\version.py -> build\lib.win-amd64-cpython-310\rvlib copying rvlib__init__.py -> build\lib.win-amd64-cpython-310\rvlib running egg_info writing rvlib.egg-info\PKG-INFO writing dependency_links to rvlib.egg-info\dependency_links.txt writing requirements to rvlib.egg-info\requires.txt writing top-level names to rvlib.egg-info\top_level.txt reading manifest file 'rvlib.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE.txt' writing manifest file 'rvlib.egg-info\SOURCES.txt' copying rvlib\metadata.yaml -> build\lib.win-amd64-cpython-310\rvlib running build_ext generating cffi module 'build\temp.win-amd64-cpython-310\Release\rvlib._rmath_ffi.c' creating build\temp.win-amd64-cpython-310 creating build\temp.win-amd64-cpython-310\Release building 'rvlib._rmath_ffi' extension creating build\temp.win-amd64-cpython-310\Release\build creating build\temp.win-amd64-cpython-310\Release\build\temp.win-amd64-cpython-310 creating build\temp.win-amd64-cpython-310\Release\build\temp.win-amd64-cpython-310\Release creating build\temp.win-amd64-cpython-310\Release\src "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Isrc -Iinclude -IC:\Users\adjedi\Anaconda3\envs\commot-env\include -IC:\Users\adjedi\Anaconda3\envs\commot-env\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcbuild\temp.win-amd64-cpython-310\Release\rvlib._rmath_ffi.c /Fobuild\temp.win-amd64-cpython-310\Release\build\temp.win-amd64-cpython-310\Release\rvlib._rmath_ffi.obj -DMATHLIB_STANDALONE -std=c99 cl : Command line warning D9002 : ignoring unknown option '-std=c99' rvlib._rmath_ffi.c include\Rconfig.h(16): warning C4005: 'HAVE_HYPOT': macro redefinition C:\Users\adjedi\Anaconda3\envs\commot-env\include\pyconfig.h(61): note: see previous definition of 'HAVE_HYPOT' "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Isrc -Iinclude -IC:\Users\adjedi\Anaconda3\envs\commot-env\include -IC:\Users\adjedi\Anaconda3\envs\commot-env\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcsrc\bd0.c /Fobuild\temp.win-amd64-cpython-310\Release\src\bd0.obj -DMATHLIB_STANDALONE -std=c99 cl : Command line warning D9002 : ignoring unknown option '-std=c99' bd0.c C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\include\stdarg.h(13): warning C4068: unknown pragma 'Rf_warning' C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\include\stdarg.h(14): warning C4068: unknown pragma 'Rf_warning' C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\include\stdarg.h(29): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_stdio_config.h(12): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_stdio_config.h(13): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_stdio_config.h(131): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_wstdio.h(15): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_wstdio.h(16): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_wstdio.h(1130): warning C4996: '_vsnwprintf_l': This function or variable may be unsafe. Consider using _vsnwprintf_s_l instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_wstdio.h(1640): warning C4996: '_vsnwprintf_l': This function or variable may be unsafe. Consider using _vsnwprintf_s_l instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_wstdio.h(1662): warning C4996: '_vsnwprintf_l': This function or variable may be unsafe. Consider using _vsnwprintf_s_l instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_wstdio.h(1797): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_wstdio.h(1798): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_wstdio.h(1854): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_wstdio.h(2094): warning C4996: '_vsnwscanf_l': This function or variable may be unsafe. Consider using _vsnwscanf_s_l instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_wstdio.h(2116): warning C4996: '_vsnwscanf_l': This function or variable may be unsafe. Consider using _vsnwscanf_s_l instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_wstdio.h(2171): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(15): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(16): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(1412): warning C4996: '_vsnprintf_l': This function or variable may be unsafe. Consider using _vsnprintf_s_l instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(1459): warning C4996: '_vsnprintf_l': This function or variable may be unsafe. Consider using _vsnprintf_s_l instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(1474): warning C4996: '_vsnprintf_l': This function or variable may be unsafe. Consider using _vsnprintf_s_l instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(1755): warning C4996: '_vsprintf_l': This function or variable may be unsafe. Consider using _vsprintf_s_l instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(1776): warning C4996: '_vsprintf_l': This function or variable may be unsafe. Consider using _vsprintf_s_l instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(1899): warning C4996: '_vsnprintf_l': This function or variable may be unsafe. Consider using _vsnprintf_s_l instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(2192): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(2193): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(2216): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(2300): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(2301): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(2398): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdio.h(2447): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_malloc.h(13): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_malloc.h(14): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_malloc.h(234): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_search.h(16): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_search.h(17): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_search.h(218): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_wstdlib.h(13): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_wstdlib.h(14): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\corecrt_wstdlib.h(481): warning C4068: unknown pragma 'Rf_warning' C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\include\limits.h(13): warning C4068: unknown pragma 'Rf_warning' C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\include\limits.h(14): warning C4068: unknown pragma 'Rf_warning' C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\include\limits.h(78): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(18): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(19): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(308): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(309): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(343): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(1217): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(1218): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(1231): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(1289): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(1290): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(1292): warning C4141: 'deprecated': used more than once C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(1300): warning C4141: 'deprecated': used more than once C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(1308): warning C4141: 'deprecated': used more than once C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(1315): warning C4141: 'deprecated': used more than once C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(1322): warning C4141: 'deprecated': used more than once C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(1337): warning C4141: 'deprecated': used more than once C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(1351): warning C4068: unknown pragma 'Rf_warning' C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\stdlib.h(1361): warning C4068: unknown pragma 'Rf_warning' src\bd0.c(42): warning C4068: unknown pragma 'Rf_warning' src\bd0.c(42): warning C4068: unknown pragma 'Rf_warning' src\bd0.c(42): error C2124: divide or mod by zero error: command 'C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe' failed with exit code 2 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure

× Encountered error while trying to install package. ╰─> rvlib

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.`

Do you have any ideas to solve it ?

Thanks a lot,

Best

zcang commented 1 year ago

Hi, this seems to be a common issue with rvlib on Windows. These discussions might help: https://github.com/QuantEcon/rvlib/issues/29