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

tss2-esapi #2866

Open
junmo-weiyi opened this issue Jul 15, 2024 · 1 comment
Open

tss2-esapi #2866

junmo-weiyi opened this issue Jul 15, 2024 · 1 comment

Comments

@junmo-weiyi
Copy link

junmo-weiyi commented Jul 15, 2024

Hi, tss team:
I'm a freshman in this field. In process of using tpm2-tss, I met some questions.
When I tried to use anaconda to install tpm2-pytss, a fault has occured.
"raise RuntimeError("Require tss2-esapi to be installed and at least version 2.4.0")
RuntimeError: Require tss2-esapi to be installed and at least version 2.4.0
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed"
But I have found all foulder and no result. Also, I found in version 4.1.3, tss2-esys is tss2-esapi. I used vs2019 to generate,and tss2-esys was produced.
How can I do ,and I want to know whether my anaconda is to old and caused this result.
Please help

@joholl
Copy link
Collaborator

joholl commented Jul 24, 2024

TL:DR; install libtss2-dev.

Long version

My guess: you have the wrong package installed. Python should identify the library via pkg-config:

pkg-config --modversion tss2-esys

pkg-config will only find your library if there is a file tss2-esys.pc in a location where pkg-config actually looks. In my case, it was in /usr/lib/x86_64-linux-gnu/pkgconfig/tss2-esys.pc.

For Ubuntu Jammy this file is not distributed via the libtss2-esys package (see file list), but you have to install the development version of it: libtss2-dev (see file list).

@joholl joholl mentioned this issue Aug 12, 2024
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