pyuv: Install fail (another) on python 3.6 windows 10

> pip3 install pyuv
Collecting pyuv
  Using cached pyuv-1.3.0.tar.gz
Installing collected packages: pyuv
  Running setup.py install for pyuv ... error
    Complete output from command c:\python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Taverius\\AppData\\Local\\Temp\\pip-build-nocsm8qv\\pyuv\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Taverius\AppData\Local\Temp\pip-v0oqpbne-record\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.6
    creating build\lib.win-amd64-3.6\pyuv
    copying pyuv\_version.py -> build\lib.win-amd64-3.6\pyuv
    copying pyuv\__init__.py -> build\lib.win-amd64-3.6\pyuv
    running build_ext
    libuv needs to be compiled.
    Building libuv...
    Using "C:\Python27\python.exe" to build libuv...
    building 'pyuv._cpyuv' extension
    creating build\temp.win-amd64-3.6
    creating build\temp.win-amd64-3.6\Release
    creating build\temp.win-amd64-3.6\Release\src
    C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWIN32=1 -Ic:\python36\include -Ic:\python36\include -Ideps\libuv\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\winrt" /Tcsrc/pyuv.c /Fobuild\temp.win-amd64-3.6\Release\src/pyuv.obj
    pyuv.c
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\loop.c(114): warning C4311: 'type cast': pointer truncation from 'uv_work_t *' to 'long'
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\loop.c(136): warning C4311: 'type cast': pointer truncation from 'uv_work_t *' to 'long'
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\async.c(10): warning C4311: 'type cast': pointer truncation from 'uv_async_t *' to 'long'
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\timer.c(10): warning C4311: 'type cast': pointer truncation from 'uv_timer_t *' to 'long'
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\prepare.c(10): warning C4311: 'type cast': pointer truncation from 'uv_prepare_t *' to 'long'
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\idle.c(10): warning C4311: 'type cast': pointer truncation from 'uv_idle_t *' to 'long'
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\check.c(10): warning C4311: 'type cast': pointer truncation from 'uv_check_t *' to 'long'
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\signal.c(11): warning C4311: 'type cast': pointer truncation from 'uv_signal_t *' to 'long'
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\stream.c(28): warning C4311: 'type cast': pointer truncation from 'uv_shutdown_t *' to 'long'
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\stream.c(113): warning C4311: 'type cast': pointer truncation from 'uv_write_t *' to 'long'
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\stream.c(269): warning C4244: 'function': conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\stream.c(312): warning C4244: 'function': conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\stream.c(377): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\stream.c(387): warning C4244: '=': conversion from 'Py_ssize_t' to 'ULONG', possible loss of data
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\stream.c(399): warning C4244: 'function': conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\stream.c(401): warning C4244: 'function': conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\stream.c(475): warning C4311: 'type cast': pointer truncation from 'uv_os_fd_t' to 'long'
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\pipe.c(10): warning C4311: 'type cast': pointer truncation from 'uv_pipe_t *' to 'long'
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\pipe.c(42): warning C4311: 'type cast': pointer truncation from 'uv_pipe_t *' to 'long'
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\tcp.c(11): warning C4311: 'type cast': pointer truncation from 'uv_tcp_t *' to 'long'
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\tcp.c(43): warning C4311: 'type cast': pointer truncation from 'uv_tcp_t *' to 'long'
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\udp.c(22): warning C4311: 'type cast': pointer truncation from 'uv_udp_t *' to 'long'
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\udp.c(81): warning C4311: 'type cast': pointer truncation from 'uv_udp_send_t *' to 'long'
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\udp.c(82): warning C4311: 'type cast': pointer truncation from 'uv_udp_t *' to 'long'
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\udp.c(230): warning C4244: 'function': conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\udp.c(270): warning C4244: 'function': conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\udp.c(329): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\udp.c(339): warning C4244: '=': conversion from 'Py_ssize_t' to 'ULONG', possible loss of data
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\udp.c(345): warning C4244: 'function': conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\udp.c(611): warning C4311: 'type cast': pointer truncation from 'uv_os_fd_t' to 'long'
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\poll.c(11): warning C4311: 'type cast': pointer truncation from 'uv_poll_t *' to 'long'
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\poll.c(113): warning C4311: 'type cast': pointer truncation from 'uv_os_fd_t' to 'long'
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\fs.c(65): warning C4311: 'type cast': pointer truncation from 'uv_fs_t *' to 'long'
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\fs.c(1058): warning C4244: 'function': conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\fs.c(1582): warning C4311: 'type cast': pointer truncation from 'uv_fs_event_t *' to 'long'
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\fs.c(1836): warning C4311: 'type cast': pointer truncation from 'uv_fs_poll_t *' to 'long'
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\process.c(185): warning C4311: 'type cast': pointer truncation from 'uv_process_t *' to 'long'
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\process.c(187): warning C4244: 'function': conversion from 'int64_t' to 'long', possible loss of data
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\dns.c(57): warning C4311: 'type cast': pointer truncation from 'uv_getaddrinfo_t *' to 'long'
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\dns.c(113): warning C4311: 'type cast': pointer truncation from 'uv_getnameinfo_t *' to 'long'
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\util.c(220): warning C4244: 'function': conversion from 'uint64_t' to 'long', possible loss of data
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\util.c(221): warning C4244: 'function': conversion from 'uint64_t' to 'long', possible loss of data
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\util.c(222): warning C4244: 'function': conversion from 'uint64_t' to 'long', possible loss of data
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\util.c(223): warning C4244: 'function': conversion from 'uint64_t' to 'long', possible loss of data
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\util.c(224): warning C4244: 'function': conversion from 'uint64_t' to 'long', possible loss of data
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\util.c(225): warning C4244: 'function': conversion from 'uint64_t' to 'long', possible loss of data
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\util.c(226): warning C4244: 'function': conversion from 'uint64_t' to 'long', possible loss of data
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\util.c(227): warning C4244: 'function': conversion from 'uint64_t' to 'long', possible loss of data
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\util.c(228): warning C4244: 'function': conversion from 'uint64_t' to 'long', possible loss of data
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\util.c(229): warning C4244: 'function': conversion from 'uint64_t' to 'long', possible loss of data
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\util.c(230): warning C4244: 'function': conversion from 'uint64_t' to 'long', possible loss of data
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\util.c(231): warning C4244: 'function': conversion from 'uint64_t' to 'long', possible loss of data
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\util.c(232): warning C4244: 'function': conversion from 'uint64_t' to 'long', possible loss of data
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\util.c(233): warning C4244: 'function': conversion from 'uint64_t' to 'long', possible loss of data
    c:\users\taverius\appdata\local\temp\pip-build-nocsm8qv\pyuv\src\util.c(313): warning C4311: 'type cast': pointer truncation from 'uv_poll_t *' to 'long'
    C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\python36\libs /LIBPATH:c:\python36\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.15063.0\ucrt\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.15063.0\um\x64" advapi32.lib iphlpapi.lib psapi.lib shell32.lib user32.lib userenv.lib ws2_32.lib /EXPORT:PyInit__cpyuv build\temp.win-amd64-3.6\Release\src/pyuv.obj deps\libuv\Release\lib\libuv.lib /OUT:build\lib.win-amd64-3.6\pyuv\_cpyuv.cp36-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.6\Release\src\_cpyuv.cp36-win_amd64.lib /NODEFAULTLIB:libcmt /LTCG
    pyuv.obj : warning LNK4197: export 'PyInit__cpyuv' specified multiple times; using first specification
       Creating library build\temp.win-amd64-3.6\Release\src\_cpyuv.cp36-win_amd64.lib and object build\temp.win-amd64-3.6\Release\src\_cpyuv.cp36-win_amd64.exp
    Generating code
    Finished generating code
    LINK : fatal error LNK1158: cannot run 'rc.exe'
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1158

Assuming the env was setup correctly it should be added to the paths … rc is present in the \bin associated with the SDK /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.15063.0\ its linking to - C:\Program Files (x86)\Windows Kits\10\bin\10.0.15063.0\x64 so it looks like a configuration error.

Any ideas?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 25

Commits related to this issue

Most upvoted comments

@schlamar still there, but I figured out the issue, I think.

Because I installed VCTools 2017 first, and then VCTools 2015 after, the main part of the SDK is in, for example, in C:\Program Files (x86)\Windows Kits\10\bin\10.0.15063.0\x86\, not in C:\Program Files (x86)\Windows Kits\10\bin\x86\.

The stuff not bin\<version>\arch seems to be just the difference, so you can overlay it over the base version.

If I understand what M$ is trying to do here.

I could be wrong, but the versioned directory being the base, and the base directory being the version overlay sounds like typical Microsoft to me.

I guess if I want it to work without fault I need to pull the both tools out, then reinstall starting from 2015.

I’ll get around to that in a little and report back.