Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 852098

Summary: dev-python/tpm2-pytss-1.1.0: tons of test failures: AttributeError: 'TPM2B_PUBLIC' object has no attribute '_cdata'
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Christopher Byrne <salah.coronya>
Status: RESOLVED WORKSFORME    
Severity: normal CC: proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: dev-python:tpm2-pytss-1.1.0:20220615-083053.log.xz
dev-python tpm2-pytss-1.1.0-20220617-1.log.xz

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-06-15 08:51:21 UTC
266 tests fail, with errors like the following:

self = <tpm2_pytss.types.TPMT_SENSITIVE object at 0x7ff50a373310>, key = 'sensitiveType', value = 35

    def __setattr__(self, key, value):
    
>       _cdata = object.__getattribute__(self, "_cdata")
E       AttributeError: 'TPMT_SENSITIVE' object has no attribute '_cdata'

key        = 'sensitiveType'
self       = <tpm2_pytss.types.TPMT_SENSITIVE object at 0x7ff50a373310>
value      = 35

../tpm2-pytss-1.1.0-python3_9/install/usr/lib/python3.9/site-packages/tpm2_pytss/types.py:140: AttributeError
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-06-15 08:52:03 UTC
Created attachment 785213 [details]
dev-python:tpm2-pytss-1.1.0:20220615-083053.log.xz
Comment 2 Christopher Byrne 2022-06-18 21:00:36 UTC
Created attachment 786086 [details]
dev-python tpm2-pytss-1.1.0-20220617-1.log.xz

I can't replicate this - it seems to work for me. This is on an amd64 (stable) system. What version of app-crypt/tpm2-tss was this against?
Comment 3 Christopher Byrne 2022-09-26 23:29:31 UTC
I'm guessing this was related to the "dance" in src_test. That was fixed by upstream in https://github.com/tpm2-software/tpm2-pytss/commit/a03b66dd73a2ff58ebf847864102585aa3d11af7 and is included the current version on dev-python/tpm2-pytss.