You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While running pip install tpm2-pytss for Windows, the following error is generated at runtime:
Building wheels for collected packages: tpm2-pytss
Building wheel for tpm2-pytss (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for tpm2-pytss (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [50 lines of output]
adding path: C:\Users(user)\AppData\Local\Temp\pip-install-wly8fltl\tpm2-pytss_a353bbd08c85497faad3a2f9981bb1d8\scripts
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-312
creating build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\constants.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\cryptography.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\encoding.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\ESAPI.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\FAPI.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\fapi_info.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\policy.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\TCTI.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\TCTILdr.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\TCTISPIHelper.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\TSS2_Exception.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\tsskey.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\types.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\utils.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss_init_.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
creating build\lib.win-amd64-cpython-312\tpm2_pytss\internal
copying src\tpm2_pytss\internal\crypto.py -> build\lib.win-amd64-cpython-312\tpm2_pytss\internal
copying src\tpm2_pytss\internal\templates.py -> build\lib.win-amd64-cpython-312\tpm2_pytss\internal
copying src\tpm2_pytss\internal\utils.py -> build\lib.win-amd64-cpython-312\tpm2_pytss\internal
copying src\tpm2_pytss\internal_init_.py -> build\lib.win-amd64-cpython-312\tpm2_pytss\internal
running build_ext
generating cffi module 'build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c'
creating build\temp.win-amd64-cpython-312
creating build\temp.win-amd64-cpython-312\Release
building 'tpm2_pytss._libtpm2_pytss' extension
creating build\temp.win-amd64-cpython-312\Release\build
creating build\temp.win-amd64-cpython-312\Release\build\temp.win-amd64-cpython-312
creating build\temp.win-amd64-cpython-312\Release\build\temp.win-amd64-cpython-312\Release
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:/usr/local/include -IC:/usr/local/include/tss2 -I -I/tss2 -I/tss -IC:\Users(user)\AppData\Local\Programs\Python\Python312\include -IC:\Users(user)\AppData\Local\Programs\Python\Python312\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\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\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" /Tcbuild\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c /Fobuild\temp.win-amd64-cpython-312\Release\build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.obj
tpm2_pytss._libtpm2_pytss.c
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(61686): error C2223: left of '->fd' must point to struct/union
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(61687): error C2223: left of '->events' must point to struct/union
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(61688): error C2223: left of '->revents' must point to struct/union
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(64641): error C2223: left of '->fd' must point to struct/union
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(64642): error C2223: left of '->fd' must point to struct/union
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(64644): error C2223: left of '->events' must point to struct/union
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(64645): error C2223: left of '->events' must point to struct/union
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(64647): error C2223: left of '->revents' must point to struct/union
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(64648): error C2223: left of '->revents' must point to struct/union
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(64643): warning C4047: 'initializing': 'size_t' differs in levels of indirection from '_cffi_opcode_t'
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(64646): warning C4047: 'initializing': 'size_t' differs in levels of indirection from '_cffi_opcode_t'
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(64649): warning C4047: 'initializing': 'size_t' differs in levels of indirection from '_cffi_opcode_t'
error: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\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 tpm2-pytss
Failed to build tpm2-pytss
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (tpm2-pytss)
The text was updated successfully, but these errors were encountered:
While running pip install tpm2-pytss for Windows, the following error is generated at runtime:
Building wheels for collected packages: tpm2-pytss
Building wheel for tpm2-pytss (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for tpm2-pytss (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [50 lines of output]
adding path: C:\Users(user)\AppData\Local\Temp\pip-install-wly8fltl\tpm2-pytss_a353bbd08c85497faad3a2f9981bb1d8\scripts
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-312
creating build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\constants.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\cryptography.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\encoding.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\ESAPI.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\FAPI.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\fapi_info.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\policy.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\TCTI.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\TCTILdr.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\TCTISPIHelper.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\TSS2_Exception.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\tsskey.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\types.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss\utils.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
copying src\tpm2_pytss_init_.py -> build\lib.win-amd64-cpython-312\tpm2_pytss
creating build\lib.win-amd64-cpython-312\tpm2_pytss\internal
copying src\tpm2_pytss\internal\crypto.py -> build\lib.win-amd64-cpython-312\tpm2_pytss\internal
copying src\tpm2_pytss\internal\templates.py -> build\lib.win-amd64-cpython-312\tpm2_pytss\internal
copying src\tpm2_pytss\internal\utils.py -> build\lib.win-amd64-cpython-312\tpm2_pytss\internal
copying src\tpm2_pytss\internal_init_.py -> build\lib.win-amd64-cpython-312\tpm2_pytss\internal
running build_ext
generating cffi module 'build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c'
creating build\temp.win-amd64-cpython-312
creating build\temp.win-amd64-cpython-312\Release
building 'tpm2_pytss._libtpm2_pytss' extension
creating build\temp.win-amd64-cpython-312\Release\build
creating build\temp.win-amd64-cpython-312\Release\build\temp.win-amd64-cpython-312
creating build\temp.win-amd64-cpython-312\Release\build\temp.win-amd64-cpython-312\Release
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:/usr/local/include -IC:/usr/local/include/tss2 -I -I/tss2 -I/tss -IC:\Users(user)\AppData\Local\Programs\Python\Python312\include -IC:\Users(user)\AppData\Local\Programs\Python\Python312\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\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\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" /Tcbuild\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c /Fobuild\temp.win-amd64-cpython-312\Release\build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.obj
tpm2_pytss._libtpm2_pytss.c
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(61686): error C2223: left of '->fd' must point to struct/union
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(61687): error C2223: left of '->events' must point to struct/union
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(61688): error C2223: left of '->revents' must point to struct/union
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(64641): error C2223: left of '->fd' must point to struct/union
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(64642): error C2223: left of '->fd' must point to struct/union
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(64644): error C2223: left of '->events' must point to struct/union
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(64645): error C2223: left of '->events' must point to struct/union
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(64647): error C2223: left of '->revents' must point to struct/union
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(64648): error C2223: left of '->revents' must point to struct/union
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(64643): warning C4047: 'initializing': 'size_t' differs in levels of indirection from '_cffi_opcode_t'
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(64646): warning C4047: 'initializing': 'size_t' differs in levels of indirection from '_cffi_opcode_t'
build\temp.win-amd64-cpython-312\Release\tpm2_pytss._libtpm2_pytss.c(64649): warning C4047: 'initializing': 'size_t' differs in levels of indirection from '_cffi_opcode_t'
error: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\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 tpm2-pytss
Failed to build tpm2-pytss
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (tpm2-pytss)
The text was updated successfully, but these errors were encountered: