tpm_futurepcr icon indicating copy to clipboard operation
tpm_futurepcr copied to clipboard

AttributeError: module 'tpm_futurepcr' has no attribute 'main'

Open aospan opened this issue 2 years ago • 3 comments

Hello Fellow Developers!

Trying to use your amazing project but hit an issue on a freshly prepared Ubuntu 22.04 docker image:

root@457c14f410a7:/# tpm_futurepcr -L 0,2,4,7 -o pcrvalues.bin
Traceback (most recent call last):
  File "/usr/local/bin/tpm_futurepcr", line 33, in <module>
    sys.exit(load_entry_point('tpm-futurepcr==1.5', 'console_scripts', 'tpm_futurepcr')())
  File "/usr/local/bin/tpm_futurepcr", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 173, in load
    return functools.reduce(getattr, attrs, module)
AttributeError: module 'tpm_futurepcr' has no attribute 'main'

Steps to reproduce:

git clone -b futurepcr https://github.com/aospan/docker-tpm2-tools.git
cd docker-tpm2-tools/
sudo docker build -t aospan/tpm2-tools-futurepcr .
sudo docker run --privileged -v /sys/kernel/security/:/sys/kernel/security/ -it aospan/tpm2-tools-futurepcr tpm_futurepcr -L 0,2,4,7 -o pcrvalues.bin

Thanks!

aospan avatar Nov 07 '22 02:11 aospan

@flixman

grawity avatar Nov 07 '22 06:11 grawity

@grawity My apologies for being offline so much time: I have been caught by work and... I did not receive any notification when you mentioned me :-/. I see that the changes I committed were moved to a felix/unfinished branch. Besides this open issue, what else is missing?

flixman avatar May 29 '23 12:05 flixman

@grawity ? Did you see my last comment?

flixman avatar Jul 05 '23 12:07 flixman