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

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

Open
aospan opened this issue Nov 7, 2022 · 3 comments
Open

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

aospan opened this issue Nov 7, 2022 · 3 comments

Comments

@aospan
Copy link

aospan commented Nov 7, 2022

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!

@grawity
Copy link
Owner

grawity commented Nov 7, 2022

@flixman

@flixman
Copy link

flixman commented May 29, 2023

@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
Copy link

flixman commented Jul 5, 2023

@grawity ? Did you see my last comment?

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

3 participants