Closed QiuJunning closed 2 years ago
Hi, did you try the basic pip install pyk4a
?
Edit: Exit status 1104 see causes here: https://docs.microsoft.com/en-us/cpp/error-messages/tool-errors/linker-tools-error-lnk1104
Hi, did you try the basic
pip install pyk4a
?Edit: Exit status 1104 see causes here: https://docs.microsoft.com/en-us/cpp/error-messages/tool-errors/linker-tools-error-lnk1104
It will return this error,but i have installed setuptools==58.1.0.
ERROR: Exception:
Traceback (most recent call last):
File "D:\Anaconda\envs\pykinz\lib\site-packages\pip_internal\cli\base_command.py", line 173, in _main
status = self.run(options, args)
File "D:\Anaconda\envs\pykinz\lib\site-packages\pip_internal\cli\req_command.py", line 203, in wrapper
return func(self, options, args)
File "D:\Anaconda\envs\pykinz\lib\site-packages\pip_internal\commands\install.py", line 315, in run
requirement_set = resolver.resolve(
File "D:\Anaconda\envs\pykinz\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 94, in resolve
result = self._result = resolver.resolve(
File "D:\Anaconda\envs\pykinz\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 472, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "D:\Anaconda\envs\pykinz\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 341, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File "D:\Anaconda\envs\pykinz\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 172, in _add_to_criteria
if not criterion.candidates:
File "D:\Anaconda\envs\pykinz\lib\site-packages\pip_vendor\resolvelib\structs.py", line 151, in bool
return bool(self._sequence)
File "D:\Anaconda\envs\pykinz\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 140, in bool
return any(self)
File "D:\Anaconda\envs\pykinz\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 128, in
Hi, did you try the basic
pip install pyk4a
?Edit: Exit status 1104 see causes here: https://docs.microsoft.com/en-us/cpp/error-messages/tool-errors/linker-tools-error-lnk1104
Hi, I ran pip install pyk4a --no-use-pep517 and it looks correct,but when I ran viewer.py , it made errors again.
my install return is as follow: Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting pyk4a Using cached https://pypi.tuna.tsinghua.edu.cn/packages/cb/62/0888bf0fe47922d1033e12fdf966626c68b92abaf35b3770b994f5882bd9/pyk4a-1.3.0.tar.gz (23 kB) Requirement already satisfied: numpy in d:\anaconda\envs\pykinz\lib\site-packages (from pyk4a) (1.21.2) Requirement already satisfied: python_version>="3.4" in d:\anaconda\envs\pykinz\lib\site-packages (from pyk4a) (0.0.2) Building wheels for collected packages: pyk4a Building wheel for pyk4a (setup.py) ... done Created wheel for pyk4a: filename=pyk4a-1.3.0-cp38-cp38-win_amd64.whl size=33419 sha256=a31d0517b9efff3c2a5a443622b8f4cec3274ef219a014457ebff825f4ae2dc8 Stored in directory: c:\users\小q\appdata\local\pip\cache\wheels\4e\7f\db\9a9fbb5670b41c70e88d814cad1866476df79586eb1e575d0a Successfully built pyk4a Installing collected packages: pyk4a Successfully installed pyk4a-1.3.0
my error in running viewer.py is as follow:
Traceback (most recent call last):
File "D:\Anaconda\envs\pykinz\lib\site-packages\pyk4a\module.py", line 5, in
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "viewer.py", line 4, in k4a.dll
using the environment variable K4A_DLL_DIR
. Also make sure pyk4a was properly built.
The problem is that the kinect azure k4a.dll file is not found. See other issues related to k4a.dll
or DLL load failed while importing k4a_module
or Cannot import k4a_module
. There are many of them.
You seem to be using disk D:\. The automatic k4a.dll finder only looks in C:\. This means you might not have installed the kinect SDK library in the C:\ folder. If that is the case you have to specify the SDK path during the install.
The problem is that the kinect azure k4a.dll file is not found. See other issues related to
k4a.dll
orDLL load failed while importing k4a_module
orCannot import k4a_module
. There are many of them.You seem to be using disk D:. The automatic k4a.dll finder only looks in C:. This means you might not have installed the kinect SDK library in the C:\ folder. If that is the case you have to specify the SDK path during the install.
I am sorry to bother you.I have checked all the answers about k4a.dll but it doesn't work.And I have installed the kinect SDK library in the C:\ folder:
Hi! I run pip install pyk4a --no-use-pep517 --global-option=build_ext --global-option="-IC:\Program Files\Azure Kinect SDK v1.4.1\sdk\include" --global-option="-LC:\Program Files\Azure Kinect SDK v1.4.1\sdk\windows-desktop\amd64\release\lib"" But errors have occurred, I hope you can help me solve this problem. Thank you. And the error is as follows:
ERROR: Command errored out with exit status 1: command: 'D:\Anaconda\envs\pykinz\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\小Q\AppData\Local\Temp\pip-install-yjzlj7wt\pyk4a_d65eb862730e4846bcd089d1253096d6\setup.py'"'"'; file='"'"'C:\Users\小Q\AppData\Local\Temp\pip-install-yjzlj7wt\pyk4a_d65eb862730e4846bcd089d1253096d6\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' build_ext '-IC:\Program Files\Azure Kinect SDK v1.4.1\sdk\include' '-LC:\Program Files\Azure Kinect SDK v1.4.1\sdk\windows-desktop\amd64\release\lib"' install --record 'C:\Users\小Q\AppData\Local\Temp\pip-record-1dr4lq_t\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\Anaconda\envs\pykinz\Include\pyk4a' cwd: C:\Users\小Q\AppData\Local\Temp\pip-install-yjzlj7wt\pyk4a_d65eb862730e4846bcd089d1253096d6\ Complete output (20 lines): Automatically detected kinect SDK. Adding include dir: C:\Program Files\Azure Kinect SDK v1.4.1\sdk\include and library dir C:\Program Files\Azure Kinect SDK v1.4.1\sdk\windows-desktop\AMD64\release\lib. D:\Anaconda\envs\pykinz\lib\site-packages\setuptools\dist.py:717: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( running build_ext building 'k4a_module' extension creating build creating build\temp.win-amd64-3.8 creating build\temp.win-amd64-3.8\Release creating build\temp.win-amd64-3.8\Release\pyk4a D:\visual studio\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-IC:\Program Files\Azure Kinect SDK v1.4.1\sdk\include" -ID:\Anaconda\envs\pykinz\lib\site-packages\numpy\core\include "-IC:\Program Files\Azure Kinect SDK v1.4.1\sdk\include" -ID:\Anaconda\envs\pykinz\include -ID:\Anaconda\envs\pykinz\include "-ID:\visual studio\VC\Tools\MSVC\14.29.30037\ATLMFC\include" "-ID:\visual studio\VC\Tools\MSVC\14.29.30037\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-ID:\Windows Kits\10\include\10.0.19041.0\ucrt" "-ID:\Windows Kits\10\include\10.0.19041.0\shared" "-ID:\Windows Kits\10\include\10.0.19041.0\um" "-ID:\Windows Kits\10\include\10.0.19041.0\winrt" "-ID:\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tppyk4a/pyk4a.cpp /Fobuild\temp.win-amd64-3.8\Release\pyk4a/pyk4a.obj pyk4a.cpp D:\Anaconda\envs\pykinz\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: “参数”: 从“__int64”转换到“int32_t”,可能丢失数据 pyk4a/pyk4a.cpp(370): warning C4244: “参数”: 从“__int64”转换到“int32_t”,可能丢失数据 pyk4a/pyk4a.cpp(546): warning C4244: “初始化”: 从“npy_intp”转换到“int”,可能丢失数据 pyk4a/pyk4a.cpp(547): warning C4244: “初始化”: 从“npy_intp”转换到“int”,可能丢失数据 creating C:\Users\小Q\AppData\Local\Temp\pip-install-yjzlj7wt\pyk4a_d65eb862730e4846bcd089d1253096d6\build\lib.win-amd64-3.8 D:\visual studio\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\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\Azure Kinect SDK v1.4.1\sdk\windows-desktop\amd64\release\lib"" /LIBPATH:D:\Anaconda\envs\pykinz\libs /LIBPATH:D:\Anaconda\envs\pykinz\PCbuild\amd64 "/LIBPATH:D:\visual studio\VC\Tools\MSVC\14.29.30037\ATLMFC\lib\x64" "/LIBPATH:D:\visual studio\VC\Tools\MSVC\14.29.30037\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "/LIBPATH:D:\Windows Kits\10\lib\10.0.19041.0\ucrt\x64" "/LIBPATH:D:\Windows Kits\10\lib\10.0.19041.0\um\x64" k4a.lib k4arecord.lib /EXPORT:PyInit_k4a_module build\temp.win-amd64-3.8\Release\pyk4a/pyk4a.obj /OUT:build\lib.win-amd64-3.8\k4a_module.cp38-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.8\Release\pyk4a\k4a_module.cp38-win_amd64.lib LINK : fatal error LNK1104: 无法打开文件“studio\VC\Tools\MSVC\14.29.30037\ATLMFC\lib\x64 \LIBPATH:D:\visual.obj” error: command 'D:\visual studio\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\link.exe' failed with exit status 1104
ERROR: Command errored out with exit status 1: 'D:\Anaconda\envs\pykinz\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\小Q\AppData\Local\Temp\pip-install-yjzlj7wt\pyk4a_d65eb862730e4846bcd089d1253096d6\setup.py'"'"'; file='"'"'C:\Users\小Q\AppData\Local\Temp\pip-install-yjzlj7wt\pyk4a_d65eb862730e4846bcd089d1253096d6\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' build_ext '-IC:\Program Files\Azure Kinect SDK v1.4.1\sdk\include' '-LC:\Program Files\Azure Kinect SDK v1.4.1\sdk\windows-desktop\amd64\release\lib"' install --record 'C:\Users\小Q\AppData\Local\Temp\pip-record-1dr4lq_t\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\Anaconda\envs\pykinz\Include\pyk4a' Check the logs for full command output.