Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error code 1120: not able to install pyk4a #215

Open
haotian21 opened this issue Aug 15, 2023 · 1 comment
Open

Error code 1120: not able to install pyk4a #215

haotian21 opened this issue Aug 15, 2023 · 1 comment

Comments

@haotian21
Copy link

Someone knows what's going on? It seems to relate to the linker. Any help is appreciated!

> `   creating build\temp.win32-cpython-311\Release\pyk4a
>       "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\HostX86\x86\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD "-IC:\Program Files\Azure Kinect SDK v1.4.1\sdk\include" -IC:\Users\Haotian\AppData\Local\Temp\pip-build-env-bxmiqvli\overlay\Lib\site-packages\numpy\core\include "-IC:\Program Files\Python311\include" "-IC:\Program Files\Python311\Include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\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\shared" /EHsc /Tppyk4a/pyk4a.cpp /Fobuild\temp.win32-cpython-311\Release\pyk4a/pyk4a.obj
>       pyk4a.cpp
>       C:\Users\Haotian\AppData\Local\Temp\pip-build-env-bxmiqvli\overlay\Lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
>       pyk4a/pyk4a.cpp(351): warning C4244: 'argument': conversion from '__int64' to 'int32_t', possible loss of data
>       pyk4a/pyk4a.cpp(370): warning C4244: 'argument': conversion from '__int64' to 'int32_t', possible loss of data
>       "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\HostX86\x86\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO "/LIBPATH:C:\Program Files\Azure Kinect SDK v1.4.1\sdk\windows-desktop\AMD64\release\lib" "/LIBPATH:C:\Program Files\Python311\libs" "/LIBPATH:C:\Program Files\Python311" "/LIBPATH:C:\Program Files\Python311\PCbuild\win32" "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\ATLMFC\lib\x86" "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\lib\x86" "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\ATLMFC\lib\x86" "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\lib\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22621.0\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22621.0\ucrt\x64" k4a.lib k4arecord.lib /EXPORT:PyInit_k4a_module build\temp.win32-cpython-311\Release\pyk4a/pyk4a.obj /OUT:build\lib.win32-cpython-311\k4a_module.cp311-win_amd64.pyd /IMPLIB:build\temp.win32-cpython-311\Release\pyk4a\k4a_module.cp311-win_amd64.lib
>          Creating library build\temp.win32-cpython-311\Release\pyk4a\k4a_module.cp311-win_amd64.lib and object build\temp.win32-cpython-311\Release\pyk4a\k4a_module.cp311-win_amd64.exp
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_image_get_exposure_usec
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_image_release
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_playback_get_next_imu_sample
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_capture_get_depth_image
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_image_get_buffer
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_transformation_create
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__PyImport_ImportModule
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_playback_get_next_capture
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_playback_get_recording_length_usec
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__PyEval_SaveThread
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_image_get_size
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__PyExc_RuntimeError
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_device_get_calibration
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_image_get_system_timestamp_nsec
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__Py_BuildValue
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp____acrt_iob_func
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__PyCapsule_GetContext
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_playback_get_raw_calibration
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_device_set_color_control
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_transformation_depth_image_to_point_cloud
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp___Py_NoneStruct
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_device_stop_imu
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__PyFloat_FromDouble
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__PyExc_AttributeError
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_capture_release
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__PyErr_SetString
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_device_stop_cameras
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_record_flush
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_transformation_destroy
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_image_get_device_timestamp_usec
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_calibration_get_from_raw
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_image_create
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__PyErr_Format
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_calibration_2d_to_3d
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_playback_seek_timestamp
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_device_start_imu
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp___Py_FalseStruct
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_capture_get_ir_image
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_image_create_from_buffer
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp___Py_Dealloc
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_device_get_imu_sample
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__PyCapsule_GetPointer
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp____stdio_common_vfprintf
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_transformation_depth_image_to_color_camera_custom
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_record_write_capture
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_calibration_3d_to_3d
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__PyList_New
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__PyModule_Create2
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__PyObject_GetAttrString
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__PyErr_NewException
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_image_get_format
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__PyCapsule_New
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_record_close
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_device_get_capture
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_device_get_color_control_capabilities
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_record_write_header
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_playback_get_previous_capture
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_device_open
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_device_get_serialnum
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_device_get_installed_count
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_record_create
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__PyCapsule_SetContext
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__free
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__PyCapsule_Type
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_playback_open
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_device_get_raw_calibration
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_transformation_color_image_to_depth_camera
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_calibration_3d_to_2d
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__PyExc_ImportError
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_capture_create
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp___Py_TrueStruct
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__PyModule_GetState
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_playback_get_record_configuration
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_device_close
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_capture_get_color_image
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__PyErr_Print
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_image_get_white_balance
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_playback_get_calibration
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_image_get_height_pixels
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_image_get_iso_speed
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_image_get_width_pixels
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_device_get_sync_jack
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_device_get_color_control
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_playback_close
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__PyArg_ParseTuple
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_device_start_cameras
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__PyEval_RestoreThread
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__malloc
>       pyk4a.obj : error LNK2001: unresolved external symbol __imp__k4a_transformation_depth_image_to_color_camera
>       MSVCRT.lib(dll_dllmain.obj) : error LNK2001: unresolved external symbol __initterm
>       MSVCRT.lib(dll_dllmain.obj) : error LNK2001: unresolved external symbol __initterm_e
>       MSVCRT.lib(gs_report.obj) : error LNK2001: unresolved external symbol __imp__UnhandledExceptionFilter@4
>       MSVCRT.lib(utility_desktop.obj) : error LNK2001: unresolved external symbol __imp__UnhandledExceptionFilter@4
>       MSVCRT.lib(gs_report.obj) : error LNK2001: unresolved external symbol __imp__SetUnhandledExceptionFilter@4
>       MSVCRT.lib(utility_desktop.obj) : error LNK2001: unresolved external symbol __imp__SetUnhandledExceptionFilter@4
>       MSVCRT.lib(gs_report.obj) : error LNK2001: unresolved external symbol __imp__GetCurrentProcess@0
>       MSVCRT.lib(gs_report.obj) : error LNK2001: unresolved external symbol __imp__TerminateProcess@8
>       MSVCRT.lib(gs_report.obj) : error LNK2001: unresolved external symbol __imp__IsProcessorFeaturePresent@4
>       MSVCRT.lib(utility_desktop.obj) : error LNK2001: unresolved external symbol __imp__IsProcessorFeaturePresent@4
>       MSVCRT.lib(cpu_disp.obj) : error LNK2001: unresolved external symbol __imp__IsProcessorFeaturePresent@4
>       MSVCRT.lib(gs_support.obj) : error LNK2001: unresolved external symbol __imp__QueryPerformanceCounter@4
>       MSVCRT.lib(gs_support.obj) : error LNK2001: unresolved external symbol __imp__GetCurrentProcessId@0
>       MSVCRT.lib(gs_support.obj) : error LNK2001: unresolved external symbol __imp__GetCurrentThreadId@0
>       MSVCRT.lib(gs_support.obj) : error LNK2001: unresolved external symbol __imp__GetSystemTimeAsFileTime@4
>       MSVCRT.lib(dll_dllmain_stub.obj) : error LNK2001: unresolved external symbol __imp__DisableThreadLibraryCalls@4
>       MSVCRT.lib(tncleanup.obj) : error LNK2001: unresolved external symbol __imp__InitializeSListHead@4
>       MSVCRT.lib(utility.obj) : error LNK2001: unresolved external symbol __seh_filter_dll
>       MSVCRT.lib(utility.obj) : error LNK2001: unresolved external symbol __configure_narrow_argv
>       MSVCRT.lib(utility.obj) : error LNK2001: unresolved external symbol __initialize_narrow_environment
>       MSVCRT.lib(utility.obj) : error LNK2001: unresolved external symbol __initialize_onexit_table
>       MSVCRT.lib(utility.obj) : error LNK2001: unresolved external symbol __register_onexit_function
>       MSVCRT.lib(utility.obj) : error LNK2001: unresolved external symbol __execute_onexit_table
>       MSVCRT.lib(utility.obj) : error LNK2001: unresolved external symbol __crt_atexit
>       MSVCRT.lib(utility.obj) : error LNK2001: unresolved external symbol __crt_at_quick_exit
>       MSVCRT.lib(utility.obj) : error LNK2001: unresolved external symbol __cexit
>       MSVCRT.lib(utility_desktop.obj) : error LNK2001: unresolved external symbol __imp__IsDebuggerPresent@0
>       MSVCRT.lib(utility_desktop.obj) : error LNK2001: unresolved external symbol __imp__GetStartupInfoW@4
>       MSVCRT.lib(utility_desktop.obj) : error LNK2001: unresolved external symbol __imp__GetModuleHandleW@4
>       MSVCRT.lib(utility_desktop.obj) : error LNK2001: unresolved external symbol _terminate
>       build\lib.win32-cpython-311\k4a_module.cp311-win_amd64.pyd : fatal error LNK1120: 115 unresolved externals
>       error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.37.32822\\bin\\HostX86\\x86\\link.exe' failed with exit code 1120
>       [end of output]
> 
>   note: This error originates from a subprocess, and is likely not a problem with pip.
>   ERROR: Failed building wheel for pyk4a
> Failed to build pyk4a
> ERROR: Could not build wheels for pyk4a, which is required to install pyproject.toml-based projects`
@haotian21 haotian21 changed the title error code 1120: not able to install pyk4a Error code 1120: not able to install pyk4a Aug 15, 2023
@xiawy20181116
Copy link

I have the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants