[1m[32m==>[m[1m Building on Q[m
[1m[32m==>[m[1m Attempt to run pkgver()...[m
[1m[32m==>[m[1m Making package: python-tpm2-pytss 1.1.0-1 (Sun 22 May 2022 07:18:55 AM EEST)[m
[1m[32m==>[m[1m Checking runtime dependencies...[m
[1m[32m==>[m[1m Missing dependencies:[m
[1m[34m  ->[m[1m python-asn1crypto[m
[1m[32m==>[m[1m Checking buildtime dependencies...[m
[1m[32m==>[m[1m Missing dependencies:[m
[1m[34m  ->[m[1m python-build[m
[1m[34m  ->[m[1m python-installer[m
[1m[32m==>[m[1m Ensuring required PGP keys are present...[m
[1m[34m  ->[m[1m Checking for 5B482B8E3E19DA7C978E1D016DE2E9078E1F50C1...[m
[1m[32m==>[m[1m Checking for remote environment...[m
[1m[32m==>[m[1m Syncing package to remote host...[m
sending incremental file list
created directory packages/python-tpm2-pytss
./
PKGBUILD
          1,371 100%    0.00kB/s    0:00:00            1,371 100%    0.00kB/s    0:00:00 (xfr#1, to-chk=1/3)
python-tpm2-pytss-1.1.0-1.log
            887 100%  866.21kB/s    0:00:00              887 100%  866.21kB/s    0:00:00 (xfr#2, to-chk=0/3)

sent 1,301 bytes  received 106 bytes  938.00 bytes/sec
total size is 2,201  speedup is 1.56
[1m[32m==>[m[1m Patching arch to riscv64...[m
[1m[32m==>[m[1m Running  extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l felix28 on remote host...[m
[?25l:: Synchronizing package databases...
 core downloading...
 extra downloading...
 community downloading...
:: Starting full system upgrade...
 there is nothing to do
[?25h[1m[32m==>[m[1m Building in chroot for [extra] (riscv64)...[m
[1m[32m==>[m[1m Locking chroot copy [felix28]...[m[1mdone[m
[1m[32m==>[m[1m Synchronizing chroot copy [/var/lib/archbuild/extra-riscv64/root] -> [felix28]...[m[1mdone[m
[1m[32m==>[m[1m Making package: python-tpm2-pytss 1.1.0-1 (Sun May 22 07:37:03 2022)[m
[1m[32m==>[m[1m Retrieving sources...[m
[1m[34m  ->[m[1m Cloning tpm2-pytss git repo...[m
Cloning into bare repository '/home/felix/packages/python-tpm2-pytss/tpm2-pytss'...
remote: Enumerating objects: 8558, done.[K
remote: Counting objects:   0% (1/651)[Kremote: Counting objects:   1% (7/651)[Kremote: Counting objects:   2% (14/651)[Kremote: Counting objects:   3% (20/651)[Kremote: Counting objects:   4% (27/651)[Kremote: Counting objects:   5% (33/651)[Kremote: Counting objects:   6% (40/651)[Kremote: Counting objects:   7% (46/651)[Kremote: Counting objects:   8% (53/651)[Kremote: Counting objects:   9% (59/651)[Kremote: Counting objects:  10% (66/651)[Kremote: Counting objects:  11% (72/651)[Kremote: Counting objects:  12% (79/651)[Kremote: Counting objects:  13% (85/651)[Kremote: Counting objects:  14% (92/651)[Kremote: Counting objects:  15% (98/651)[Kremote: Counting objects:  16% (105/651)[Kremote: Counting objects:  17% (111/651)[Kremote: Counting objects:  18% (118/651)[Kremote: Counting objects:  19% (124/651)[Kremote: Counting objects:  20% (131/651)[Kremote: Counting objects:  21% (137/651)[Kremote: Counting objects:  22% (144/651)[Kremote: Counting objects:  23% (150/651)[Kremote: Counting objects:  24% (157/651)[Kremote: Counting objects:  25% (163/651)[Kremote: Counting objects:  26% (170/651)[Kremote: Counting objects:  27% (176/651)[Kremote: Counting objects:  28% (183/651)[Kremote: Counting objects:  29% (189/651)[Kremote: Counting objects:  30% (196/651)[Kremote: Counting objects:  31% (202/651)[Kremote: Counting objects:  32% (209/651)[Kremote: Counting objects:  33% (215/651)[Kremote: Counting objects:  34% (222/651)[Kremote: Counting objects:  35% (228/651)[Kremote: Counting objects:  36% (235/651)[Kremote: Counting objects:  37% (241/651)[Kremote: Counting objects:  38% (248/651)[Kremote: Counting objects:  39% (254/651)[Kremote: Counting objects:  40% (261/651)[Kremote: Counting objects:  41% (267/651)[Kremote: Counting objects:  42% (274/651)[Kremote: Counting objects:  43% (280/651)[Kremote: Counting objects:  44% (287/651)[Kremote: Counting objects:  45% (293/651)[Kremote: Counting objects:  46% (300/651)[Kremote: Counting objects:  47% (306/651)[Kremote: Counting objects:  48% (313/651)[Kremote: Counting objects:  49% (319/651)[Kremote: Counting objects:  50% (326/651)[Kremote: Counting objects:  51% (333/651)[Kremote: Counting objects:  52% (339/651)[Kremote: Counting objects:  53% (346/651)[Kremote: Counting objects:  54% (352/651)[Kremote: Counting objects:  55% (359/651)[Kremote: Counting objects:  56% (365/651)[Kremote: Counting objects:  57% (372/651)[Kremote: Counting objects:  58% (378/651)[Kremote: Counting objects:  59% (385/651)[Kremote: Counting objects:  60% (391/651)[Kremote: Counting objects:  61% (398/651)[Kremote: Counting objects:  62% (404/651)[Kremote: Counting objects:  63% (411/651)[Kremote: Counting objects:  64% (417/651)[Kremote: Counting objects:  65% (424/651)[Kremote: Counting objects:  66% (430/651)[Kremote: Counting objects:  67% (437/651)[Kremote: Counting objects:  68% (443/651)[Kremote: Counting objects:  69% (450/651)[Kremote: Counting objects:  70% (456/651)[Kremote: Counting objects:  71% (463/651)[Kremote: Counting objects:  72% (469/651)[Kremote: Counting objects:  73% (476/651)[Kremote: Counting objects:  74% (482/651)[Kremote: Counting objects:  75% (489/651)[Kremote: Counting objects:  76% (495/651)[Kremote: Counting objects:  77% (502/651)[Kremote: Counting objects:  78% (508/651)[Kremote: Counting objects:  79% (515/651)[Kremote: Counting objects:  80% (521/651)[Kremote: Counting objects:  81% (528/651)[Kremote: Counting objects:  82% (534/651)[Kremote: Counting objects:  83% (541/651)[Kremote: Counting objects:  84% (547/651)[Kremote: Counting objects:  85% (554/651)[Kremote: Counting objects:  86% (560/651)[Kremote: Counting objects:  87% (567/651)[Kremote: Counting objects:  88% (573/651)[Kremote: Counting objects:  89% (580/651)[Kremote: Counting objects:  90% (586/651)[Kremote: Counting objects:  91% (593/651)[Kremote: Counting objects:  92% (599/651)[Kremote: Counting objects:  93% (606/651)[Kremote: Counting objects:  94% (612/651)[Kremote: Counting objects:  95% (619/651)[Kremote: Counting objects:  96% (625/651)[Kremote: Counting objects:  97% (632/651)[Kremote: Counting objects:  98% (638/651)[Kremote: Counting objects:  99% (645/651)[Kremote: Counting objects: 100% (651/651)[Kremote: Counting objects: 100% (651/651), done.[K
remote: Compressing objects:   0% (1/268)[Kremote: Compressing objects:   1% (3/268)[Kremote: Compressing objects:   2% (6/268)[Kremote: Compressing objects:   3% (9/268)[Kremote: Compressing objects:   4% (11/268)[Kremote: Compressing objects:   5% (14/268)[Kremote: Compressing objects:   6% (17/268)[Kremote: Compressing objects:   7% (19/268)[Kremote: Compressing objects:   8% (22/268)[Kremote: Compressing objects:   9% (25/268)[Kremote: Compressing objects:  10% (27/268)[Kremote: Compressing objects:  11% (30/268)[Kremote: Compressing objects:  12% (33/268)[Kremote: Compressing objects:  13% (35/268)[Kremote: Compressing objects:  14% (38/268)[Kremote: Compressing objects:  15% (41/268)[Kremote: Compressing objects:  16% (43/268)[Kremote: Compressing objects:  17% (46/268)[Kremote: Compressing objects:  18% (49/268)[Kremote: Compressing objects:  19% (51/268)[Kremote: Compressing objects:  20% (54/268)[Kremote: Compressing objects:  21% (57/268)[Kremote: Compressing objects:  22% (59/268)[Kremote: Compressing objects:  23% (62/268)[Kremote: Compressing objects:  24% (65/268)[Kremote: Compressing objects:  25% (67/268)[Kremote: Compressing objects:  26% (70/268)[Kremote: Compressing objects:  27% (73/268)[Kremote: Compressing objects:  28% (76/268)[Kremote: Compressing objects:  29% (78/268)[Kremote: Compressing objects:  30% (81/268)[Kremote: Compressing objects:  31% (84/268)[Kremote: Compressing objects:  32% (86/268)[Kremote: Compressing objects:  33% (89/268)[Kremote: Compressing objects:  34% (92/268)[Kremote: Compressing objects:  35% (94/268)[Kremote: Compressing objects:  36% (97/268)[Kremote: Compressing objects:  37% (100/268)[Kremote: Compressing objects:  38% (102/268)[Kremote: Compressing objects:  39% (105/268)[Kremote: Compressing objects:  40% (108/268)[Kremote: Compressing objects:  41% (110/268)[Kremote: Compressing objects:  42% (113/268)[Kremote: Compressing objects:  43% (116/268)[Kremote: Compressing objects:  44% (118/268)[Kremote: Compressing objects:  45% (121/268)[Kremote: Compressing objects:  46% (124/268)[Kremote: Compressing objects:  47% (126/268)[Kremote: Compressing objects:  48% (129/268)[Kremote: Compressing objects:  49% (132/268)[Kremote: Compressing objects:  50% (134/268)[Kremote: Compressing objects:  51% (137/268)[Kremote: Compressing objects:  52% (140/268)[Kremote: Compressing objects:  53% (143/268)[Kremote: Compressing objects:  54% (145/268)[Kremote: Compressing objects:  55% (148/268)[Kremote: Compressing objects:  56% (151/268)[Kremote: Compressing objects:  57% (153/268)[Kremote: Compressing objects:  58% (156/268)[Kremote: Compressing objects:  59% (159/268)[Kremote: Compressing objects:  60% (161/268)[Kremote: Compressing objects:  61% (164/268)[Kremote: Compressing objects:  62% (167/268)[Kremote: Compressing objects:  63% (169/268)[Kremote: Compressing objects:  64% (172/268)[Kremote: Compressing objects:  65% (175/268)[Kremote: Compressing objects:  66% (177/268)[Kremote: Compressing objects:  67% (180/268)[Kremote: Compressing objects:  68% (183/268)[Kremote: Compressing objects:  69% (185/268)[Kremote: Compressing objects:  70% (188/268)[Kremote: Compressing objects:  71% (191/268)[Kremote: Compressing objects:  72% (193/268)[Kremote: Compressing objects:  73% (196/268)[Kremote: Compressing objects:  74% (199/268)[Kremote: Compressing objects:  75% (201/268)[Kremote: Compressing objects:  76% (204/268)[Kremote: Compressing objects:  77% (207/268)[Kremote: Compressing objects:  78% (210/268)[Kremote: Compressing objects:  79% (212/268)[Kremote: Compressing objects:  80% (215/268)[Kremote: Compressing objects:  81% (218/268)[Kremote: Compressing objects:  82% (220/268)[Kremote: Compressing objects:  83% (223/268)[Kremote: Compressing objects:  84% (226/268)[Kremote: Compressing objects:  85% (228/268)[Kremote: Compressing objects:  86% (231/268)[Kremote: Compressing objects:  87% (234/268)[Kremote: Compressing objects:  88% (236/268)[Kremote: Compressing objects:  89% (239/268)[Kremote: Compressing objects:  90% (242/268)[Kremote: Compressing objects:  91% (244/268)[Kremote: Compressing objects:  92% (247/268)[Kremote: Compressing objects:  93% (250/268)[Kremote: Compressing objects:  94% (252/268)[Kremote: Compressing objects:  95% (255/268)[Kremote: Compressing objects:  96% (258/268)[Kremote: Compressing objects:  97% (260/268)[Kremote: Compressing objects:  98% (263/268)[Kremote: Compressing objects:  99% (266/268)[Kremote: Compressing objects: 100% (268/268)[Kremote: Compressing objects: 100% (268/268), done.[K
Receiving objects:   0% (1/8558)Receiving objects:   1% (86/8558)Receiving objects:   2% (172/8558)Receiving objects:   3% (257/8558)Receiving objects:   4% (343/8558)Receiving objects:   5% (428/8558)Receiving objects:   6% (514/8558)Receiving objects:   7% (600/8558)Receiving objects:   8% (685/8558)Receiving objects:   9% (771/8558)Receiving objects:  10% (856/8558)Receiving objects:  11% (942/8558)Receiving objects:  12% (1027/8558)Receiving objects:  13% (1113/8558)Receiving objects:  14% (1199/8558)Receiving objects:  15% (1284/8558)Receiving objects:  16% (1370/8558)Receiving objects:  17% (1455/8558)Receiving objects:  18% (1541/8558)Receiving objects:  19% (1627/8558)Receiving objects:  20% (1712/8558)Receiving objects:  21% (1798/8558)Receiving objects:  22% (1883/8558)Receiving objects:  23% (1969/8558)Receiving objects:  24% (2054/8558)Receiving objects:  25% (2140/8558)Receiving objects:  26% (2226/8558)Receiving objects:  27% (2311/8558)Receiving objects:  28% (2397/8558)Receiving objects:  29% (2482/8558)Receiving objects:  30% (2568/8558)Receiving objects:  31% (2653/8558)Receiving objects:  32% (2739/8558)Receiving objects:  33% (2825/8558)Receiving objects:  34% (2910/8558)Receiving objects:  35% (2996/8558)Receiving objects:  36% (3081/8558)Receiving objects:  37% (3167/8558)Receiving objects:  38% (3253/8558)Receiving objects:  39% (3338/8558)Receiving objects:  40% (3424/8558)Receiving objects:  41% (3509/8558)Receiving objects:  42% (3595/8558)Receiving objects:  43% (3680/8558)Receiving objects:  44% (3766/8558)Receiving objects:  45% (3852/8558)Receiving objects:  46% (3937/8558)Receiving objects:  47% (4023/8558)Receiving objects:  48% (4108/8558)Receiving objects:  49% (4194/8558)Receiving objects:  50% (4279/8558)Receiving objects:  51% (4365/8558)Receiving objects:  52% (4451/8558)Receiving objects:  53% (4536/8558)Receiving objects:  54% (4622/8558)Receiving objects:  55% (4707/8558)Receiving objects:  56% (4793/8558), 12.97 MiB | 25.93 MiB/sReceiving objects:  57% (4879/8558), 12.97 MiB | 25.93 MiB/sReceiving objects:  58% (4964/8558), 12.97 MiB | 25.93 MiB/sReceiving objects:  58% (4976/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  59% (5050/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  60% (5135/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  61% (5221/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  62% (5306/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  63% (5392/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  64% (5478/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  65% (5563/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  66% (5649/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  67% (5734/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  68% (5820/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  69% (5906/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  70% (5991/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  71% (6077/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  72% (6162/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  73% (6248/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  74% (6333/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  75% (6419/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  76% (6505/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  77% (6590/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  78% (6676/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  79% (6761/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  80% (6847/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  81% (6932/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  82% (7018/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  83% (7104/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  84% (7189/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  85% (7275/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  86% (7360/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  87% (7446/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  88% (7532/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  89% (7617/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  90% (7703/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  91% (7788/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  92% (7874/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  93% (7959/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  94% (8045/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  95% (8131/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  96% (8216/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  97% (8302/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  98% (8387/8558), 25.05 MiB | 24.99 MiB/sReceiving objects:  99% (8473/8558), 25.05 MiB | 24.99 MiB/sremote: Total 8558 (delta 451), reused 539 (delta 377), pack-reused 7907[K
Receiving objects: 100% (8558/8558), 25.05 MiB | 24.99 MiB/sReceiving objects: 100% (8558/8558), 37.47 MiB | 25.25 MiB/s, done.
Resolving deltas:   0% (0/6192)Resolving deltas:   1% (64/6192)Resolving deltas:   2% (124/6192)Resolving deltas:   3% (189/6192)Resolving deltas:   4% (249/6192)Resolving deltas:   5% (310/6192)Resolving deltas:   6% (372/6192)Resolving deltas:   7% (434/6192)Resolving deltas:   8% (499/6192)Resolving deltas:   9% (559/6192)Resolving deltas:  10% (620/6192)Resolving deltas:  11% (682/6192)Resolving deltas:  12% (744/6192)Resolving deltas:  13% (808/6192)Resolving deltas:  14% (867/6192)Resolving deltas:  15% (932/6192)Resolving deltas:  16% (995/6192)Resolving deltas:  17% (1054/6192)Resolving deltas:  18% (1115/6192)Resolving deltas:  19% (1177/6192)Resolving deltas:  20% (1240/6192)Resolving deltas:  21% (1301/6192)Resolving deltas:  22% (1363/6192)Resolving deltas:  23% (1425/6192)Resolving deltas:  24% (1487/6192)Resolving deltas:  25% (1548/6192)Resolving deltas:  26% (1610/6192)Resolving deltas:  27% (1672/6192)Resolving deltas:  28% (1734/6192)Resolving deltas:  29% (1797/6192)Resolving deltas:  30% (1858/6192)Resolving deltas:  31% (1921/6192)Resolving deltas:  32% (1982/6192)Resolving deltas:  33% (2044/6192)Resolving deltas:  34% (2106/6192)Resolving deltas:  35% (2168/6192)Resolving deltas:  36% (2230/6192)Resolving deltas:  37% (2292/6192)Resolving deltas:  38% (2353/6192)Resolving deltas:  39% (2415/6192)Resolving deltas:  40% (2477/6192)Resolving deltas:  41% (2540/6192)Resolving deltas:  42% (2601/6192)Resolving deltas:  43% (2663/6192)Resolving deltas:  44% (2725/6192)Resolving deltas:  45% (2787/6192)Resolving deltas:  46% (2849/6192)Resolving deltas:  47% (2911/6192)Resolving deltas:  48% (2973/6192)Resolving deltas:  49% (3035/6192)Resolving deltas:  50% (3099/6192)Resolving deltas:  51% (3158/6192)Resolving deltas:  52% (3220/6192)Resolving deltas:  53% (3283/6192)Resolving deltas:  54% (3344/6192)Resolving deltas:  55% (3406/6192)Resolving deltas:  56% (3470/6192)Resolving deltas:  57% (3531/6192)Resolving deltas:  58% (3593/6192)Resolving deltas:  59% (3654/6192)Resolving deltas:  60% (3717/6192)Resolving deltas:  61% (3780/6192)Resolving deltas:  62% (3840/6192)Resolving deltas:  63% (3901/6192)Resolving deltas:  64% (3963/6192)Resolving deltas:  65% (4026/6192)Resolving deltas:  66% (4087/6192)Resolving deltas:  67% (4149/6192)Resolving deltas:  68% (4211/6192)Resolving deltas:  69% (4273/6192)Resolving deltas:  70% (4342/6192)Resolving deltas:  71% (4398/6192)Resolving deltas:  72% (4460/6192)Resolving deltas:  73% (4522/6192)Resolving deltas:  74% (4584/6192)Resolving deltas:  75% (4649/6192)Resolving deltas:  76% (4707/6192)Resolving deltas:  77% (4769/6192)Resolving deltas:  78% (4831/6192)Resolving deltas:  79% (4892/6192)Resolving deltas:  80% (4954/6192)Resolving deltas:  81% (5016/6192)Resolving deltas:  82% (5078/6192)Resolving deltas:  83% (5140/6192)Resolving deltas:  84% (5202/6192)Resolving deltas:  85% (5265/6192)Resolving deltas:  86% (5326/6192)Resolving deltas:  87% (5389/6192)Resolving deltas:  88% (5449/6192)Resolving deltas:  89% (5511/6192)Resolving deltas:  90% (5574/6192)Resolving deltas:  91% (5635/6192)Resolving deltas:  92% (5697/6192)Resolving deltas:  93% (5759/6192)Resolving deltas:  94% (5821/6192)Resolving deltas:  95% (5883/6192)Resolving deltas:  96% (5945/6192)Resolving deltas:  97% (6007/6192)Resolving deltas:  98% (6074/6192)Resolving deltas:  99% (6131/6192)Resolving deltas: 100% (6192/6192)Resolving deltas: 100% (6192/6192), done.
[1m[32m==>[m[1m Validating source files with sha512sums...[m
    tpm2-pytss ... Skipped
[1m[32m==>[m[1m Verifying source file signatures with gpg...[m
    tpm2-pytss git repo ... Passed
[1m[32m==>[m[1m Making package: python-tpm2-pytss 1.1.0-1 (Sun 22 May 2022 07:37:14 AM CEST)[m
[1m[32m==>[m[1m Checking runtime dependencies...[m
[1m[32m==>[m[1m Installing missing dependencies...[m
[?25lresolving dependencies...
looking for conflicting packages...

Package (9)                New Version  Net Change

core/json-c                0.16-1         0.16 MiB
core/libnsl                2.0.0-2        0.06 MiB
extra/python-ply           3.11-10        0.31 MiB
extra/python-pycparser     2.21-3         1.39 MiB
core/python                3.10.1-2      79.11 MiB
extra/python-asn1crypto    1.5.1-1        1.21 MiB
extra/python-cffi          1.15.0-3       1.00 MiB
extra/python-cryptography  37.0.0-1       3.54 MiB
core/tpm2-tss              3.2.0-1        2.40 MiB

Total Installed Size:  89.17 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing libnsl...
installing python...
Optional dependencies for python
    python-setuptools
    python-pip
    sqlite [installed]
    mpdecimal: for decimal
    xz: for lzma [installed]
    tk: for tkinter
installing python-asn1crypto...
installing python-ply...
installing python-pycparser...
installing python-cffi...
installing python-cryptography...
installing json-c...
installing tpm2-tss...
[?25h[1m[32m==>[m[1m Checking buildtime dependencies...[m
[1m[32m==>[m[1m Installing missing dependencies...[m
[?25lresolving dependencies...
looking for conflicting packages...

Package (28)                     New Version  Net Change  Download Size

extra/fuse-common                3.11.0-1       0.00 MiB               
extra/fuse2                      2.9.9-4        0.40 MiB               
extra/json-glib                  1.6.6-2        0.92 MiB               
community/libtpms                0.9.4-1        0.84 MiB               
extra/perl-error                 0.17029-3      0.04 MiB               
extra/perl-mailtools             2.21-5         0.11 MiB               
extra/perl-timedate              2.33-3         0.08 MiB               
community/python-apipkg          2.1.1-1        0.03 MiB               
extra/python-appdirs             1.4.4-6        0.07 MiB               
extra/python-attrs               21.4.0-1       0.45 MiB               
community/python-iniconfig       1.1.1-5        0.02 MiB               
community/python-more-itertools  8.12.0-2       0.48 MiB               
extra/python-ordered-set         4.0.2-6        0.06 MiB               
extra/python-packaging           21.3-1         0.26 MiB               
extra/python-pep517              0.12.0-4       0.13 MiB               
community/python-pluggy          1.0.0-1        0.10 MiB               
community/python-py              1.11.0-1       0.71 MiB               
extra/python-pyparsing           3.0.9-1        0.96 MiB               
extra/python-tomli               2.0.1-1        0.08 MiB               
extra/git                        2.36.1-1      29.94 MiB               
community/python-build           0.7.0-4        0.95 MiB               
community/python-installer       0.5.1-1        1.13 MiB               
community/python-pkgconfig       1.5.5-3        0.03 MiB       0.01 MiB
community/python-pytest          7.1.2-1        2.62 MiB               
extra/python-setuptools          1:59.5.0-1     2.96 MiB               
community/python-setuptools-scm  6.4.2-1        0.21 MiB               
community/python-wheel           0.37.1-1       0.16 MiB               
community/swtpm                  0.7.3-1        0.41 MiB               

Total Download Size:    0.01 MiB
Total Installed Size:  44.16 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 python-pkgconfig-1.5.5-3-any downloading...
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing perl-error...
installing perl-timedate...
installing perl-mailtools...
installing git...
Optional dependencies for git
    tk: gitk and git gui
    perl-libwww: git svn
    perl-term-readkey: git svn and interactive.singlekey setting
    perl-io-socket-ssl: git send-email TLS support
    perl-authen-sasl: git send-email TLS support
    perl-mediawiki-api: git mediawiki support
    perl-datetime-format-iso8601: git mediawiki support
    perl-lwp-protocol-https: git mediawiki https support
    perl-cgi: gitweb (web interface) support
    python: git svn & git p4 [installed]
    subversion: git svn
    org.freedesktop.secrets: keyring credential helper
    libsecret: libsecret credential helper [installed]
installing python-tomli...
installing python-pep517...
installing python-pyparsing...
Optional dependencies for python-pyparsing
    python-railroad-diagrams: for generating Railroad Diagrams
    python-jinja: for generating Railroad Diagrams
installing python-packaging...
installing python-build...
Optional dependencies for python-build
    python-virtualenv: Use virtualenv for build isolation
installing python-installer...
installing python-pkgconfig...
installing python-appdirs...
installing python-more-itertools...
installing python-ordered-set...
installing python-setuptools...
installing python-setuptools-scm...
installing python-wheel...
Optional dependencies for python-wheel
    python-keyring: for wheel.signatures
    python-xdg: for wheel.signatures
installing python-attrs...
installing python-iniconfig...
installing python-pluggy...
installing python-apipkg...
installing python-py...
installing python-pytest...
installing fuse-common...
installing fuse2...
installing json-glib...
installing libtpms...
installing swtpm...
:: Running post-transaction hooks...
(1/1) Warn about old perl modules
[?25h[1m[32m==>[m[1m Retrieving sources...[m
[1m[33m==> WARNING:[m[1m Skipping all source file integrity checks.[m
[1m[32m==>[m[1m Extracting sources...[m
[1m[34m  ->[m[1m Creating working copy of tpm2-pytss git repo...[m
Cloning into 'tpm2-pytss'...
done.
Switched to a new branch 'makepkg'
[1m[32m==>[m[1m Starting pkgver()...[m
[1m[32m==>[m[1m Starting build()...[m
adding path: /build/python-tpm2-pytss/src/tpm2-pytss/scripts
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-riscv64-3.10
creating build/lib.linux-riscv64-3.10/tpm2_pytss
copying tpm2_pytss/ESAPI.py -> build/lib.linux-riscv64-3.10/tpm2_pytss
copying tpm2_pytss/FAPI.py -> build/lib.linux-riscv64-3.10/tpm2_pytss
copying tpm2_pytss/TCTI.py -> build/lib.linux-riscv64-3.10/tpm2_pytss
copying tpm2_pytss/TCTILdr.py -> build/lib.linux-riscv64-3.10/tpm2_pytss
copying tpm2_pytss/TSS2_Exception.py -> build/lib.linux-riscv64-3.10/tpm2_pytss
copying tpm2_pytss/__init__.py -> build/lib.linux-riscv64-3.10/tpm2_pytss
copying tpm2_pytss/callbacks.py -> build/lib.linux-riscv64-3.10/tpm2_pytss
copying tpm2_pytss/constants.py -> build/lib.linux-riscv64-3.10/tpm2_pytss
copying tpm2_pytss/encoding.py -> build/lib.linux-riscv64-3.10/tpm2_pytss
copying tpm2_pytss/fapi_info.py -> build/lib.linux-riscv64-3.10/tpm2_pytss
copying tpm2_pytss/tsskey.py -> build/lib.linux-riscv64-3.10/tpm2_pytss
copying tpm2_pytss/types.py -> build/lib.linux-riscv64-3.10/tpm2_pytss
copying tpm2_pytss/utils.py -> build/lib.linux-riscv64-3.10/tpm2_pytss
package init file 'tpm2_pytss/internal/__init__.py' not found (or not a regular file)
creating build/lib.linux-riscv64-3.10/tpm2_pytss/internal
copying tpm2_pytss/internal/constants.py -> build/lib.linux-riscv64-3.10/tpm2_pytss/internal
copying tpm2_pytss/internal/crypto.py -> build/lib.linux-riscv64-3.10/tpm2_pytss/internal
copying tpm2_pytss/internal/templates.py -> build/lib.linux-riscv64-3.10/tpm2_pytss/internal
copying tpm2_pytss/internal/utils.py -> build/lib.linux-riscv64-3.10/tpm2_pytss/internal
running build_ext
generating cffi module 'build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c'
creating build/temp.linux-riscv64-3.10
building 'tpm2_pytss._libtpm2_pytss' extension
creating build/temp.linux-riscv64-3.10/build
creating build/temp.linux-riscv64-3.10/build/temp.linux-riscv64-3.10
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -march=rv64gc -mabi=lp64d -O3 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto -fPIC -I/usr/include/python3.10 -c build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c -o build/temp.linux-riscv64-3.10/build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.o
build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48575:1: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations]
48575 | static uint32_t _cffi_d_Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal(TPMS_ALGORITHM_DESCRIPTION const * x0, uint8_t * x1, size_t x2, size_t * x3)
      | ^~~~~~
In file included from /usr/include/tss2/tss2_tcti.h:40,
                 from /usr/include/tss2/tss2_esys.h:9,
                 from build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:571:
/usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here
  927 | struct TPMS_ALGORITHM_DESCRIPTION {
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c: In function ‘_cffi_d_Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal’:
build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48577:3: warning: ‘Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal’ is deprecated [-Wdeprecated-declarations]
48577 |   return Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal(x0, x1, x2, x3);
      |   ^~~~~~
In file included from build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:575:
/usr/include/tss2/tss2_mu.h:752:1: note: declared here
  752 | Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal(
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c: In function ‘_cffi_f_Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal’:
build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48583:3: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations]
48583 |   TPMS_ALGORITHM_DESCRIPTION const * x0;
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here
  927 | struct TPMS_ALGORITHM_DESCRIPTION {
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48602:5: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations]
48602 |     x0 = ((size_t)datasize) <= 640 ? (TPMS_ALGORITHM_DESCRIPTION const *)alloca((size_t)datasize) : NULL;
      |     ^~
/usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here
  927 | struct TPMS_ALGORITHM_DESCRIPTION {
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48632:3: warning: ‘Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal’ is deprecated [-Wdeprecated-declarations]
48632 |   { result = Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal(x0, x1, x2, x3); }
      |   ^
/usr/include/tss2/tss2_mu.h:752:1: note: declared here
  752 | Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Marshal(
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c: At top level:
build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48645:1: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations]
48645 | static uint32_t _cffi_d_Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Unmarshal(uint8_t const * x0, size_t x1, size_t * x2, TPMS_ALGORITHM_DESCRIPTION * x3)
      | ^~~~~~
/usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here
  927 | struct TPMS_ALGORITHM_DESCRIPTION {
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c: In function ‘_cffi_d_Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Unmarshal’:
build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48647:3: warning: ‘Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Unmarshal’ is deprecated [-Wdeprecated-declarations]
48647 |   return Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Unmarshal(x0, x1, x2, x3);
      |   ^~~~~~
/usr/include/tss2/tss2_mu.h:760:1: note: declared here
  760 | Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Unmarshal(
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c: In function ‘_cffi_f_Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Unmarshal’:
build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48656:3: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations]
48656 |   TPMS_ALGORITHM_DESCRIPTION * x3;
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here
  927 | struct TPMS_ALGORITHM_DESCRIPTION {
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48694:5: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations]
48694 |     x3 = ((size_t)datasize) <= 640 ? (TPMS_ALGORITHM_DESCRIPTION *)alloca((size_t)datasize) : NULL;
      |     ^~
/usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here
  927 | struct TPMS_ALGORITHM_DESCRIPTION {
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:48702:3: warning: ‘Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Unmarshal’ is deprecated [-Wdeprecated-declarations]
48702 |   { result = Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Unmarshal(x0, x1, x2, x3); }
      |   ^
/usr/include/tss2/tss2_mu.h:760:1: note: declared here
  760 | Tss2_MU_TPMS_ALGORITHM_DESCRIPTION_Unmarshal(
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c: At top level:
build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:66507:1: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations]
66507 | static void _cffi_checkfld__TPMS_ALGORITHM_DESCRIPTION(TPMS_ALGORITHM_DESCRIPTION *p)
      | ^~~~~~
/usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here
  927 | struct TPMS_ALGORITHM_DESCRIPTION {
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:66514:8: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations]
66514 | struct _cffi_align__TPMS_ALGORITHM_DESCRIPTION { char x; TPMS_ALGORITHM_DESCRIPTION y; };
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here
  927 | struct TPMS_ALGORITHM_DESCRIPTION {
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:69395:3: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations]
69395 |   { "alg", offsetof(TPMS_ALGORITHM_DESCRIPTION, alg),
      |   ^
/usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here
  927 | struct TPMS_ALGORITHM_DESCRIPTION {
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:69396:12: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations]
69396 |            sizeof(((TPMS_ALGORITHM_DESCRIPTION *)0)->alg),
      |            ^~~~~~
/usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here
  927 | struct TPMS_ALGORITHM_DESCRIPTION {
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:69398:3: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations]
69398 |   { "attributes", offsetof(TPMS_ALGORITHM_DESCRIPTION, attributes),
      |   ^
/usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here
  927 | struct TPMS_ALGORITHM_DESCRIPTION {
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:69399:19: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations]
69399 |                   sizeof(((TPMS_ALGORITHM_DESCRIPTION *)0)->attributes),
      |                   ^~~~~~
/usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here
  927 | struct TPMS_ALGORITHM_DESCRIPTION {
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.c:70317:5: warning: ‘TPMS_ALGORITHM_DESCRIPTION’ is deprecated [-Wdeprecated-declarations]
70317 |     sizeof(TPMS_ALGORITHM_DESCRIPTION), offsetof(struct _cffi_align__TPMS_ALGORITHM_DESCRIPTION, y), 87, 2 },
      |     ^~~~~~
/usr/include/tss2/tss2_tpm2_types.h:927:8: note: declared here
  927 | struct TPMS_ALGORITHM_DESCRIPTION {
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -march=rv64gc -mabi=lp64d -O2 -pipe -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -flto=auto build/temp.linux-riscv64-3.10/build/temp.linux-riscv64-3.10/tpm2_pytss._libtpm2_pytss.o -L/usr/lib -ltss2-esys -ltss2-tctildr -ltss2-rc -ltss2-mu -ltss2-fapi -o build/lib.linux-riscv64-3.10/tpm2_pytss/_libtpm2_pytss.abi3.so
generated _type_map with 61 mappings
generated _element_type_map with 5 mappings
generated _versions with 2 versions
installing to build/bdist.linux-riscv64/wheel
running install
running install_lib
creating build/bdist.linux-riscv64
creating build/bdist.linux-riscv64/wheel
creating build/bdist.linux-riscv64/wheel/tpm2_pytss
copying build/lib.linux-riscv64-3.10/tpm2_pytss/ESAPI.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss
copying build/lib.linux-riscv64-3.10/tpm2_pytss/FAPI.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss
copying build/lib.linux-riscv64-3.10/tpm2_pytss/TCTI.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss
copying build/lib.linux-riscv64-3.10/tpm2_pytss/TCTILdr.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss
copying build/lib.linux-riscv64-3.10/tpm2_pytss/TSS2_Exception.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss
copying build/lib.linux-riscv64-3.10/tpm2_pytss/__init__.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss
copying build/lib.linux-riscv64-3.10/tpm2_pytss/callbacks.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss
copying build/lib.linux-riscv64-3.10/tpm2_pytss/constants.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss
copying build/lib.linux-riscv64-3.10/tpm2_pytss/encoding.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss
copying build/lib.linux-riscv64-3.10/tpm2_pytss/fapi_info.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss
copying build/lib.linux-riscv64-3.10/tpm2_pytss/tsskey.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss
copying build/lib.linux-riscv64-3.10/tpm2_pytss/types.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss
copying build/lib.linux-riscv64-3.10/tpm2_pytss/utils.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss
creating build/bdist.linux-riscv64/wheel/tpm2_pytss/internal
copying build/lib.linux-riscv64-3.10/tpm2_pytss/internal/constants.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss/internal
copying build/lib.linux-riscv64-3.10/tpm2_pytss/internal/crypto.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss/internal
copying build/lib.linux-riscv64-3.10/tpm2_pytss/internal/templates.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss/internal
copying build/lib.linux-riscv64-3.10/tpm2_pytss/internal/utils.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss/internal
copying build/lib.linux-riscv64-3.10/tpm2_pytss/internal/type_mapping.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss/internal
copying build/lib.linux-riscv64-3.10/tpm2_pytss/internal/versions.py -> build/bdist.linux-riscv64/wheel/tpm2_pytss/internal
copying build/lib.linux-riscv64-3.10/tpm2_pytss/_libtpm2_pytss.abi3.so -> build/bdist.linux-riscv64/wheel/tpm2_pytss
running install_egg_info
running egg_info
creating tpm2_pytss.egg-info
writing tpm2_pytss.egg-info/PKG-INFO
writing dependency_links to tpm2_pytss.egg-info/dependency_links.txt
writing requirements to tpm2_pytss.egg-info/requires.txt
writing top-level names to tpm2_pytss.egg-info/top_level.txt
writing manifest file 'tpm2_pytss.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'tpm2_pytss/version'
warning: no files found matching 'tpm2_pytss/config.json'
warning: no files found matching '*' under directory 'tpm2_pytss/swig'
warning: no files found matching '*' under directory 'tests'
warning: no files found matching '*' under directory 'examples'
warning: no previously-included files found matching 'tpm2_pytss/internal/type_mapping.py'
adding license file 'LICENSE'
writing manifest file 'tpm2_pytss.egg-info/SOURCES.txt'
Copying tpm2_pytss.egg-info to build/bdist.linux-riscv64/wheel/tpm2_pytss-1.1.0-py3.10.egg-info
running install_scripts
adding license file "LICENSE" (matched pattern "LICEN[CS]E*")
creating build/bdist.linux-riscv64/wheel/tpm2_pytss-1.1.0.dist-info/WHEEL
creating '/build/python-tpm2-pytss/src/tpm2-pytss/dist/tmpdogiuhkv/tpm2_pytss-1.1.0-cp310-cp310-linux_riscv64.whl' and adding 'build/bdist.linux-riscv64/wheel' to it
adding 'tpm2_pytss/ESAPI.py'
adding 'tpm2_pytss/FAPI.py'
adding 'tpm2_pytss/TCTI.py'
adding 'tpm2_pytss/TCTILdr.py'
adding 'tpm2_pytss/TSS2_Exception.py'
adding 'tpm2_pytss/__init__.py'
adding 'tpm2_pytss/_libtpm2_pytss.abi3.so'
adding 'tpm2_pytss/callbacks.py'
adding 'tpm2_pytss/constants.py'
adding 'tpm2_pytss/encoding.py'
adding 'tpm2_pytss/fapi_info.py'
adding 'tpm2_pytss/tsskey.py'
adding 'tpm2_pytss/types.py'
adding 'tpm2_pytss/utils.py'
adding 'tpm2_pytss/internal/constants.py'
adding 'tpm2_pytss/internal/crypto.py'
adding 'tpm2_pytss/internal/templates.py'
adding 'tpm2_pytss/internal/type_mapping.py'
adding 'tpm2_pytss/internal/utils.py'
adding 'tpm2_pytss/internal/versions.py'
adding 'tpm2_pytss-1.1.0.dist-info/LICENSE'
adding 'tpm2_pytss-1.1.0.dist-info/METADATA'
adding 'tpm2_pytss-1.1.0.dist-info/WHEEL'
adding 'tpm2_pytss-1.1.0.dist-info/top_level.txt'
adding 'tpm2_pytss-1.1.0.dist-info/RECORD'
removing build/bdist.linux-riscv64/wheel
* Getting dependencies for wheel...
* Building wheel...
Successfully built tpm2_pytss-1.1.0-cp310-cp310-linux_riscv64.whl
[1m[32m==>[m[1m Starting check()...[m
============================= test session starts ==============================
platform linux -- Python 3.10.1, pytest-7.1.2, pluggy-1.0.0
rootdir: /build/python-tpm2-pytss/src/tpm2-pytss
collected 478 items

test/test_crypto.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF     [ 10%]
test/test_encoding.py .....................................              [ 17%]
test/test_esapi.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 28%]
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF    [ 43%]
test/test_exception.py ......                                            [ 44%]
test/test_fapi.py EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [ 55%]
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE           [ 68%]
test/test_tcti.py FFFFFFFF                                               [ 70%]
test/test_tsskey.py FFFFFFFFFFFFF                                        [ 73%]
test/test_types.py ..................................................... [ 84%]
...........................................................              [ 96%]
test/test_utils.py FFFFFFFFFFFFFFFFF                                     [100%]

==================================== ERRORS ====================================
_______________ ERROR at setup of TestFapiECC.test_provision_ok ________________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
---------------------------- Captured stderr setup -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:fapi:src/tss2-fapi/ifapi_io.c:339:ifapi_io_check_create_dir() Directory /tmp/tmph1vgxw52/policy does not exist, creating 
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 22558: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
ERROR:fapi:src/tss2-fapi/api/Fapi_Initialize.c:227:Fapi_Initialize_Finish() Initializing TCTI. ErrorCode (0x000a000a) 
______________ ERROR at setup of TestFapiECC.test_provision_fail _______________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
________________ ERROR at setup of TestFapiECC.test_get_random _________________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
______________ ERROR at setup of TestFapiECC.test_get_random_zero ______________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_____________ ERROR at setup of TestFapiECC.test_get_random_large ______________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
____________ ERROR at setup of TestFapiECC.test_get_random_negative ____________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_________________ ERROR at setup of TestFapiECC.test_get_info __________________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
___________________ ERROR at setup of TestFapiECC.test_list ____________________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_____________ ERROR at setup of TestFapiECC.test_list_search_path ______________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
___________ ERROR at setup of TestFapiECC.test_list_bad_search_path ____________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
________________ ERROR at setup of TestFapiECC.test_create_key _________________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
___________ ERROR at setup of TestFapiECC.test_create_key_double_ok ____________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
__________ ERROR at setup of TestFapiECC.test_create_key_double_fail ___________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_________ ERROR at setup of TestFapiECC.test_get_esys_blob_contextload _________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_____________ ERROR at setup of TestFapiECC.test_get_esys_blob_bad _____________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_________ ERROR at setup of TestFapiECC.test_get_esys_blob_deserialize _________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
__________________ ERROR at setup of TestFapiECC.test_verify ___________________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
________________ ERROR at setup of TestFapiECC.test_verify_fail ________________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
___________ ERROR at setup of TestFapiECC.test_import_key_double_ok ____________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
__________ ERROR at setup of TestFapiECC.test_import_key_double_fail ___________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
__________ ERROR at setup of TestFapiECC.test_import_policy_double_ok __________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_________ ERROR at setup of TestFapiECC.test_import_policy_double_fail _________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
____________ ERROR at setup of TestFapiECC.test_import_exported_key ____________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
__________ ERROR at setup of TestFapiECC.test_export_imported_policy ___________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
________________ ERROR at setup of TestFapiECC.test_create_seal ________________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
___________ ERROR at setup of TestFapiECC.test_create_seal_double_ok ___________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
__________ ERROR at setup of TestFapiECC.test_create_seal_double_fail __________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
____________ ERROR at setup of TestFapiECC.test_create_seal_random _____________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
____ ERROR at setup of TestFapiECC.test_create_seal_both_data_and_size_fail ____

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
__ ERROR at setup of TestFapiECC.test_create_seal_neither_data_nor_size_fail ___

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
__________________ ERROR at setup of TestFapiECC.test_unseal ___________________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_______________ ERROR at setup of TestFapiECC.test_quote_verify ________________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
________________ ERROR at setup of TestFapiECC.test_export_key _________________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
________________ ERROR at setup of TestFapiECC.test_delete_key _________________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
____________ ERROR at setup of TestFapiECC.test_set_get_description ____________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
___________ ERROR at setup of TestFapiECC.test_get_empty_description ___________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_____________ ERROR at setup of TestFapiECC.test_set_get_app_data ______________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
______________ ERROR at setup of TestFapiECC.test_get_no_app_data ______________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
____________ ERROR at setup of TestFapiECC.test_set_get_certificate ____________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
___________ ERROR at setup of TestFapiECC.test_get_empty_certificate ___________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
____ ERROR at setup of TestFapiECC.test_get_empty_platform_certificates_ok _____

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
___ ERROR at setup of TestFapiECC.test_get_empty_platform_certificates_fail ____

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_________________ ERROR at setup of TestFapiECC.test_pcr_read __________________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
______________ ERROR at setup of TestFapiECC.test_pcr_extend_read ______________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_______________ ERROR at setup of TestFapiECC.test_nv_write_read _______________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_______________ ERROR at setup of TestFapiECC.test_nv_increment ________________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
__________________ ERROR at setup of TestFapiECC.test_nv_pcr ___________________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
________________ ERROR at setup of TestFapiECC.test_nv_set_bits ________________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_____________ ERROR at setup of TestFapiECC.test_set_auth_callback _____________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
____________ ERROR at setup of TestFapiECC.test_unset_auth_callback ____________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
____________ ERROR at setup of TestFapiECC.test_write_authorize_nv _____________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_____________ ERROR at setup of TestFapiECC.test_authorize_policy ______________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_______________ ERROR at setup of TestFapiECC.test_policy_signed _______________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
______________ ERROR at setup of TestFapiECC.test_policy_branched ______________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_______________ ERROR at setup of TestFapiECC.test_policy_action _______________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
___________________ ERROR at setup of TestFapiECC.test_sign ____________________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_______________ ERROR at setup of TestFapiECC.test_get_tpm_blobs _______________

fapi_config_ecc = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f9c640>

    @pytest.fixture(scope="class")
    def fapi_ecc(fapi_config_ecc):
>       with FAPI() as fapi:

test/test_fapi.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_______________ ERROR at setup of TestFapiRSA.test_provision_ok ________________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
---------------------------- Captured stderr setup -----------------------------
WARNING:fapi:src/tss2-fapi/ifapi_io.c:339:ifapi_io_check_create_dir() Directory /tmp/tmpba1wtows/policy does not exist, creating 
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 22558: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
ERROR:fapi:src/tss2-fapi/api/Fapi_Initialize.c:227:Fapi_Initialize_Finish() Initializing TCTI. ErrorCode (0x000a000a) 
______________ ERROR at setup of TestFapiRSA.test_provision_fail _______________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
________________ ERROR at setup of TestFapiRSA.test_get_random _________________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
______________ ERROR at setup of TestFapiRSA.test_get_random_zero ______________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_____________ ERROR at setup of TestFapiRSA.test_get_random_large ______________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
____________ ERROR at setup of TestFapiRSA.test_get_random_negative ____________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_________________ ERROR at setup of TestFapiRSA.test_get_info __________________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
___________________ ERROR at setup of TestFapiRSA.test_list ____________________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_____________ ERROR at setup of TestFapiRSA.test_list_search_path ______________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
___________ ERROR at setup of TestFapiRSA.test_list_bad_search_path ____________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
________________ ERROR at setup of TestFapiRSA.test_create_key _________________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
___________ ERROR at setup of TestFapiRSA.test_create_key_double_ok ____________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
__________ ERROR at setup of TestFapiRSA.test_create_key_double_fail ___________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_________ ERROR at setup of TestFapiRSA.test_get_esys_blob_contextload _________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_____________ ERROR at setup of TestFapiRSA.test_get_esys_blob_bad _____________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_________ ERROR at setup of TestFapiRSA.test_get_esys_blob_deserialize _________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
__________________ ERROR at setup of TestFapiRSA.test_verify ___________________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
________________ ERROR at setup of TestFapiRSA.test_verify_fail ________________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
___________ ERROR at setup of TestFapiRSA.test_import_key_double_ok ____________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
__________ ERROR at setup of TestFapiRSA.test_import_key_double_fail ___________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
__________ ERROR at setup of TestFapiRSA.test_import_policy_double_ok __________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_________ ERROR at setup of TestFapiRSA.test_import_policy_double_fail _________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
____________ ERROR at setup of TestFapiRSA.test_import_exported_key ____________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
__________ ERROR at setup of TestFapiRSA.test_export_imported_policy ___________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
________________ ERROR at setup of TestFapiRSA.test_create_seal ________________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
___________ ERROR at setup of TestFapiRSA.test_create_seal_double_ok ___________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
__________ ERROR at setup of TestFapiRSA.test_create_seal_double_fail __________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
____________ ERROR at setup of TestFapiRSA.test_create_seal_random _____________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
____ ERROR at setup of TestFapiRSA.test_create_seal_both_data_and_size_fail ____

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
__ ERROR at setup of TestFapiRSA.test_create_seal_neither_data_nor_size_fail ___

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
__________________ ERROR at setup of TestFapiRSA.test_unseal ___________________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_______________ ERROR at setup of TestFapiRSA.test_quote_verify ________________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
________________ ERROR at setup of TestFapiRSA.test_export_key _________________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
________________ ERROR at setup of TestFapiRSA.test_delete_key _________________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
____________ ERROR at setup of TestFapiRSA.test_set_get_description ____________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
___________ ERROR at setup of TestFapiRSA.test_get_empty_description ___________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_____________ ERROR at setup of TestFapiRSA.test_set_get_app_data ______________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
______________ ERROR at setup of TestFapiRSA.test_get_no_app_data ______________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
____________ ERROR at setup of TestFapiRSA.test_set_get_certificate ____________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
___________ ERROR at setup of TestFapiRSA.test_get_empty_certificate ___________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
____ ERROR at setup of TestFapiRSA.test_get_empty_platform_certificates_ok _____

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
___ ERROR at setup of TestFapiRSA.test_get_empty_platform_certificates_fail ____

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_________________ ERROR at setup of TestFapiRSA.test_pcr_read __________________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
______________ ERROR at setup of TestFapiRSA.test_pcr_extend_read ______________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_______________ ERROR at setup of TestFapiRSA.test_nv_write_read _______________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_______________ ERROR at setup of TestFapiRSA.test_nv_increment ________________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
__________________ ERROR at setup of TestFapiRSA.test_nv_pcr ___________________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
________________ ERROR at setup of TestFapiRSA.test_nv_set_bits ________________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_____________ ERROR at setup of TestFapiRSA.test_set_auth_callback _____________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
____________ ERROR at setup of TestFapiRSA.test_unset_auth_callback ____________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
____________ ERROR at setup of TestFapiRSA.test_write_authorize_nv _____________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_____________ ERROR at setup of TestFapiRSA.test_authorize_policy ______________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_______________ ERROR at setup of TestFapiRSA.test_policy_signed _______________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
______________ ERROR at setup of TestFapiRSA.test_policy_branched ______________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_______________ ERROR at setup of TestFapiRSA.test_policy_action _______________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
___________________ ERROR at setup of TestFapiRSA.test_sign ____________________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
_______________ ERROR at setup of TestFapiRSA.test_get_tpm_blobs _______________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
______________ ERROR at setup of TestFapiRSA.test_encrypt_decrypt ______________

fapi_config_rsa = <tpm2_pytss.FAPI.FAPIConfig object at 0x4003f3f940>

    @pytest.fixture(scope="class")
    def fapi_rsa(fapi_config_rsa):
>       with FAPI() as fapi:

test/test_fapi.py:65: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tpm2_pytss/FAPI.py:129: in __init__
    _chkrc(ret)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception
____________ ERROR at teardown of TestFapiRSA.test_encrypt_decrypt _____________

    @pytest.fixture(scope="module")
    def simulator():
        tpm = TpmSimulator.getSimulator()
        tpm.start()
        yield tpm
>       tpm.close()

test/test_fapi.py:30: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4003f9c610>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
=================================== FAILURES ===================================
________________________ CryptoTest.test_ecc_bad_curves ________________________

self = <test.test_crypto.CryptoTest testMethod=test_ecc_bad_curves>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4003f35030>
tcti = 'swtpm:port=41271'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=41271'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4003f350c0>, name = b'swtpm'
conf = b'port=41271'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40051faad0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 41271: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
________________________ CryptoTest.test_encrypted_key _________________________

self = <test.test_crypto.CryptoTest testMethod=test_encrypted_key>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400549a710>
tcti = 'swtpm:port=61256'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=61256'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400549a920>, name = b'swtpm'
conf = b'port=61256'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400549a740>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 61256: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_____________________ CryptoTest.test_from_pem_with_scheme _____________________

self = <test.test_crypto.CryptoTest testMethod=test_from_pem_with_scheme>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4003f3e6b0>
tcti = 'swtpm:port=25248'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=25248'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4003f3eec0>, name = b'swtpm'
conf = b'port=25248'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4003f3f040>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 25248: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________ CryptoTest.test_from_pem_with_symmetric ____________________

self = <test.test_crypto.CryptoTest testMethod=test_from_pem_with_symmetric>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400541a890>
tcti = 'swtpm:port=38060'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=38060'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005418d60>, name = b'swtpm'
conf = b'port=38060'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40054190f0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 38060: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________________ CryptoTest.test_get_alg ____________________________

self = <test.test_crypto.CryptoTest testMethod=test_get_alg>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005556ef0>
tcti = 'swtpm:port=11162'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=11162'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40055554b0>, name = b'swtpm'
conf = b'port=11162'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005555390>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 11162: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_____________________________ CryptoTest.test_kdfa _____________________________

self = <test.test_crypto.CryptoTest testMethod=test_kdfa>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005773880>
tcti = 'swtpm:port=29357'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=29357'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005773dc0>, name = b'swtpm'
conf = b'port=29357'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005773340>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 29357: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_____________________________ CryptoTest.test_kdfe _____________________________

self = <test.test_crypto.CryptoTest testMethod=test_kdfe>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400541fc10>
tcti = 'swtpm:port=35996'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=35996'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400541de70>, name = b'swtpm'
conf = b'port=35996'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400541e350>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 35996: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
____________________ CryptoTest.test_keyedhash_from_secret _____________________

self = <test.test_crypto.CryptoTest testMethod=test_keyedhash_from_secret>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400546c400>
tcti = 'swtpm:port=25726'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=25726'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400546c430>, name = b'swtpm'
conf = b'port=25726'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400546c490>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 25726: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
__________________ CryptoTest.test_keyedhash_from_secret_bad ___________________

self = <test.test_crypto.CryptoTest testMethod=test_keyedhash_from_secret_bad>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005486320>
tcti = 'swtpm:port=58547'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=58547'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40054876d0>, name = b'swtpm'
conf = b'port=58547'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005485e40>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 58547: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________ CryptoTest.test_keyedhash_from_secret_unseal _________________

self = <test.test_crypto.CryptoTest testMethod=test_keyedhash_from_secret_unseal>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005418dc0>, tcti = 'swtpm:port=4090'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=4090'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005419300>, name = b'swtpm'
conf = b'port=4090'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400541a830>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 4090: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_______________________ CryptoTest.test_loadexternal_ecc _______________________

self = <test.test_crypto.CryptoTest testMethod=test_loadexternal_ecc>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400524a2c0>
tcti = 'swtpm:port=32012'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=32012'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400524a2f0>, name = b'swtpm'
conf = b'port=32012'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005249cf0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 32012: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________ CryptoTest.test_loadexternal_public_rsa ____________________

self = <test.test_crypto.CryptoTest testMethod=test_loadexternal_public_rsa>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005419ab0>
tcti = 'swtpm:port=44932'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=44932'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005418ca0>, name = b'swtpm'
conf = b'port=44932'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400541add0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 44932: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_______________________ CryptoTest.test_loadexternal_rsa _______________________

self = <test.test_crypto.CryptoTest testMethod=test_loadexternal_rsa>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40052332e0>
tcti = 'swtpm:port=61497'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=61497'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005232e90>, name = b'swtpm'
conf = b'port=61497'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005232e00>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 61497: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
__________________________ CryptoTest.test_nv_getname __________________________

self = <test.test_crypto.CryptoTest testMethod=test_nv_getname>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400543ab60>
tcti = 'swtpm:port=27457'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=27457'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005438220>, name = b'swtpm'
conf = b'port=27457'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400543b1f0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 27457: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________ CryptoTest.test_private_from_pem_bad_der ___________________

self = <test.test_crypto.CryptoTest testMethod=test_private_from_pem_bad_der>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40055141c0>
tcti = 'swtpm:port=56667'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=56667'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005517940>, name = b'swtpm'
conf = b'port=56667'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005516590>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 56667: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_____________________ CryptoTest.test_private_from_pem_ecc _____________________

self = <test.test_crypto.CryptoTest testMethod=test_private_from_pem_ecc>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005328b20>
tcti = 'swtpm:port=39666'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=39666'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400532bdc0>, name = b'swtpm'
conf = b'port=39666'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400532b2e0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 39666: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________ CryptoTest.test_private_from_pem_ecc_der ___________________

self = <test.test_crypto.CryptoTest testMethod=test_private_from_pem_ecc_der>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400578b1f0>, tcti = 'swtpm:port=4865'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=4865'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400578ada0>, name = b'swtpm'
conf = b'port=4865'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400578b640>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 4865: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_____________________ CryptoTest.test_private_from_pem_rsa _____________________

self = <test.test_crypto.CryptoTest testMethod=test_private_from_pem_rsa>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40053296f0>
tcti = 'swtpm:port=44880'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=44880'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400532b280>, name = b'swtpm'
conf = b'port=44880'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400532b310>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 44880: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________ CryptoTest.test_private_from_pem_rsa_der ___________________

self = <test.test_crypto.CryptoTest testMethod=test_private_from_pem_rsa_der>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400425ca00>
tcti = 'swtpm:port=18825'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=18825'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400425c6a0>, name = b'swtpm'
conf = b'port=18825'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400425dc60>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 18825: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________ CryptoTest.test_public_from_pem_bad_der ____________________

self = <test.test_crypto.CryptoTest testMethod=test_public_from_pem_bad_der>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400532aa40>
tcti = 'swtpm:port=34606'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=34606'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005329f90>, name = b'swtpm'
conf = b'port=34606'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400532acb0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 34606: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_____________________ CryptoTest.test_public_from_pem_ecc ______________________

self = <test.test_crypto.CryptoTest testMethod=test_public_from_pem_ecc>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4003f969e0>
tcti = 'swtpm:port=37764'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=37764'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4003f95300>, name = b'swtpm'
conf = b'port=37764'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4003f97460>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 37764: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________ CryptoTest.test_public_from_pem_ecc_der ____________________

self = <test.test_crypto.CryptoTest testMethod=test_public_from_pem_ecc_der>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400546d9f0>, tcti = 'swtpm:port=5378'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=5378'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400546d210>, name = b'swtpm'
conf = b'port=5378'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400546e7a0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 5378: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________ CryptoTest.test_public_from_pem_ecc_der_cert _________________

self = <test.test_crypto.CryptoTest testMethod=test_public_from_pem_ecc_der_cert>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4003fdb6a0>
tcti = 'swtpm:port=40764'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=40764'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4003fdb430>, name = b'swtpm'
conf = b'port=40764'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4003fdb610>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 40764: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________ CryptoTest.test_public_from_pem_ecc_pem_cert _________________

self = <test.test_crypto.CryptoTest testMethod=test_public_from_pem_ecc_pem_cert>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400546f430>
tcti = 'swtpm:port=53449'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=53449'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400546f190>, name = b'swtpm'
conf = b'port=53449'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400546c160>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 53449: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_____________________ CryptoTest.test_public_from_pem_rsa ______________________

self = <test.test_crypto.CryptoTest testMethod=test_public_from_pem_rsa>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4003f35d80>
tcti = 'swtpm:port=24614'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=24614'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4003f37820>, name = b'swtpm'
conf = b'port=24614'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4003f347f0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 24614: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________ CryptoTest.test_public_from_pem_rsa_der ____________________

self = <test.test_crypto.CryptoTest testMethod=test_public_from_pem_rsa_der>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005251990>
tcti = 'swtpm:port=61620'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=61620'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40052516c0>, name = b'swtpm'
conf = b'port=61620'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005252aa0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 61620: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________ CryptoTest.test_public_from_pem_rsa_der_cert _________________

self = <test.test_crypto.CryptoTest testMethod=test_public_from_pem_rsa_der_cert>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40053674f0>
tcti = 'swtpm:port=33968'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=33968'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005366a10>, name = b'swtpm'
conf = b'port=33968'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005366800>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 33968: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________ CryptoTest.test_public_from_pem_rsa_pem_cert _________________

self = <test.test_crypto.CryptoTest testMethod=test_public_from_pem_rsa_pem_cert>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400565a4a0>
tcti = 'swtpm:port=36083'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=36083'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400565b8e0>, name = b'swtpm'
conf = b'port=36083'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400565b2b0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 36083: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_____________________ CryptoTest.test_public_from_private ______________________

self = <test.test_crypto.CryptoTest testMethod=test_public_from_private>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400531c610>
tcti = 'swtpm:port=29490'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=29490'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400531e410>, name = b'swtpm'
conf = b'port=29490'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400531db70>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 29490: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________ CryptoTest.test_public_from_private_der ____________________

self = <test.test_crypto.CryptoTest testMethod=test_public_from_private_der>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40051fe440>
tcti = 'swtpm:port=25329'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=25329'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40051ff9a0>, name = b'swtpm'
conf = b'port=25329'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40051ff160>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 25329: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
________________________ CryptoTest.test_public_getname ________________________

self = <test.test_crypto.CryptoTest testMethod=test_public_getname>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005486560>, tcti = 'swtpm:port=9600'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=9600'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005485300>, name = b'swtpm'
conf = b'port=9600'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005487be0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 9600: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
____________________ CryptoTest.test_public_to_pem_bad_key _____________________

self = <test.test_crypto.CryptoTest testMethod=test_public_to_pem_bad_key>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40051f0790>
tcti = 'swtpm:port=11350'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=11350'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40051f1060>, name = b'swtpm'
conf = b'port=11350'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40051f0400>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 11350: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
______________________ CryptoTest.test_public_to_pem_ecc _______________________

self = <test.test_crypto.CryptoTest testMethod=test_public_to_pem_ecc>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40055be140>
tcti = 'swtpm:port=37491'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=37491'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40055bc370>, name = b'swtpm'
conf = b'port=37491'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40055bc9a0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 37491: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
______________________ CryptoTest.test_public_to_pem_rsa _______________________

self = <test.test_crypto.CryptoTest testMethod=test_public_to_pem_rsa>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40053296f0>
tcti = 'swtpm:port=53240'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=53240'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400532a500>, name = b'swtpm'
conf = b'port=53240'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400532bbb0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 53240: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________________ CryptoTest.test_rsa_exponent _________________________

self = <test.test_crypto.CryptoTest testMethod=test_rsa_exponent>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4004084f40>
tcti = 'swtpm:port=61766'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=61766'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40040860e0>, name = b'swtpm'
conf = b'port=61766'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40040854b0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 61766: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________________ CryptoTest.test_ssh_key_ecc __________________________

self = <test.test_crypto.CryptoTest testMethod=test_ssh_key_ecc>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4003f28ca0>
tcti = 'swtpm:port=21938'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=21938'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4003f2b310>, name = b'swtpm'
conf = b'port=21938'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4003f29d20>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 21938: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
____________________ CryptoTest.test_symcipher_from_secret _____________________

self = <test.test_crypto.CryptoTest testMethod=test_symcipher_from_secret>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400425f8e0>
tcti = 'swtpm:port=11136'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=11136'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400425d7b0>, name = b'swtpm'
conf = b'port=11136'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400425d3f0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 11136: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
__________________ CryptoTest.test_symcipher_from_secret_bad ___________________

self = <test.test_crypto.CryptoTest testMethod=test_symcipher_from_secret_bad>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4003f2bf10>
tcti = 'swtpm:port=16188'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=16188'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4003f294b0>, name = b'swtpm'
conf = b'port=16188'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4003f2a860>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 16188: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_______________________ CryptoTest.test_symdef_to_crypt ________________________

self = <test.test_crypto.CryptoTest testMethod=test_symdef_to_crypt>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005350250>
tcti = 'swtpm:port=51428'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=51428'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40053512a0>, name = b'swtpm'
conf = b'port=51428'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005352a10>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 51428: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
__________________________ CryptoTest.test_topem_ecc ___________________________

self = <test.test_crypto.CryptoTest testMethod=test_topem_ecc>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40051f1ed0>
tcti = 'swtpm:port=50548'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=50548'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40051f21d0>, name = b'swtpm'
conf = b'port=50548'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40051f0ac0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 50548: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_______________________ CryptoTest.test_topem_encodings ________________________

self = <test.test_crypto.CryptoTest testMethod=test_topem_encodings>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40055bcd60>
tcti = 'swtpm:port=21529'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=21529'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40055bc160>, name = b'swtpm'
conf = b'port=21529'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40055bd0f0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 21529: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
__________________________ CryptoTest.test_topem_rsa ___________________________

self = <test.test_crypto.CryptoTest testMethod=test_topem_rsa>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40051f3910>
tcti = 'swtpm:port=27197'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=27197'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40051f3070>, name = b'swtpm'
conf = b'port=27197'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40051f0190>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 27197: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_______________________ CryptoTest.test_unsupported_key ________________________

self = <test.test_crypto.CryptoTest testMethod=test_unsupported_key>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005a507f0>
tcti = 'swtpm:port=59776'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=59776'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005a52cb0>, name = b'swtpm'
conf = b'port=59776'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005a516c0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 59776: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_____________________ CryptoTest.test_verify_signature_bad _____________________

self = <test.test_crypto.CryptoTest testMethod=test_verify_signature_bad>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400549bd00>
tcti = 'swtpm:port=21008'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=21008'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400549aa70>, name = b'swtpm'
conf = b'port=21008'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400549ba60>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 21008: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_____________________ CryptoTest.test_verify_signature_ecc _____________________

self = <test.test_crypto.CryptoTest testMethod=test_verify_signature_ecc>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005364130>
tcti = 'swtpm:port=29788'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=29788'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005367070>, name = b'swtpm'
conf = b'port=29788'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005367250>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 29788: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
____________________ CryptoTest.test_verify_signature_hmac _____________________

self = <test.test_crypto.CryptoTest testMethod=test_verify_signature_hmac>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400541a140>
tcti = 'swtpm:port=13967'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=13967'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005418910>, name = b'swtpm'
conf = b'port=13967'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005419a20>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 13967: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________ CryptoTest.test_verify_singature_rsapss ____________________

self = <test.test_crypto.CryptoTest testMethod=test_verify_singature_rsapss>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4003f3d8a0>
tcti = 'swtpm:port=26153'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=26153'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4003f3ece0>, name = b'swtpm'
conf = b'port=26153'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4003f3de70>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 26153: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________ CryptoTest.test_verify_singature_rsassa ____________________

self = <test.test_crypto.CryptoTest testMethod=test_verify_singature_rsassa>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400406e860>, tcti = 'swtpm:port=3441'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=3441'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400406d5d0>, name = b'swtpm'
conf = b'port=3441'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400406f250>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 3441: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_____________________ TestEsys.test_TPMS_CONTEXT_to_tools ______________________

self = <test.test_esapi.TestEsys testMethod=test_TPMS_CONTEXT_to_tools>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40051fd3c0>
tcti = 'swtpm:port=49550'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=49550'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40051ff1f0>, name = b'swtpm'
conf = b'port=49550'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40051fef50>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 49550: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
______________________ TestEsys.test_activate_credential _______________________

self = <test.test_esapi.TestEsys testMethod=test_activate_credential>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40053511e0>
tcti = 'swtpm:port=16176'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=16176'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005353fd0>, name = b'swtpm'
conf = b'port=16176'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005350280>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 16176: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
____________________________ TestEsys.test_certify _____________________________

self = <test.test_esapi.TestEsys testMethod=test_certify>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400543ac50>
tcti = 'swtpm:port=37919'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=37919'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005439450>, name = b'swtpm'
conf = b'port=37919'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400543ae30>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 37919: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
________________________ TestEsys.test_certify_creation ________________________

self = <test.test_esapi.TestEsys testMethod=test_certify_creation>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40055bcbe0>
tcti = 'swtpm:port=55198'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=55198'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40055bc4c0>, name = b'swtpm'
conf = b'port=55198'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40055bf2b0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 55198: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________________ TestEsys.test_change_eps ___________________________

self = <test.test_esapi.TestEsys testMethod=test_change_eps>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4004086bc0>
tcti = 'swtpm:port=17567'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=17567'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40040856c0>, name = b'swtpm'
conf = b'port=17567'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4004086560>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 17567: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________________ TestEsys.test_change_pps ___________________________

self = <test.test_esapi.TestEsys testMethod=test_change_pps>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40051f27a0>
tcti = 'swtpm:port=11788'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=11788'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40051f0d60>, name = b'swtpm'
conf = b'port=11788'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40051f2170>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 11788: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_____________________________ TestEsys.test_clear ______________________________

self = <test.test_esapi.TestEsys testMethod=test_clear>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005251f30>
tcti = 'swtpm:port=25059'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=25059'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40052509a0>, name = b'swtpm'
conf = b'port=25059'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40052505b0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 25059: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
__________________________ TestEsys.test_clearcontrol __________________________

self = <test.test_esapi.TestEsys testMethod=test_clearcontrol>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40053535b0>
tcti = 'swtpm:port=45298'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=45298'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005351630>, name = b'swtpm'
conf = b'port=45298'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005352b00>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 45298: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_______________________ TestEsys.test_clock_rate_adjust ________________________

self = <test.test_esapi.TestEsys testMethod=test_clock_rate_adjust>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400531dc00>
tcti = 'swtpm:port=12216'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=12216'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400531ca00>, name = b'swtpm'
conf = b'port=12216'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400531ece0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 12216: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________________ TestEsys.test_clock_set ____________________________

self = <test.test_esapi.TestEsys testMethod=test_clock_set>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40059cbd00>
tcti = 'swtpm:port=57324'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=57324'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40059c9060>, name = b'swtpm'
conf = b'port=57324'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40059c8220>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 57324: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_____________________________ TestEsys.test_commit _____________________________

self = <test.test_esapi.TestEsys testMethod=test_commit>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400406ee60>
tcti = 'swtpm:port=42174'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=42174'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400406ded0>, name = b'swtpm'
conf = b'port=42174'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400406d7b0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 42174: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________ TestEsys.test_context_save_context_load ____________________

self = <test.test_esapi.TestEsys testMethod=test_context_save_context_load>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005a503a0>
tcti = 'swtpm:port=10995'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=10995'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005a530a0>, name = b'swtpm'
conf = b'port=10995'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005a50e20>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 10995: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_____________________________ TestEsys.test_create _____________________________

self = <test.test_esapi.TestEsys testMethod=test_create>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005328190>
tcti = 'swtpm:port=16871'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=16871'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400532b100>, name = b'swtpm'
conf = b'port=16871'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400532ba90>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 16871: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
__________________________ TestEsys.test_create_none ___________________________

self = <test.test_esapi.TestEsys testMethod=test_create_none>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40059a1a80>
tcti = 'swtpm:port=44533'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=44533'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40059a2980>, name = b'swtpm'
conf = b'port=44533'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40059a3b20>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 44533: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________________ TestEsys.test_create_primary _________________________

self = <test.test_esapi.TestEsys testMethod=test_create_primary>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4003f23bb0>
tcti = 'swtpm:port=64143'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=64143'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4003f229b0>, name = b'swtpm'
conf = b'port=64143'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4003f23880>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 64143: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
______________________ TestEsys.test_create_primary_none _______________________

self = <test.test_esapi.TestEsys testMethod=test_create_primary_none>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4003f979a0>
tcti = 'swtpm:port=28715'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=28715'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4003f97af0>, name = b'swtpm'
conf = b'port=28715'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4003f96470>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 28715: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
__________________________ TestEsys.test_createloaded __________________________

self = <test.test_esapi.TestEsys testMethod=test_createloaded>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005487eb0>
tcti = 'swtpm:port=37570'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=37570'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005485900>, name = b'swtpm'
conf = b'port=37570'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005486e00>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 37570: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_______________________ TestEsys.test_createloaded_none ________________________

self = <test.test_esapi.TestEsys testMethod=test_createloaded_none>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005418040>
tcti = 'swtpm:port=14947'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=14947'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40054198a0>, name = b'swtpm'
conf = b'port=14947'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005418a60>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 14947: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
__________________ TestEsys.test_dictionary_attack_lock_reset __________________

self = <test.test_esapi.TestEsys testMethod=test_dictionary_attack_lock_reset>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400531d660>, tcti = 'swtpm:port=8753'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=8753'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400531ebf0>, name = b'swtpm'
conf = b'port=8753'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400531fe50>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 8753: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
__________________ TestEsys.test_dictionary_attack_parameters __________________

self = <test.test_esapi.TestEsys testMethod=test_dictionary_attack_parameters>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40059a2e60>
tcti = 'swtpm:port=34152'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=34152'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40059a09a0>, name = b'swtpm'
conf = b'port=34152'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40059a2dd0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 34152: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
__________________________ TestEsys.test_double_close __________________________

self = <test.test_esapi.TestEsys testMethod=test_double_close>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005772200>
tcti = 'swtpm:port=52427'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=52427'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005771c00>, name = b'swtpm'
conf = b'port=52427'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40057726e0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 52427: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________________ TestEsys.test_duplicate ____________________________

self = <test.test_esapi.TestEsys testMethod=test_duplicate>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40054a0190>
tcti = 'swtpm:port=11481'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=11481'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40054a2dd0>, name = b'swtpm'
conf = b'port=11481'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40054a1f30>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 11481: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________________ TestEsys.test_ecc_parameters _________________________

self = <test.test_esapi.TestEsys testMethod=test_ecc_parameters>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4003f3e800>
tcti = 'swtpm:port=49448'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=49448'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4003f3d540>, name = b'swtpm'
conf = b'port=49448'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4003f3e1a0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 49448: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
__________________________ TestEsys.test_ecdh_key_gen __________________________

self = <test.test_esapi.TestEsys testMethod=test_ecdh_key_gen>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4003fdba60>, tcti = 'swtpm:port=6431'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=6431'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4003fdbb20>, name = b'swtpm'
conf = b'port=6431'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4003fd9210>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 6431: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________________ TestEsys.test_ecdh_z_gen ___________________________

self = <test.test_esapi.TestEsys testMethod=test_ecdh_z_gen>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400552a3b0>, tcti = 'swtpm:port=7936'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=7936'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005528c70>, name = b'swtpm'
conf = b'port=7936'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400552a9b0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 7936: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
________________________ TestEsys.test_encrypt_decrypt _________________________

self = <test.test_esapi.TestEsys testMethod=test_encrypt_decrypt>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005552f20>
tcti = 'swtpm:port=63304'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=63304'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40055530d0>, name = b'swtpm'
conf = b'port=63304'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40055502b0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 63304: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
________________________ TestEsys.test_encrypt_decrypt2 ________________________

self = <test.test_esapi.TestEsys testMethod=test_encrypt_decrypt2>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400541d6f0>
tcti = 'swtpm:port=28287'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=28287'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400541f1c0>, name = b'swtpm'
conf = b'port=28287'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400541db10>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 28287: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_______________________ TestEsys.test_esys_tr_functions ________________________

self = <test.test_esapi.TestEsys testMethod=test_esys_tr_functions>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005366c80>
tcti = 'swtpm:port=60471'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=60471'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005365780>, name = b'swtpm'
conf = b'port=60471'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005366110>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 60471: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
____________________ TestEsys.test_event_sequence_complete _____________________

self = <test.test_esapi.TestEsys testMethod=test_event_sequence_complete>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005248af0>
tcti = 'swtpm:port=43323'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=43323'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40052494b0>, name = b'swtpm'
conf = b'port=43323'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005249000>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 43323: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________________ TestEsys.test_evict_control __________________________

self = <test.test_esapi.TestEsys testMethod=test_evict_control>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40059bbb80>
tcti = 'swtpm:port=22814'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=22814'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40059b8460>, name = b'swtpm'
conf = b'port=22814'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40059b8550>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 22814: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_______________________ TestEsys.test_field_upgrade_data _______________________

self = <test.test_esapi.TestEsys testMethod=test_field_upgrade_data>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005256d40>
tcti = 'swtpm:port=65419'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=65419'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005255fc0>, name = b'swtpm'
conf = b'port=65419'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005256110>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 65419: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
______________________ TestEsys.test_field_upgrade_start _______________________

self = <test.test_esapi.TestEsys testMethod=test_field_upgrade_start>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005a5d210>
tcti = 'swtpm:port=54033'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=54033'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005a5c100>, name = b'swtpm'
conf = b'port=54033'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005a5c3a0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 54033: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________________ TestEsys.test_firmware_read __________________________

self = <test.test_esapi.TestEsys testMethod=test_firmware_read>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40059c16f0>
tcti = 'swtpm:port=49707'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=49707'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40059c06d0>, name = b'swtpm'
conf = b'port=49707'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40059c2740>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 49707: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________________ TestEsys.test_flush_context __________________________

self = <test.test_esapi.TestEsys testMethod=test_flush_context>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4003f1d360>
tcti = 'swtpm:port=45222'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=45222'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4003f1fd60>, name = b'swtpm'
conf = b'port=45222'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4003f1fbb0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 45222: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
__________________________ TestEsys.test_fulltest_no ___________________________

self = <test.test_esapi.TestEsys testMethod=test_fulltest_no>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400532b0a0>
tcti = 'swtpm:port=64385'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=64385'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400532aa40>, name = b'swtpm'
conf = b'port=64385'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400532bfa0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 64385: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
__________________________ TestEsys.test_fulltest_yes __________________________

self = <test.test_esapi.TestEsys testMethod=test_fulltest_yes>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005307eb0>
tcti = 'swtpm:port=62883'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=62883'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005307940>, name = b'swtpm'
conf = b'port=62883'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005305b40>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 62883: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________________ TestEsys.test_get_capability _________________________

self = <test.test_esapi.TestEsys testMethod=test_get_capability>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400547bc70>
tcti = 'swtpm:port=20285'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=20285'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005479f60>, name = b'swtpm'
conf = b'port=20285'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005479960>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 20285: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
____________________ TestEsys.test_get_command_audit_digest ____________________

self = <test.test_esapi.TestEsys testMethod=test_get_command_audit_digest>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4003f29150>
tcti = 'swtpm:port=39887'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=39887'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4003f2be50>, name = b'swtpm'
conf = b'port=39887'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4003f29bd0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 39887: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________________ TestEsys.test_get_random ___________________________

self = <test.test_esapi.TestEsys testMethod=test_get_random>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40059cb940>
tcti = 'swtpm:port=41476'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=41476'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40059c8c40>, name = b'swtpm'
conf = b'port=41476'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40059c8040>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 41476: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
____________________ TestEsys.test_get_session_audit_digest ____________________

self = <test.test_esapi.TestEsys testMethod=test_get_session_audit_digest>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005438670>
tcti = 'swtpm:port=24872'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=24872'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005438c10>, name = b'swtpm'
conf = b'port=24872'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400543add0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 24872: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
____________________________ TestEsys.test_get_time ____________________________

self = <test.test_esapi.TestEsys testMethod=test_get_time>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400546fca0>
tcti = 'swtpm:port=55683'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=55683'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400546c910>, name = b'swtpm'
conf = b'port=55683'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400546f670>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 55683: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
____________________________ TestEsys.test_gettcti _____________________________

self = <test.test_esapi.TestEsys testMethod=test_gettcti>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40054073a0>, tcti = 'swtpm:port=6880'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=6880'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005405ff0>, name = b'swtpm'
conf = b'port=6880'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005407c70>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 6880: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
______________________________ TestEsys.test_hash ______________________________

self = <test.test_esapi.TestEsys testMethod=test_hash>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005249fc0>
tcti = 'swtpm:port=53438'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=53438'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005248df0>, name = b'swtpm'
conf = b'port=53438'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400524acb0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 53438: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________________ TestEsys.test_hash_sequence __________________________

self = <test.test_esapi.TestEsys testMethod=test_hash_sequence>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005320bb0>
tcti = 'swtpm:port=64572'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=64572'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005323cd0>, name = b'swtpm'
conf = b'port=64572'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005320a30>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 64572: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_______________________ TestEsys.test_hierarchy_control ________________________

self = <test.test_esapi.TestEsys testMethod=test_hierarchy_control>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005a5d6c0>
tcti = 'swtpm:port=27413'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=27413'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005a5f340>, name = b'swtpm'
conf = b'port=27413'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005a5df90>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 27413: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
______________________ TestEsys.test_hierarchychangeauth _______________________

self = <test.test_esapi.TestEsys testMethod=test_hierarchychangeauth>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005233940>
tcti = 'swtpm:port=27581'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=27581'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40052339a0>, name = b'swtpm'
conf = b'port=27581'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005230880>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 27581: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
______________________________ TestEsys.test_hmac ______________________________

self = <test.test_esapi.TestEsys testMethod=test_hmac>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4003f26bf0>
tcti = 'swtpm:port=31500'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=31500'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4003f27820>, name = b'swtpm'
conf = b'port=31500'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4003f27d00>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 31500: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________________ TestEsys.test_hmac_sequence __________________________

self = <test.test_esapi.TestEsys testMethod=test_hmac_sequence>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40057d1b10>
tcti = 'swtpm:port=54852'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=54852'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40057d21d0>, name = b'swtpm'
conf = b'port=54852'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40057d2830>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 54852: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
__________________________ TestEsys.test_hmac_session __________________________

self = <test.test_esapi.TestEsys testMethod=test_hmac_session>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005a25de0>
tcti = 'swtpm:port=53555'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=53555'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005a26e30>, name = b'swtpm'
conf = b'port=53555'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005a26620>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 53555: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_____________________________ TestEsys.test_import _____________________________

self = <test.test_esapi.TestEsys testMethod=test_import>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40057d3c70>
tcti = 'swtpm:port=10568'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=10568'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40057d1d50>, name = b'swtpm'
conf = b'port=10568'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40057d1090>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 10568: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
____________________ TestEsys.test_incremental_resume_test _____________________

self = <test.test_esapi.TestEsys testMethod=test_incremental_resume_test>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005484400>
tcti = 'swtpm:port=45927'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=45927'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005486b30>, name = b'swtpm'
conf = b'port=45927'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40054844f0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 45927: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_____________________ TestEsys.test_incremental_self_test ______________________

self = <test.test_esapi.TestEsys testMethod=test_incremental_self_test>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40054ff580>
tcti = 'swtpm:port=34402'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=34402'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40054fe500>, name = b'swtpm'
conf = b'port=34402'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40054fde40>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 34402: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
______________________________ TestEsys.test_load ______________________________

self = <test.test_esapi.TestEsys testMethod=test_load>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005883760>
tcti = 'swtpm:port=11911'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=11911'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005882e60>, name = b'swtpm'
conf = b'port=11911'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005883fa0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 11911: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
________________________ TestEsys.test_make_credential _________________________

self = <test.test_esapi.TestEsys testMethod=test_make_credential>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40051f00a0>
tcti = 'swtpm:port=26095'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=26095'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40051f1240>, name = b'swtpm'
conf = b'port=26095'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40051f0640>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 26095: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________________ TestEsys.test_nv_certify ___________________________

self = <test.test_esapi.TestEsys testMethod=test_nv_certify>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40055bde10>
tcti = 'swtpm:port=27912'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=27912'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40055bc730>, name = b'swtpm'
conf = b'port=27912'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40055bded0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 27912: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________________ TestEsys.test_nv_change_auth _________________________

self = <test.test_esapi.TestEsys testMethod=test_nv_change_auth>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40051c40d0>
tcti = 'swtpm:port=38699'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=38699'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40051c64d0>, name = b'swtpm'
conf = b'port=38699'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40051c6fe0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 38699: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________________ TestEsys.test_nv_extend ____________________________

self = <test.test_esapi.TestEsys testMethod=test_nv_extend>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005322320>
tcti = 'swtpm:port=12737'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=12737'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005323700>, name = b'swtpm'
conf = b'port=12737'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005322e90>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 12737: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
______________________ TestEsys.test_nv_global_write_lock ______________________

self = <test.test_esapi.TestEsys testMethod=test_nv_global_write_lock>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40059a3280>
tcti = 'swtpm:port=56050'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=56050'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40059a1900>, name = b'swtpm'
conf = b'port=56050'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40059a0760>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 56050: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
__________________________ TestEsys.test_nv_increment __________________________

self = <test.test_esapi.TestEsys testMethod=test_nv_increment>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005253c40>
tcti = 'swtpm:port=41303'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=41303'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005252560>, name = b'swtpm'
conf = b'port=41303'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005251ab0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 41303: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
__________________________ TestEsys.test_nv_read_lock __________________________

self = <test.test_esapi.TestEsys testMethod=test_nv_read_lock>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005418520>, tcti = 'swtpm:port=8592'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=8592'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005419300>, name = b'swtpm'
conf = b'port=8592'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40054192a0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 8592: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________________ TestEsys.test_nv_read_public _________________________

self = <test.test_esapi.TestEsys testMethod=test_nv_read_public>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40052d5ba0>, tcti = 'swtpm:port=8151'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=8151'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40052d44c0>, name = b'swtpm'
conf = b'port=8151'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40052d45e0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 8151: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
__________________________ TestEsys.test_nv_set_bits ___________________________

self = <test.test_esapi.TestEsys testMethod=test_nv_set_bits>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40059c3ca0>
tcti = 'swtpm:port=12267'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=12267'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40059c2f20>, name = b'swtpm'
conf = b'port=12267'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40059c1bd0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 12267: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________ TestEsys.test_nv_undefine_space_special ____________________

self = <test.test_esapi.TestEsys testMethod=test_nv_undefine_space_special>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005a25a80>
tcti = 'swtpm:port=57963'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=57963'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005a24d00>, name = b'swtpm'
conf = b'port=57963'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005a260e0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 57963: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________________ TestEsys.test_nv_write_lock __________________________

self = <test.test_esapi.TestEsys testMethod=test_nv_write_lock>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40058bc970>, tcti = 'swtpm:port=3937'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=3937'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40058bf7f0>, name = b'swtpm'
conf = b'port=3937'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40058bd570>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 3937: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_______________________ TestEsys.test_object_change_auth _______________________

self = <test.test_esapi.TestEsys testMethod=test_object_change_auth>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40040845e0>
tcti = 'swtpm:port=62483'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=62483'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4004084850>, name = b'swtpm'
conf = b'port=62483'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4004085db0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 62483: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
__________________________ TestEsys.test_pcr_allocate __________________________

self = <test.test_esapi.TestEsys testMethod=test_pcr_allocate>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40051f1f60>, tcti = 'swtpm:port=4191'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=4191'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40051f0190>, name = b'swtpm'
conf = b'port=4191'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40051f39a0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 4191: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________________ TestEsys.test_pcr_event ____________________________

self = <test.test_esapi.TestEsys testMethod=test_pcr_event>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40055507f0>
tcti = 'swtpm:port=27530'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=27530'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005552e90>, name = b'swtpm'
conf = b'port=27530'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40055518d0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 27530: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________________ TestEsys.test_pcr_extend ___________________________

self = <test.test_esapi.TestEsys testMethod=test_pcr_extend>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005a2a230>
tcti = 'swtpm:port=63830'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=63830'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005a28d60>, name = b'swtpm'
conf = b'port=63830'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005a28d30>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 63830: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
____________________________ TestEsys.test_pcr_read ____________________________

self = <test.test_esapi.TestEsys testMethod=test_pcr_read>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40059c8be0>
tcti = 'swtpm:port=28260'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=28260'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40059c8730>, name = b'swtpm'
conf = b'port=28260'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40059ca1a0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 28260: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________________ TestEsys.test_pcr_reset ____________________________

self = <test.test_esapi.TestEsys testMethod=test_pcr_reset>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40052d6710>, tcti = 'swtpm:port=8924'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=8924'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40052d4100>, name = b'swtpm'
conf = b'port=8924'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40052d68c0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 8924: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
______________________ TestEsys.test_pcr_set_auth_policy _______________________

self = <test.test_esapi.TestEsys testMethod=test_pcr_set_auth_policy>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40059a3e50>, tcti = 'swtpm:port=4796'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=4796'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40059a3c70>, name = b'swtpm'
conf = b'port=4796'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40059a3a60>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 4796: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_______________________ TestEsys.test_pcr_set_auth_value _______________________

self = <test.test_esapi.TestEsys testMethod=test_pcr_set_auth_value>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400406c490>
tcti = 'swtpm:port=11827'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=11827'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400406ff70>, name = b'swtpm'
conf = b'port=11827'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400406d420>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 11827: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
______________ TestEsys.test_plain_nv_define_write_read_undefine _______________

self = <test.test_esapi.TestEsys testMethod=test_plain_nv_define_write_read_undefine>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005883c70>
tcti = 'swtpm:port=54654'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=54654'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005882530>, name = b'swtpm'
conf = b'port=54654'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005883760>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 54654: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_______________________ TestEsys.test_policy_auth_value ________________________

self = <test.test_esapi.TestEsys testMethod=test_policy_auth_value>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40052d6d10>
tcti = 'swtpm:port=41854'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=41854'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40052d5060>, name = b'swtpm'
conf = b'port=41854'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40052d7220>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 41854: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
________________________ TestEsys.test_policy_authorize ________________________

self = <test.test_esapi.TestEsys testMethod=test_policy_authorize>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400553d210>
tcti = 'swtpm:port=43005'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=43005'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400553f5b0>, name = b'swtpm'
conf = b'port=43005'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400553faf0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 43005: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
______________________ TestEsys.test_policy_authorize_nv _______________________

self = <test.test_esapi.TestEsys testMethod=test_policy_authorize_nv>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40051c6290>
tcti = 'swtpm:port=31382'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=31382'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40051c57e0>, name = b'swtpm'
conf = b'port=31382'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40051c6140>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 31382: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
______________________ TestEsys.test_policy_command_code _______________________

self = <test.test_esapi.TestEsys testMethod=test_policy_command_code>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4003fd9030>
tcti = 'swtpm:port=46995'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=46995'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4003fdb550>, name = b'swtpm'
conf = b'port=46995'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4003fd9780>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 46995: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
______________________ TestEsys.test_policy_counter_timer ______________________

self = <test.test_esapi.TestEsys testMethod=test_policy_counter_timer>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005772980>
tcti = 'swtpm:port=27324'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=27324'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005771450>, name = b'swtpm'
conf = b'port=27324'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005773370>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 27324: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________________ TestEsys.test_policy_cp_hash _________________________

self = <test.test_esapi.TestEsys testMethod=test_policy_cp_hash>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400583e500>
tcti = 'swtpm:port=29371'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=29371'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400583d570>, name = b'swtpm'
conf = b'port=29371'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400583e170>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 29371: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________ TestEsys.test_policy_duplication_select ____________________

self = <test.test_esapi.TestEsys testMethod=test_policy_duplication_select>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40051f25c0>
tcti = 'swtpm:port=18714'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=18714'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40051f01c0>, name = b'swtpm'
conf = b'port=18714'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40051f2740>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 18714: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_______________________ TestEsys.test_policy_get_digest ________________________

self = <test.test_esapi.TestEsys testMethod=test_policy_get_digest>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400583cca0>
tcti = 'swtpm:port=52876'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=52876'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400583c790>, name = b'swtpm'
conf = b'port=52876'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400583c910>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 52876: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
________________________ TestEsys.test_policy_locality _________________________

self = <test.test_esapi.TestEsys testMethod=test_policy_locality>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005404640>
tcti = 'swtpm:port=31431'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=31431'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40054062f0>, name = b'swtpm'
conf = b'port=31431'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40054066e0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 31431: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
________________________ TestEsys.test_policy_name_hash ________________________

self = <test.test_esapi.TestEsys testMethod=test_policy_name_hash>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40058b6ec0>
tcti = 'swtpm:port=53815'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=53815'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40058b79a0>, name = b'swtpm'
conf = b'port=53815'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40058b6410>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 53815: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________________ TestEsys.test_policy_nv ____________________________

self = <test.test_esapi.TestEsys testMethod=test_policy_nv>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400406ec20>
tcti = 'swtpm:port=13504'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=13504'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400406f160>, name = b'swtpm'
conf = b'port=13504'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400406ed10>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 13504: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_______________________ TestEsys.test_policy_nv_written ________________________

self = <test.test_esapi.TestEsys testMethod=test_policy_nv_written>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005811ff0>
tcti = 'swtpm:port=29946'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=29946'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005812b90>, name = b'swtpm'
conf = b'port=29946'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005813b50>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 29946: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________________ TestEsys.test_policy_or ____________________________

self = <test.test_esapi.TestEsys testMethod=test_policy_or>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4003f96500>
tcti = 'swtpm:port=11468'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=11468'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4003f97970>, name = b'swtpm'
conf = b'port=11468'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4003f96590>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 11468: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
________________________ TestEsys.test_policy_password _________________________

self = <test.test_esapi.TestEsys testMethod=test_policy_password>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005438580>
tcti = 'swtpm:port=33581'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=33581'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400543bd30>, name = b'swtpm'
conf = b'port=33581'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400543ac50>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 33581: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________________ TestEsys.test_policy_pcr ___________________________

self = <test.test_esapi.TestEsys testMethod=test_policy_pcr>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40059b9d20>
tcti = 'swtpm:port=34466'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=34466'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40059b84c0>, name = b'swtpm'
conf = b'port=34466'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40059b96c0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 34466: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
____________________ TestEsys.test_policy_physical_presence ____________________

self = <test.test_esapi.TestEsys testMethod=test_policy_physical_presence>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40054ff100>
tcti = 'swtpm:port=63147'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=63147'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40054ff670>, name = b'swtpm'
conf = b'port=63147'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40054fee90>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 63147: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________________ TestEsys.test_policy_secret __________________________

self = <test.test_esapi.TestEsys testMethod=test_policy_secret>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40059b9330>, tcti = 'swtpm:port=9551'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=9551'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40059bb070>, name = b'swtpm'
conf = b'port=9551'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40059ba920>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 9551: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________________ TestEsys.test_policy_signed __________________________

self = <test.test_esapi.TestEsys testMethod=test_policy_signed>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4003f34970>
tcti = 'swtpm:port=13154'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=13154'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4003f36e00>, name = b'swtpm'
conf = b'port=13154'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4003f37b80>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 13154: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
________________________ TestEsys.test_policy_template _________________________

self = <test.test_esapi.TestEsys testMethod=test_policy_template>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005a2b7c0>, tcti = 'swtpm:port=7696'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=7696'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005a29e10>, name = b'swtpm'
conf = b'port=7696'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005a2a1d0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 7696: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________________ TestEsys.test_policy_ticket __________________________

self = <test.test_esapi.TestEsys testMethod=test_policy_ticket>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4003f359f0>, tcti = 'swtpm:port=6766'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=6766'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4003f375b0>, name = b'swtpm'
conf = b'port=6766'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4003f34490>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 6766: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________________ TestEsys.test_policyrestart __________________________

self = <test.test_esapi.TestEsys testMethod=test_policyrestart>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40040865c0>
tcti = 'swtpm:port=58935'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=58935'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40040855a0>, name = b'swtpm'
conf = b'port=58935'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4004084580>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 58935: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
__________________________ TestEsys.test_pp_commands ___________________________

self = <test.test_esapi.TestEsys testMethod=test_pp_commands>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005a2c940>
tcti = 'swtpm:port=27266'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=27266'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005a2ef50>, name = b'swtpm'
conf = b'port=27266'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005a2fa30>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 27266: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_____________________________ TestEsys.test_quote ______________________________

self = <test.test_esapi.TestEsys testMethod=test_quote>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40053045e0>
tcti = 'swtpm:port=34601'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=34601'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005306c50>, name = b'swtpm'
conf = b'port=34601'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005305450>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 34601: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________________ TestEsys.test_read_clock ___________________________

self = <test.test_esapi.TestEsys testMethod=test_read_clock>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40059f4910>
tcti = 'swtpm:port=30990'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=30990'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40059f47f0>, name = b'swtpm'
conf = b'port=30990'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40059f6470>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 30990: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________________ TestEsys.test_readpublic ___________________________

self = <test.test_esapi.TestEsys testMethod=test_readpublic>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4003f94d90>
tcti = 'swtpm:port=34506'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=34506'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4003f97520>, name = b'swtpm'
conf = b'port=34506'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4003f94310>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 34506: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________________ TestEsys.test_ref_parent ___________________________

self = <test.test_esapi.TestEsys testMethod=test_ref_parent>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40058bd6f0>
tcti = 'swtpm:port=53557'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=53557'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40058bc310>, name = b'swtpm'
conf = b'port=53557'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40058bd270>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 53557: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_____________________________ TestEsys.test_rewrap _____________________________

self = <test.test_esapi.TestEsys testMethod=test_rewrap>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005255b40>
tcti = 'swtpm:port=30725'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=30725'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005255ea0>, name = b'swtpm'
conf = b'port=30725'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005257100>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 30725: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
__________________________ TestEsys.test_rsa_enc_dec ___________________________

self = <test.test_esapi.TestEsys testMethod=test_rsa_enc_dec>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005329600>
tcti = 'swtpm:port=41204'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=41204'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40053289d0>, name = b'swtpm'
conf = b'port=41204'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005328700>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 41204: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_____________________ TestEsys.test_rsa_enc_dec_with_label _____________________

self = <test.test_esapi.TestEsys testMethod=test_rsa_enc_dec_with_label>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40059b8df0>
tcti = 'swtpm:port=58889'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=58889'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40059b8370>, name = b'swtpm'
conf = b'port=58889'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40059ba350>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 58889: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_______________________ TestEsys.test_set_algorithm_set ________________________

self = <test.test_esapi.TestEsys testMethod=test_set_algorithm_set>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4003f2a050>
tcti = 'swtpm:port=35206'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=35206'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4003f28190>, name = b'swtpm'
conf = b'port=35206'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4003f28430>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 35206: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________ TestEsys.test_set_command_code_audit_status __________________

self = <test.test_esapi.TestEsys testMethod=test_set_command_code_audit_status>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005772b00>
tcti = 'swtpm:port=31232'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=31232'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005771f00>, name = b'swtpm'
conf = b'port=31232'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40057723e0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 31232: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_______________________ TestEsys.test_set_primary_policy _______________________

self = <test.test_esapi.TestEsys testMethod=test_set_primary_policy>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005a26770>
tcti = 'swtpm:port=18999'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=18999'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005a268f0>, name = b'swtpm'
conf = b'port=18999'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005a26fe0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 18999: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
__________________________ TestEsys.test_shutdown_bad __________________________

self = <test.test_esapi.TestEsys testMethod=test_shutdown_bad>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005550be0>
tcti = 'swtpm:port=21705'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=21705'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005552e30>, name = b'swtpm'
conf = b'port=21705'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005553340>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 21705: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________________ TestEsys.test_shutdown_clear _________________________

self = <test.test_esapi.TestEsys testMethod=test_shutdown_clear>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40059ca170>
tcti = 'swtpm:port=10723'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=10723'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40059caec0>, name = b'swtpm'
conf = b'port=10723'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40059c8790>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 10723: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
________________________ TestEsys.test_shutdown_no_arg _________________________

self = <test.test_esapi.TestEsys testMethod=test_shutdown_no_arg>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40058404f0>
tcti = 'swtpm:port=62670'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=62670'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005840670>, name = b'swtpm'
conf = b'port=62670'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40058434c0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 62670: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________________ TestEsys.test_shutdown_state _________________________

self = <test.test_esapi.TestEsys testMethod=test_shutdown_state>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40054feb00>
tcti = 'swtpm:port=40613'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=40613'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40054fe620>, name = b'swtpm'
conf = b'port=40613'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40054fc6d0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 40613: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
______________________________ TestEsys.test_sign ______________________________

self = <test.test_esapi.TestEsys testMethod=test_sign>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400583d390>
tcti = 'swtpm:port=17188'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=17188'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400583c430>, name = b'swtpm'
conf = b'port=17188'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400583c520>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 17188: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________ TestEsys.test_start_auth_session_enckey ____________________

self = <test.test_esapi.TestEsys testMethod=test_start_auth_session_enckey>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400553e320>
tcti = 'swtpm:port=14481'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=14481'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400553eef0>, name = b'swtpm'
conf = b'port=14481'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400553eb60>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 14481: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_______________ TestEsys.test_start_auth_session_enckey_bindkey ________________

self = <test.test_esapi.TestEsys testMethod=test_start_auth_session_enckey_bindkey>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005856020>
tcti = 'swtpm:port=47999'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=47999'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005857b80>, name = b'swtpm'
conf = b'port=47999'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40058543a0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 47999: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________ TestEsys.test_start_auth_session_noncecaller _________________

self = <test.test_esapi.TestEsys testMethod=test_start_auth_session_noncecaller>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4003f24df0>
tcti = 'swtpm:port=19424'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=19424'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4003f24460>, name = b'swtpm'
conf = b'port=19424'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4003f24520>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 19424: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_______________ TestEsys.test_start_auth_session_noncecaller_bad _______________

self = <test.test_esapi.TestEsys testMethod=test_start_auth_session_noncecaller_bad>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005a50910>
tcti = 'swtpm:port=49453'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=49453'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005a50040>, name = b'swtpm'
conf = b'port=49453'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005a52d40>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 49453: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
__________________________ TestEsys.test_stir_random ___________________________

self = <test.test_esapi.TestEsys testMethod=test_stir_random>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005883610>, tcti = 'swtpm:port=5546'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=5546'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005880d30>, name = b'swtpm'
conf = b'port=5546'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005883d90>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 5546: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________________ TestEsys.test_test_parms ___________________________

self = <test.test_esapi.TestEsys testMethod=test_test_parms>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40057d0bb0>
tcti = 'swtpm:port=15079'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=15079'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40057d17b0>, name = b'swtpm'
conf = b'port=15079'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40057d3f40>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 15079: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_______________________ TestEsys.test_tr_get_tpm_handle ________________________

self = <test.test_esapi.TestEsys testMethod=test_tr_get_tpm_handle>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400553ed40>
tcti = 'swtpm:port=32296'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=32296'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400553e0e0>, name = b'swtpm'
conf = b'port=32296'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400553e920>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 32296: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_____________________ TestEsys.test_tr_sess_set_attributes _____________________

self = <test.test_esapi.TestEsys testMethod=test_tr_sess_set_attributes>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400547b340>
tcti = 'swtpm:port=63605'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=63605'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400547bc40>, name = b'swtpm'
conf = b'port=63605'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400547bd30>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 63605: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_____________________________ TestEsys.test_unseal _____________________________

self = <test.test_esapi.TestEsys testMethod=test_unseal>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40059b9180>
tcti = 'swtpm:port=26203'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=26203'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40059b9ea0>, name = b'swtpm'
conf = b'port=26203'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40059b9c90>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 26203: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
________________________ TestEsys.test_vendor_tcg_test _________________________

self = <test.test_esapi.TestEsys testMethod=test_vendor_tcg_test>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400547a8f0>
tcti = 'swtpm:port=16606'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=16606'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400547b6d0>, name = b'swtpm'
conf = b'port=16606'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400547bac0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 16606: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
________________________ TestEsys.test_verify_signature ________________________

self = <test.test_esapi.TestEsys testMethod=test_verify_signature>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400543a8c0>
tcti = 'swtpm:port=33470'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=33470'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400543b700>, name = b'swtpm'
conf = b'port=33470'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400543b490>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 33470: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________________ TestEsys.test_z_gen_2_phase __________________________

self = <test.test_esapi.TestEsys testMethod=test_z_gen_2_phase>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005550d30>
tcti = 'swtpm:port=19093'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=19093'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005551780>, name = b'swtpm'
conf = b'port=19093'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005550460>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 19093: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_____________________________ TestTCTI.test_cancel _____________________________

self = <test.test_tcti.TestTCTI testMethod=test_cancel>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40057d3670>, tcti = 'swtpm:port=5061'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=5061'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40057d2470>, name = b'swtpm'
conf = b'port=5061'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40057d22c0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 5061: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
____________________________ TestTCTI.test_finalize ____________________________

self = <test.test_tcti.TestTCTI testMethod=test_finalize>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005857d60>, tcti = 'swtpm:port=3755'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=3755'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005857580>, name = b'swtpm'
conf = b'port=3755'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005855f00>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 3755: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
________________________ TestTCTI.test_get_poll_handles ________________________

self = <test.test_tcti.TestTCTI testMethod=test_get_poll_handles>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005bddae0>
tcti = 'swtpm:port=59025'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=59025'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005bdf2b0>, name = b'swtpm'
conf = b'port=59025'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005bde050>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 59025: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
______________________________ TestTCTI.test_init ______________________________

self = <test.test_tcti.TestTCTI testMethod=test_init>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40058be230>, tcti = 'swtpm:port=7025'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=7025'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40058bc100>, name = b'swtpm'
conf = b'port=7025'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40058bd780>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 7025: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
__________________________ TestTCTI.test_make_sticky ___________________________

self = <test.test_tcti.TestTCTI testMethod=test_make_sticky>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005868eb0>
tcti = 'swtpm:port=59983'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=59983'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400586ac50>, name = b'swtpm'
conf = b'port=59983'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005868490>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 59983: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
__________________________ TestTCTI.test_set_locality __________________________

self = <test.test_tcti.TestTCTI testMethod=test_set_locality>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40058578e0>, tcti = 'swtpm:port=4020'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=4020'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005856aa0>, name = b'swtpm'
conf = b'port=4020'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005856380>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 4020: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
____________________________ TestTCTI.test_tctildr _____________________________

self = <test.test_tcti.TestTCTI testMethod=test_tctildr>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005841ae0>
tcti = 'swtpm:port=50733'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=50733'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005843700>, name = b'swtpm'
conf = b'port=50733'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005840430>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 50733: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
________________________ TestTCTI.test_transmit_receive ________________________

self = <test.test_tcti.TestTCTI testMethod=test_transmit_receive>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005bd5030>
tcti = 'swtpm:port=27783'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=27783'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005bd69b0>, name = b'swtpm'
conf = b'port=27783'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005bd6a40>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 27783: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________________ TSSKeyTest.test_bad_oid ____________________________

self = <test.test_tsskey.TSSKeyTest testMethod=test_bad_oid>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005841510>
tcti = 'swtpm:port=65480'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=65480'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005841f90>, name = b'swtpm'
conf = b'port=65480'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005841000>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 65480: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________________ TSSKeyTest.test_bad_pem_type _________________________

self = <test.test_tsskey.TSSKeyTest testMethod=test_bad_pem_type>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400541bd90>
tcti = 'swtpm:port=45755'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=45755'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40054195a0>, name = b'swtpm'
conf = b'port=45755'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400541bca0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 45755: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_______________________ TSSKeyTest.test_create_load_ecc ________________________

self = <test.test_tsskey.TSSKeyTest testMethod=test_create_load_ecc>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005a29750>
tcti = 'swtpm:port=48634'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=48634'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005a28af0>, name = b'swtpm'
conf = b'port=48634'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005a29b10>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 48634: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________ TSSKeyTest.test_create_load_ecc_password ___________________

self = <test.test_tsskey.TSSKeyTest testMethod=test_create_load_ecc_password>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005b2a050>
tcti = 'swtpm:port=44598'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=44598'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005b2a140>, name = b'swtpm'
conf = b'port=44598'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005b2a0b0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 44598: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_______________________ TSSKeyTest.test_create_load_rsa ________________________

self = <test.test_tsskey.TSSKeyTest testMethod=test_create_load_rsa>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40062f7f70>
tcti = 'swtpm:port=52663'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=52663'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40062f7580>, name = b'swtpm'
conf = b'port=52663'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40062f5e70>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 52663: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_______________ TSSKeyTest.test_create_no_password_load_password _______________

self = <test.test_tsskey.TSSKeyTest testMethod=test_create_no_password_load_password>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005842350>
tcti = 'swtpm:port=43606'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=43606'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005840910>, name = b'swtpm'
conf = b'port=43606'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40058408b0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 43606: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_______________ TSSKeyTest.test_create_password_load_no_password _______________

self = <test.test_tsskey.TSSKeyTest testMethod=test_create_password_load_no_password>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4003f37460>
tcti = 'swtpm:port=42567'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=42567'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4003f360e0>, name = b'swtpm'
conf = b'port=42567'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4003f36530>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 42567: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
____________________________ TSSKeyTest.test_no_ecc ____________________________

self = <test.test_tsskey.TSSKeyTest testMethod=test_no_ecc>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4004086080>
tcti = 'swtpm:port=31107'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=31107'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4004087dc0>, name = b'swtpm'
conf = b'port=31107'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4004084370>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 31107: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
________________________ TSSKeyTest.test_no_ecc_no_rsa _________________________

self = <test.test_tsskey.TSSKeyTest testMethod=test_no_ecc_no_rsa>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005831d20>
tcti = 'swtpm:port=34541'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=34541'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005830f70>, name = b'swtpm'
conf = b'port=34541'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005833670>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 34541: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
____________________ TSSKeyTest.test_persistent_parent_ecc _____________________

self = <test.test_tsskey.TSSKeyTest testMethod=test_persistent_parent_ecc>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400547b8b0>
tcti = 'swtpm:port=60020'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=60020'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005479ea0>, name = b'swtpm'
conf = b'port=60020'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400547bdc0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 60020: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
____________________ TSSKeyTest.test_persistent_parent_rsa _____________________

self = <test.test_tsskey.TSSKeyTest testMethod=test_persistent_parent_rsa>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4003f27dc0>
tcti = 'swtpm:port=11718'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=11718'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4003f27130>, name = b'swtpm'
conf = b'port=11718'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4003f24250>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 11718: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________________ TSSKeyTest.test_rsa_frompem __________________________

self = <test.test_tsskey.TSSKeyTest testMethod=test_rsa_frompem>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400553f4c0>
tcti = 'swtpm:port=20142'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=20142'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400553c6a0>, name = b'swtpm'
conf = b'port=20142'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400553f820>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 20142: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
__________________________ TSSKeyTest.test_rsa_topem ___________________________

self = <test.test_tsskey.TSSKeyTest testMethod=test_rsa_topem>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4003f28e50>
tcti = 'swtpm:port=31752'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=31752'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4003f2bd30>, name = b'swtpm'
conf = b'port=31752'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4003f29570>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 31752: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
______________________ TestUtils.test_MakeCredential_ecc _______________________

self = <test.test_utils.TestUtils testMethod=test_MakeCredential_ecc>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40052d5900>, tcti = 'swtpm:port=9260'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=9260'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40052d6f50>, name = b'swtpm'
conf = b'port=9260'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40052d5b40>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 9260: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
______________________ TestUtils.test_MakeCredential_rsa _______________________

self = <test.test_utils.TestUtils testMethod=test_MakeCredential_rsa>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40052485e0>
tcti = 'swtpm:port=60753'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=60753'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005248d00>, name = b'swtpm'
conf = b'port=60753'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400524ba90>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 60753: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________________ TestUtils.test_Wrap_ecc ____________________________

self = <test.test_utils.TestUtils testMethod=test_Wrap_ecc>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40062f7100>
tcti = 'swtpm:port=10153'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=10153'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40062f4b50>, name = b'swtpm'
conf = b'port=10153'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40062f6320>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 10153: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
___________________________ TestUtils.test_Wrap_rsa ____________________________

self = <test.test_utils.TestUtils testMethod=test_Wrap_rsa>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005b29cc0>
tcti = 'swtpm:port=46005'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=46005'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005b2bd90>, name = b'swtpm'
conf = b'port=46005'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005b2b010>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 46005: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________________ TestUtils.test_create_ek_bad _________________________

self = <test.test_utils.TestUtils testMethod=test_create_ek_bad>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005bdd600>
tcti = 'swtpm:port=58300'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=58300'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005bde380>, name = b'swtpm'
conf = b'port=58300'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005bde740>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 58300: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________________ TestUtils.test_create_ek_ecc _________________________

self = <test.test_utils.TestUtils testMethod=test_create_ek_ecc>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40054a2e00>
tcti = 'swtpm:port=12009'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=12009'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40054a2c20>, name = b'swtpm'
conf = b'port=12009'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40054a36d0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 12009: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_____________________ TestUtils.test_create_ek_high_ecc256 _____________________

self = <test.test_utils.TestUtils testMethod=test_create_ek_high_ecc256>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005bdcfa0>
tcti = 'swtpm:port=23549'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=23549'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005bdff10>, name = b'swtpm'
conf = b'port=23549'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005bdd3c0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 23549: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
____________________ TestUtils.test_create_ek_high_rsa2048 _____________________

self = <test.test_utils.TestUtils testMethod=test_create_ek_high_rsa2048>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40058bf670>
tcti = 'swtpm:port=11718'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=11718'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40058bd600>, name = b'swtpm'
conf = b'port=11718'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40058bd7e0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 11718: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_________________________ TestUtils.test_create_ek_rsa _________________________

self = <test.test_utils.TestUtils testMethod=test_create_ek_rsa>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40063131c0>
tcti = 'swtpm:port=23536'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=23536'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40063133d0>, name = b'swtpm'
conf = b'port=23536'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4006310610>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 23536: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
______________________ TestUtils.test_create_ek_template _______________________

self = <test.test_utils.TestUtils testMethod=test_create_ek_template>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40055bdf30>
tcti = 'swtpm:port=40005'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=40005'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40055bf6d0>, name = b'swtpm'
conf = b'port=40005'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40055bf3a0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 40005: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_______________________ TestUtils.test_generate_seed_ecc _______________________

self = <test.test_utils.TestUtils testMethod=test_generate_seed_ecc>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005b866b0>
tcti = 'swtpm:port=63232'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=63232'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005b845b0>, name = b'swtpm'
conf = b'port=63232'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005b87160>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 63232: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_______________________ TestUtils.test_generate_seed_rsa _______________________

self = <test.test_utils.TestUtils testMethod=test_generate_seed_rsa>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400531d450>
tcti = 'swtpm:port=13979'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=13979'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400531f160>, name = b'swtpm'
conf = b'port=13979'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400531d000>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 13979: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
________ TestUtils.test_tpm_export_rsa_child_rsa_parent_with_inner_key _________

self = <test.test_utils.TestUtils testMethod=test_tpm_export_rsa_child_rsa_parent_with_inner_key>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x4005419480>, tcti = 'swtpm:port=8474'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=8474'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40054193c0>, name = b'swtpm'
conf = b'port=8474'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005418970>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 8474: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
__________________ TestUtils.test_unwrap_ec_parent_rsa_child ___________________

self = <test.test_utils.TestUtils testMethod=test_unwrap_ec_parent_rsa_child>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40058802e0>
tcti = 'swtpm:port=14242'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=14242'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005880250>, name = b'swtpm'
conf = b'port=14242'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x4005881960>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 14242: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_____________ TestUtils.test_unwrap_ec_parent_rsa_child_outerwrap ______________

self = <test.test_utils.TestUtils testMethod=test_unwrap_ec_parent_rsa_child_outerwrap>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40062d5cf0>
tcti = 'swtpm:port=49224'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=49224'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x40062d7970>, name = b'swtpm'
conf = b'port=49224'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40062d6ec0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 49224: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
__________________ TestUtils.test_unwrap_rsa_parent_rsa_child __________________

self = <test.test_utils.TestUtils testMethod=test_unwrap_rsa_parent_rsa_child>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x400578bee0>
tcti = 'swtpm:port=28753'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=28753'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x400578b070>, name = b'swtpm'
conf = b'port=28753'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x400578b5b0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 28753: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
_____________ TestUtils.test_unwrap_rsa_parent_rsa_child_outerwrap _____________

self = <test.test_utils.TestUtils testMethod=test_unwrap_rsa_parent_rsa_child_outerwrap>

    def setUp(self):
        super().setUp()
        try:
            # use str initializer here to test string inputs to ESAPI constructor
>           with ESAPI(self.tpm.tcti_name_conf) as ectx:

test/TSS2_BaseTest.py:198: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.ESAPI.ESAPI object at 0x40058320e0>
tcti = 'swtpm:port=54359'

    def __init__(self, tcti: Union[TCTI, str, None] = None):
    
        if not isinstance(tcti, (TCTI, type(None), str)):
            raise TypeError(
                f"Expected tcti to be type TCTI, str or None, got {type(tcti)}"
            )
    
        self._did_load_tcti = False
    
        # support tpm2-tools style tcti strings
        if isinstance(tcti, str):
            self._did_load_tcti = True
>           tcti = TCTILdr.parse(tcti)

tpm2_pytss/ESAPI.py:123: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'tpm2_pytss.TCTILdr.TCTILdr'>, tcti_name_conf = 'swtpm:port=54359'

    @classmethod
    def parse(cls, tcti_name_conf: str):
    
        chunks = tcti_name_conf.split(":", 1)
        if len(chunks) > 2:
            raise RuntimeError(f"Expected only 1 : in TCTI str, got {len(chunks)}")
        name = chunks[0]
        conf = chunks[1] if len(chunks) == 2 else None
    
>       return cls(name, conf)

tpm2_pytss/TCTILdr.py:54: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tpm2_pytss.TCTILdr.TCTILdr object at 0x4005832410>, name = b'swtpm'
conf = b'port=54359'

    def __init__(self, name=None, conf=None):
    
        self._ctx_pp = ffi.new("TSS2_TCTI_CONTEXT **")
    
        if name is None:
            name = ffi.NULL
        elif isinstance(name, str):
            name = name.encode()
    
        if conf is None:
            conf = ffi.NULL
        elif isinstance(conf, str):
            conf = conf.encode()
    
        if not isinstance(name, (bytes, type(ffi.NULL))):
            raise TypeError(f"name must be of type bytes, got {type(name)}")
    
        if not isinstance(conf, (bytes, type(ffi.NULL))):
            raise TypeError(f"conf must be of type bytes, got {type(name)}")
    
>       _chkrc(lib.Tss2_TctiLdr_Initialize_Ex(name, conf, self._ctx_pp))

tpm2_pytss/TCTILdr.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

rc = 655370, acceptable = [0]

    def _chkrc(rc, acceptable=None):
        if acceptable is None:
            acceptable = []
        elif isinstance(acceptable, int):
            acceptable = [acceptable]
        acceptable += [lib.TPM2_RC_SUCCESS]
        if rc not in acceptable:
>           raise TSS2_Exception(rc)
E           tpm2_pytss.TSS2_Exception.TSS2_Exception: tcti:IO failure

tpm2_pytss/internal/utils.py:32: TSS2_Exception

During handling of the above exception, another exception occurred:
test/TSS2_BaseTest.py:202: in setUp
    self.tpm.close()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <test.TSS2_BaseTest.SwtpmSimulator object at 0x40058337f0>

    def close(self):
>       self.tpm.terminate()
E       AttributeError: 'NoneType' object has no attribute 'terminate'

test/TSS2_BaseTest.py:51: AttributeError
----------------------------- Captured stderr call -----------------------------
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
swtpm: seccomp_load failed with errno 125: Operation canceled
WARNING:tcti:src/util/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 54359: errno 111: Connection refused 
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:614:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket 
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:154:tcti_from_file() Could not initialize TCTI file: swtpm 
ERROR:tcti:src/tss2-tcti/tctildr.c:428:Tss2_TctiLdr_Initialize_Ex() Failed to instantiate TCTI 
=============================== warnings summary ===============================
tpm2_pytss/internal/utils.py:5
  /build/python-tpm2-pytss/src/tpm2-pytss/tpm2_pytss/internal/utils.py:5: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
    from distutils.version import LooseVersion

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED test/test_crypto.py::CryptoTest::test_ecc_bad_curves - AttributeError:...
FAILED test/test_crypto.py::CryptoTest::test_encrypted_key - AttributeError: ...
FAILED test/test_crypto.py::CryptoTest::test_from_pem_with_scheme - Attribute...
FAILED test/test_crypto.py::CryptoTest::test_from_pem_with_symmetric - Attrib...
FAILED test/test_crypto.py::CryptoTest::test_get_alg - AttributeError: 'NoneT...
FAILED test/test_crypto.py::CryptoTest::test_kdfa - AttributeError: 'NoneType...
FAILED test/test_crypto.py::CryptoTest::test_kdfe - AttributeError: 'NoneType...
FAILED test/test_crypto.py::CryptoTest::test_keyedhash_from_secret - Attribut...
FAILED test/test_crypto.py::CryptoTest::test_keyedhash_from_secret_bad - Attr...
FAILED test/test_crypto.py::CryptoTest::test_keyedhash_from_secret_unseal - A...
FAILED test/test_crypto.py::CryptoTest::test_loadexternal_ecc - AttributeErro...
FAILED test/test_crypto.py::CryptoTest::test_loadexternal_public_rsa - Attrib...
FAILED test/test_crypto.py::CryptoTest::test_loadexternal_rsa - AttributeErro...
FAILED test/test_crypto.py::CryptoTest::test_nv_getname - AttributeError: 'No...
FAILED test/test_crypto.py::CryptoTest::test_private_from_pem_bad_der - Attri...
FAILED test/test_crypto.py::CryptoTest::test_private_from_pem_ecc - Attribute...
FAILED test/test_crypto.py::CryptoTest::test_private_from_pem_ecc_der - Attri...
FAILED test/test_crypto.py::CryptoTest::test_private_from_pem_rsa - Attribute...
FAILED test/test_crypto.py::CryptoTest::test_private_from_pem_rsa_der - Attri...
FAILED test/test_crypto.py::CryptoTest::test_public_from_pem_bad_der - Attrib...
FAILED test/test_crypto.py::CryptoTest::test_public_from_pem_ecc - AttributeE...
FAILED test/test_crypto.py::CryptoTest::test_public_from_pem_ecc_der - Attrib...
FAILED test/test_crypto.py::CryptoTest::test_public_from_pem_ecc_der_cert - A...
FAILED test/test_crypto.py::CryptoTest::test_public_from_pem_ecc_pem_cert - A...
FAILED test/test_crypto.py::CryptoTest::test_public_from_pem_rsa - AttributeE...
FAILED test/test_crypto.py::CryptoTest::test_public_from_pem_rsa_der - Attrib...
FAILED test/test_crypto.py::CryptoTest::test_public_from_pem_rsa_der_cert - A...
FAILED test/test_crypto.py::CryptoTest::test_public_from_pem_rsa_pem_cert - A...
FAILED test/test_crypto.py::CryptoTest::test_public_from_private - AttributeE...
FAILED test/test_crypto.py::CryptoTest::test_public_from_private_der - Attrib...
FAILED test/test_crypto.py::CryptoTest::test_public_getname - AttributeError:...
FAILED test/test_crypto.py::CryptoTest::test_public_to_pem_bad_key - Attribut...
FAILED test/test_crypto.py::CryptoTest::test_public_to_pem_ecc - AttributeErr...
FAILED test/test_crypto.py::CryptoTest::test_public_to_pem_rsa - AttributeErr...
FAILED test/test_crypto.py::CryptoTest::test_rsa_exponent - AttributeError: '...
FAILED test/test_crypto.py::CryptoTest::test_ssh_key_ecc - AttributeError: 'N...
FAILED test/test_crypto.py::CryptoTest::test_symcipher_from_secret - Attribut...
FAILED test/test_crypto.py::CryptoTest::test_symcipher_from_secret_bad - Attr...
FAILED test/test_crypto.py::CryptoTest::test_symdef_to_crypt - AttributeError...
FAILED test/test_crypto.py::CryptoTest::test_topem_ecc - AttributeError: 'Non...
FAILED test/test_crypto.py::CryptoTest::test_topem_encodings - AttributeError...
FAILED test/test_crypto.py::CryptoTest::test_topem_rsa - AttributeError: 'Non...
FAILED test/test_crypto.py::CryptoTest::test_unsupported_key - AttributeError...
FAILED test/test_crypto.py::CryptoTest::test_verify_signature_bad - Attribute...
FAILED test/test_crypto.py::CryptoTest::test_verify_signature_ecc - Attribute...
FAILED test/test_crypto.py::CryptoTest::test_verify_signature_hmac - Attribut...
FAILED test/test_crypto.py::CryptoTest::test_verify_singature_rsapss - Attrib...
FAILED test/test_crypto.py::CryptoTest::test_verify_singature_rsassa - Attrib...
FAILED test/test_esapi.py::TestEsys::test_TPMS_CONTEXT_to_tools - AttributeEr...
FAILED test/test_esapi.py::TestEsys::test_activate_credential - AttributeErro...
FAILED test/test_esapi.py::TestEsys::test_certify - AttributeError: 'NoneType...
FAILED test/test_esapi.py::TestEsys::test_certify_creation - AttributeError: ...
FAILED test/test_esapi.py::TestEsys::test_change_eps - AttributeError: 'NoneT...
FAILED test/test_esapi.py::TestEsys::test_change_pps - AttributeError: 'NoneT...
FAILED test/test_esapi.py::TestEsys::test_clear - AttributeError: 'NoneType' ...
FAILED test/test_esapi.py::TestEsys::test_clearcontrol - AttributeError: 'Non...
FAILED test/test_esapi.py::TestEsys::test_clock_rate_adjust - AttributeError:...
FAILED test/test_esapi.py::TestEsys::test_clock_set - AttributeError: 'NoneTy...
FAILED test/test_esapi.py::TestEsys::test_commit - AttributeError: 'NoneType'...
FAILED test/test_esapi.py::TestEsys::test_context_save_context_load - Attribu...
FAILED test/test_esapi.py::TestEsys::test_create - AttributeError: 'NoneType'...
FAILED test/test_esapi.py::TestEsys::test_create_none - AttributeError: 'None...
FAILED test/test_esapi.py::TestEsys::test_create_primary - AttributeError: 'N...
FAILED test/test_esapi.py::TestEsys::test_create_primary_none - AttributeErro...
FAILED test/test_esapi.py::TestEsys::test_createloaded - AttributeError: 'Non...
FAILED test/test_esapi.py::TestEsys::test_createloaded_none - AttributeError:...
FAILED test/test_esapi.py::TestEsys::test_dictionary_attack_lock_reset - Attr...
FAILED test/test_esapi.py::TestEsys::test_dictionary_attack_parameters - Attr...
FAILED test/test_esapi.py::TestEsys::test_double_close - AttributeError: 'Non...
FAILED test/test_esapi.py::TestEsys::test_duplicate - AttributeError: 'NoneTy...
FAILED test/test_esapi.py::TestEsys::test_ecc_parameters - AttributeError: 'N...
FAILED test/test_esapi.py::TestEsys::test_ecdh_key_gen - AttributeError: 'Non...
FAILED test/test_esapi.py::TestEsys::test_ecdh_z_gen - AttributeError: 'NoneT...
FAILED test/test_esapi.py::TestEsys::test_encrypt_decrypt - AttributeError: '...
FAILED test/test_esapi.py::TestEsys::test_encrypt_decrypt2 - AttributeError: ...
FAILED test/test_esapi.py::TestEsys::test_esys_tr_functions - AttributeError:...
FAILED test/test_esapi.py::TestEsys::test_event_sequence_complete - Attribute...
FAILED test/test_esapi.py::TestEsys::test_evict_control - AttributeError: 'No...
FAILED test/test_esapi.py::TestEsys::test_field_upgrade_data - AttributeError...
FAILED test/test_esapi.py::TestEsys::test_field_upgrade_start - AttributeErro...
FAILED test/test_esapi.py::TestEsys::test_firmware_read - AttributeError: 'No...
FAILED test/test_esapi.py::TestEsys::test_flush_context - AttributeError: 'No...
FAILED test/test_esapi.py::TestEsys::test_fulltest_no - AttributeError: 'None...
FAILED test/test_esapi.py::TestEsys::test_fulltest_yes - AttributeError: 'Non...
FAILED test/test_esapi.py::TestEsys::test_get_capability - AttributeError: 'N...
FAILED test/test_esapi.py::TestEsys::test_get_command_audit_digest - Attribut...
FAILED test/test_esapi.py::TestEsys::test_get_random - AttributeError: 'NoneT...
FAILED test/test_esapi.py::TestEsys::test_get_session_audit_digest - Attribut...
FAILED test/test_esapi.py::TestEsys::test_get_time - AttributeError: 'NoneTyp...
FAILED test/test_esapi.py::TestEsys::test_gettcti - AttributeError: 'NoneType...
FAILED test/test_esapi.py::TestEsys::test_hash - AttributeError: 'NoneType' o...
FAILED test/test_esapi.py::TestEsys::test_hash_sequence - AttributeError: 'No...
FAILED test/test_esapi.py::TestEsys::test_hierarchy_control - AttributeError:...
FAILED test/test_esapi.py::TestEsys::test_hierarchychangeauth - AttributeErro...
FAILED test/test_esapi.py::TestEsys::test_hmac - AttributeError: 'NoneType' o...
FAILED test/test_esapi.py::TestEsys::test_hmac_sequence - AttributeError: 'No...
FAILED test/test_esapi.py::TestEsys::test_hmac_session - AttributeError: 'Non...
FAILED test/test_esapi.py::TestEsys::test_import - AttributeError: 'NoneType'...
FAILED test/test_esapi.py::TestEsys::test_incremental_resume_test - Attribute...
FAILED test/test_esapi.py::TestEsys::test_incremental_self_test - AttributeEr...
FAILED test/test_esapi.py::TestEsys::test_load - AttributeError: 'NoneType' o...
FAILED test/test_esapi.py::TestEsys::test_make_credential - AttributeError: '...
FAILED test/test_esapi.py::TestEsys::test_nv_certify - AttributeError: 'NoneT...
FAILED test/test_esapi.py::TestEsys::test_nv_change_auth - AttributeError: 'N...
FAILED test/test_esapi.py::TestEsys::test_nv_extend - AttributeError: 'NoneTy...
FAILED test/test_esapi.py::TestEsys::test_nv_global_write_lock - AttributeErr...
FAILED test/test_esapi.py::TestEsys::test_nv_increment - AttributeError: 'Non...
FAILED test/test_esapi.py::TestEsys::test_nv_read_lock - AttributeError: 'Non...
FAILED test/test_esapi.py::TestEsys::test_nv_read_public - AttributeError: 'N...
FAILED test/test_esapi.py::TestEsys::test_nv_set_bits - AttributeError: 'None...
FAILED test/test_esapi.py::TestEsys::test_nv_undefine_space_special - Attribu...
FAILED test/test_esapi.py::TestEsys::test_nv_write_lock - AttributeError: 'No...
FAILED test/test_esapi.py::TestEsys::test_object_change_auth - AttributeError...
FAILED test/test_esapi.py::TestEsys::test_pcr_allocate - AttributeError: 'Non...
FAILED test/test_esapi.py::TestEsys::test_pcr_event - AttributeError: 'NoneTy...
FAILED test/test_esapi.py::TestEsys::test_pcr_extend - AttributeError: 'NoneT...
FAILED test/test_esapi.py::TestEsys::test_pcr_read - AttributeError: 'NoneTyp...
FAILED test/test_esapi.py::TestEsys::test_pcr_reset - AttributeError: 'NoneTy...
FAILED test/test_esapi.py::TestEsys::test_pcr_set_auth_policy - AttributeErro...
FAILED test/test_esapi.py::TestEsys::test_pcr_set_auth_value - AttributeError...
FAILED test/test_esapi.py::TestEsys::test_plain_nv_define_write_read_undefine
FAILED test/test_esapi.py::TestEsys::test_policy_auth_value - AttributeError:...
FAILED test/test_esapi.py::TestEsys::test_policy_authorize - AttributeError: ...
FAILED test/test_esapi.py::TestEsys::test_policy_authorize_nv - AttributeErro...
FAILED test/test_esapi.py::TestEsys::test_policy_command_code - AttributeErro...
FAILED test/test_esapi.py::TestEsys::test_policy_counter_timer - AttributeErr...
FAILED test/test_esapi.py::TestEsys::test_policy_cp_hash - AttributeError: 'N...
FAILED test/test_esapi.py::TestEsys::test_policy_duplication_select - Attribu...
FAILED test/test_esapi.py::TestEsys::test_policy_get_digest - AttributeError:...
FAILED test/test_esapi.py::TestEsys::test_policy_locality - AttributeError: '...
FAILED test/test_esapi.py::TestEsys::test_policy_name_hash - AttributeError: ...
FAILED test/test_esapi.py::TestEsys::test_policy_nv - AttributeError: 'NoneTy...
FAILED test/test_esapi.py::TestEsys::test_policy_nv_written - AttributeError:...
FAILED test/test_esapi.py::TestEsys::test_policy_or - AttributeError: 'NoneTy...
FAILED test/test_esapi.py::TestEsys::test_policy_password - AttributeError: '...
FAILED test/test_esapi.py::TestEsys::test_policy_pcr - AttributeError: 'NoneT...
FAILED test/test_esapi.py::TestEsys::test_policy_physical_presence - Attribut...
FAILED test/test_esapi.py::TestEsys::test_policy_secret - AttributeError: 'No...
FAILED test/test_esapi.py::TestEsys::test_policy_signed - AttributeError: 'No...
FAILED test/test_esapi.py::TestEsys::test_policy_template - AttributeError: '...
FAILED test/test_esapi.py::TestEsys::test_policy_ticket - AttributeError: 'No...
FAILED test/test_esapi.py::TestEsys::test_policyrestart - AttributeError: 'No...
FAILED test/test_esapi.py::TestEsys::test_pp_commands - AttributeError: 'None...
FAILED test/test_esapi.py::TestEsys::test_quote - AttributeError: 'NoneType' ...
FAILED test/test_esapi.py::TestEsys::test_read_clock - AttributeError: 'NoneT...
FAILED test/test_esapi.py::TestEsys::test_readpublic - AttributeError: 'NoneT...
FAILED test/test_esapi.py::TestEsys::test_ref_parent - AttributeError: 'NoneT...
FAILED test/test_esapi.py::TestEsys::test_rewrap - AttributeError: 'NoneType'...
FAILED test/test_esapi.py::TestEsys::test_rsa_enc_dec - AttributeError: 'None...
FAILED test/test_esapi.py::TestEsys::test_rsa_enc_dec_with_label - AttributeE...
FAILED test/test_esapi.py::TestEsys::test_set_algorithm_set - AttributeError:...
FAILED test/test_esapi.py::TestEsys::test_set_command_code_audit_status - Att...
FAILED test/test_esapi.py::TestEsys::test_set_primary_policy - AttributeError...
FAILED test/test_esapi.py::TestEsys::test_shutdown_bad - AttributeError: 'Non...
FAILED test/test_esapi.py::TestEsys::test_shutdown_clear - AttributeError: 'N...
FAILED test/test_esapi.py::TestEsys::test_shutdown_no_arg - AttributeError: '...
FAILED test/test_esapi.py::TestEsys::test_shutdown_state - AttributeError: 'N...
FAILED test/test_esapi.py::TestEsys::test_sign - AttributeError: 'NoneType' o...
FAILED test/test_esapi.py::TestEsys::test_start_auth_session_enckey - Attribu...
FAILED test/test_esapi.py::TestEsys::test_start_auth_session_enckey_bindkey
FAILED test/test_esapi.py::TestEsys::test_start_auth_session_noncecaller - At...
FAILED test/test_esapi.py::TestEsys::test_start_auth_session_noncecaller_bad
FAILED test/test_esapi.py::TestEsys::test_stir_random - AttributeError: 'None...
FAILED test/test_esapi.py::TestEsys::test_test_parms - AttributeError: 'NoneT...
FAILED test/test_esapi.py::TestEsys::test_tr_get_tpm_handle - AttributeError:...
FAILED test/test_esapi.py::TestEsys::test_tr_sess_set_attributes - AttributeE...
FAILED test/test_esapi.py::TestEsys::test_unseal - AttributeError: 'NoneType'...
FAILED test/test_esapi.py::TestEsys::test_vendor_tcg_test - AttributeError: '...
FAILED test/test_esapi.py::TestEsys::test_verify_signature - AttributeError: ...
FAILED test/test_esapi.py::TestEsys::test_z_gen_2_phase - AttributeError: 'No...
FAILED test/test_tcti.py::TestTCTI::test_cancel - AttributeError: 'NoneType' ...
FAILED test/test_tcti.py::TestTCTI::test_finalize - AttributeError: 'NoneType...
FAILED test/test_tcti.py::TestTCTI::test_get_poll_handles - AttributeError: '...
FAILED test/test_tcti.py::TestTCTI::test_init - AttributeError: 'NoneType' ob...
FAILED test/test_tcti.py::TestTCTI::test_make_sticky - AttributeError: 'NoneT...
FAILED test/test_tcti.py::TestTCTI::test_set_locality - AttributeError: 'None...
FAILED test/test_tcti.py::TestTCTI::test_tctildr - AttributeError: 'NoneType'...
FAILED test/test_tcti.py::TestTCTI::test_transmit_receive - AttributeError: '...
FAILED test/test_tsskey.py::TSSKeyTest::test_bad_oid - AttributeError: 'NoneT...
FAILED test/test_tsskey.py::TSSKeyTest::test_bad_pem_type - AttributeError: '...
FAILED test/test_tsskey.py::TSSKeyTest::test_create_load_ecc - AttributeError...
FAILED test/test_tsskey.py::TSSKeyTest::test_create_load_ecc_password - Attri...
FAILED test/test_tsskey.py::TSSKeyTest::test_create_load_rsa - AttributeError...
FAILED test/test_tsskey.py::TSSKeyTest::test_create_no_password_load_password
FAILED test/test_tsskey.py::TSSKeyTest::test_create_password_load_no_password
FAILED test/test_tsskey.py::TSSKeyTest::test_no_ecc - AttributeError: 'NoneTy...
FAILED test/test_tsskey.py::TSSKeyTest::test_no_ecc_no_rsa - AttributeError: ...
FAILED test/test_tsskey.py::TSSKeyTest::test_persistent_parent_ecc - Attribut...
FAILED test/test_tsskey.py::TSSKeyTest::test_persistent_parent_rsa - Attribut...
FAILED test/test_tsskey.py::TSSKeyTest::test_rsa_frompem - AttributeError: 'N...
FAILED test/test_tsskey.py::TSSKeyTest::test_rsa_topem - AttributeError: 'Non...
FAILED test/test_utils.py::TestUtils::test_MakeCredential_ecc - AttributeErro...
FAILED test/test_utils.py::TestUtils::test_MakeCredential_rsa - AttributeErro...
FAILED test/test_utils.py::TestUtils::test_Wrap_ecc - AttributeError: 'NoneTy...
FAILED test/test_utils.py::TestUtils::test_Wrap_rsa - AttributeError: 'NoneTy...
FAILED test/test_utils.py::TestUtils::test_create_ek_bad - AttributeError: 'N...
FAILED test/test_utils.py::TestUtils::test_create_ek_ecc - AttributeError: 'N...
FAILED test/test_utils.py::TestUtils::test_create_ek_high_ecc256 - AttributeE...
FAILED test/test_utils.py::TestUtils::test_create_ek_high_rsa2048 - Attribute...
FAILED test/test_utils.py::TestUtils::test_create_ek_rsa - AttributeError: 'N...
FAILED test/test_utils.py::TestUtils::test_create_ek_template - AttributeErro...
FAILED test/test_utils.py::TestUtils::test_generate_seed_ecc - AttributeError...
FAILED test/test_utils.py::TestUtils::test_generate_seed_rsa - AttributeError...
FAILED test/test_utils.py::TestUtils::test_tpm_export_rsa_child_rsa_parent_with_inner_key
FAILED test/test_utils.py::TestUtils::test_unwrap_ec_parent_rsa_child - Attri...
FAILED test/test_utils.py::TestUtils::test_unwrap_ec_parent_rsa_child_outerwrap
FAILED test/test_utils.py::TestUtils::test_unwrap_rsa_parent_rsa_child - Attr...
FAILED test/test_utils.py::TestUtils::test_unwrap_rsa_parent_rsa_child_outerwrap
ERROR test/test_fapi.py::TestFapiECC::test_provision_ok - tpm2_pytss.TSS2_Exc...
ERROR test/test_fapi.py::TestFapiECC::test_provision_fail - tpm2_pytss.TSS2_E...
ERROR test/test_fapi.py::TestFapiECC::test_get_random - tpm2_pytss.TSS2_Excep...
ERROR test/test_fapi.py::TestFapiECC::test_get_random_zero - tpm2_pytss.TSS2_...
ERROR test/test_fapi.py::TestFapiECC::test_get_random_large - tpm2_pytss.TSS2...
ERROR test/test_fapi.py::TestFapiECC::test_get_random_negative - tpm2_pytss.T...
ERROR test/test_fapi.py::TestFapiECC::test_get_info - tpm2_pytss.TSS2_Excepti...
ERROR test/test_fapi.py::TestFapiECC::test_list - tpm2_pytss.TSS2_Exception.T...
ERROR test/test_fapi.py::TestFapiECC::test_list_search_path - tpm2_pytss.TSS2...
ERROR test/test_fapi.py::TestFapiECC::test_list_bad_search_path - tpm2_pytss....
ERROR test/test_fapi.py::TestFapiECC::test_create_key - tpm2_pytss.TSS2_Excep...
ERROR test/test_fapi.py::TestFapiECC::test_create_key_double_ok - tpm2_pytss....
ERROR test/test_fapi.py::TestFapiECC::test_create_key_double_fail - tpm2_pyts...
ERROR test/test_fapi.py::TestFapiECC::test_get_esys_blob_contextload - tpm2_p...
ERROR test/test_fapi.py::TestFapiECC::test_get_esys_blob_bad - tpm2_pytss.TSS...
ERROR test/test_fapi.py::TestFapiECC::test_get_esys_blob_deserialize - tpm2_p...
ERROR test/test_fapi.py::TestFapiECC::test_verify - tpm2_pytss.TSS2_Exception...
ERROR test/test_fapi.py::TestFapiECC::test_verify_fail - tpm2_pytss.TSS2_Exce...
ERROR test/test_fapi.py::TestFapiECC::test_import_key_double_ok - tpm2_pytss....
ERROR test/test_fapi.py::TestFapiECC::test_import_key_double_fail - tpm2_pyts...
ERROR test/test_fapi.py::TestFapiECC::test_import_policy_double_ok - tpm2_pyt...
ERROR test/test_fapi.py::TestFapiECC::test_import_policy_double_fail - tpm2_p...
ERROR test/test_fapi.py::TestFapiECC::test_import_exported_key - tpm2_pytss.T...
ERROR test/test_fapi.py::TestFapiECC::test_export_imported_policy - tpm2_pyts...
ERROR test/test_fapi.py::TestFapiECC::test_create_seal - tpm2_pytss.TSS2_Exce...
ERROR test/test_fapi.py::TestFapiECC::test_create_seal_double_ok - tpm2_pytss...
ERROR test/test_fapi.py::TestFapiECC::test_create_seal_double_fail - tpm2_pyt...
ERROR test/test_fapi.py::TestFapiECC::test_create_seal_random - tpm2_pytss.TS...
ERROR test/test_fapi.py::TestFapiECC::test_create_seal_both_data_and_size_fail
ERROR test/test_fapi.py::TestFapiECC::test_create_seal_neither_data_nor_size_fail
ERROR test/test_fapi.py::TestFapiECC::test_unseal - tpm2_pytss.TSS2_Exception...
ERROR test/test_fapi.py::TestFapiECC::test_quote_verify - tpm2_pytss.TSS2_Exc...
ERROR test/test_fapi.py::TestFapiECC::test_export_key - tpm2_pytss.TSS2_Excep...
ERROR test/test_fapi.py::TestFapiECC::test_delete_key - tpm2_pytss.TSS2_Excep...
ERROR test/test_fapi.py::TestFapiECC::test_set_get_description - tpm2_pytss.T...
ERROR test/test_fapi.py::TestFapiECC::test_get_empty_description - tpm2_pytss...
ERROR test/test_fapi.py::TestFapiECC::test_set_get_app_data - tpm2_pytss.TSS2...
ERROR test/test_fapi.py::TestFapiECC::test_get_no_app_data - tpm2_pytss.TSS2_...
ERROR test/test_fapi.py::TestFapiECC::test_set_get_certificate - tpm2_pytss.T...
ERROR test/test_fapi.py::TestFapiECC::test_get_empty_certificate - tpm2_pytss...
ERROR test/test_fapi.py::TestFapiECC::test_get_empty_platform_certificates_ok
ERROR test/test_fapi.py::TestFapiECC::test_get_empty_platform_certificates_fail
ERROR test/test_fapi.py::TestFapiECC::test_pcr_read - tpm2_pytss.TSS2_Excepti...
ERROR test/test_fapi.py::TestFapiECC::test_pcr_extend_read - tpm2_pytss.TSS2_...
ERROR test/test_fapi.py::TestFapiECC::test_nv_write_read - tpm2_pytss.TSS2_Ex...
ERROR test/test_fapi.py::TestFapiECC::test_nv_increment - tpm2_pytss.TSS2_Exc...
ERROR test/test_fapi.py::TestFapiECC::test_nv_pcr - tpm2_pytss.TSS2_Exception...
ERROR test/test_fapi.py::TestFapiECC::test_nv_set_bits - tpm2_pytss.TSS2_Exce...
ERROR test/test_fapi.py::TestFapiECC::test_set_auth_callback - tpm2_pytss.TSS...
ERROR test/test_fapi.py::TestFapiECC::test_unset_auth_callback - tpm2_pytss.T...
ERROR test/test_fapi.py::TestFapiECC::test_write_authorize_nv - tpm2_pytss.TS...
ERROR test/test_fapi.py::TestFapiECC::test_authorize_policy - tpm2_pytss.TSS2...
ERROR test/test_fapi.py::TestFapiECC::test_policy_signed - tpm2_pytss.TSS2_Ex...
ERROR test/test_fapi.py::TestFapiECC::test_policy_branched - tpm2_pytss.TSS2_...
ERROR test/test_fapi.py::TestFapiECC::test_policy_action - tpm2_pytss.TSS2_Ex...
ERROR test/test_fapi.py::TestFapiECC::test_sign - tpm2_pytss.TSS2_Exception.T...
ERROR test/test_fapi.py::TestFapiECC::test_get_tpm_blobs - tpm2_pytss.TSS2_Ex...
ERROR test/test_fapi.py::TestFapiRSA::test_provision_ok - tpm2_pytss.TSS2_Exc...
ERROR test/test_fapi.py::TestFapiRSA::test_provision_fail - tpm2_pytss.TSS2_E...
ERROR test/test_fapi.py::TestFapiRSA::test_get_random - tpm2_pytss.TSS2_Excep...
ERROR test/test_fapi.py::TestFapiRSA::test_get_random_zero - tpm2_pytss.TSS2_...
ERROR test/test_fapi.py::TestFapiRSA::test_get_random_large - tpm2_pytss.TSS2...
ERROR test/test_fapi.py::TestFapiRSA::test_get_random_negative - tpm2_pytss.T...
ERROR test/test_fapi.py::TestFapiRSA::test_get_info - tpm2_pytss.TSS2_Excepti...
ERROR test/test_fapi.py::TestFapiRSA::test_list - tpm2_pytss.TSS2_Exception.T...
ERROR test/test_fapi.py::TestFapiRSA::test_list_search_path - tpm2_pytss.TSS2...
ERROR test/test_fapi.py::TestFapiRSA::test_list_bad_search_path - tpm2_pytss....
ERROR test/test_fapi.py::TestFapiRSA::test_create_key - tpm2_pytss.TSS2_Excep...
ERROR test/test_fapi.py::TestFapiRSA::test_create_key_double_ok - tpm2_pytss....
ERROR test/test_fapi.py::TestFapiRSA::test_create_key_double_fail - tpm2_pyts...
ERROR test/test_fapi.py::TestFapiRSA::test_get_esys_blob_contextload - tpm2_p...
ERROR test/test_fapi.py::TestFapiRSA::test_get_esys_blob_bad - tpm2_pytss.TSS...
ERROR test/test_fapi.py::TestFapiRSA::test_get_esys_blob_deserialize - tpm2_p...
ERROR test/test_fapi.py::TestFapiRSA::test_verify - tpm2_pytss.TSS2_Exception...
ERROR test/test_fapi.py::TestFapiRSA::test_verify_fail - tpm2_pytss.TSS2_Exce...
ERROR test/test_fapi.py::TestFapiRSA::test_import_key_double_ok - tpm2_pytss....
ERROR test/test_fapi.py::TestFapiRSA::test_import_key_double_fail - tpm2_pyts...
ERROR test/test_fapi.py::TestFapiRSA::test_import_policy_double_ok - tpm2_pyt...
ERROR test/test_fapi.py::TestFapiRSA::test_import_policy_double_fail - tpm2_p...
ERROR test/test_fapi.py::TestFapiRSA::test_import_exported_key - tpm2_pytss.T...
ERROR test/test_fapi.py::TestFapiRSA::test_export_imported_policy - tpm2_pyts...
ERROR test/test_fapi.py::TestFapiRSA::test_create_seal - tpm2_pytss.TSS2_Exce...
ERROR test/test_fapi.py::TestFapiRSA::test_create_seal_double_ok - tpm2_pytss...
ERROR test/test_fapi.py::TestFapiRSA::test_create_seal_double_fail - tpm2_pyt...
ERROR test/test_fapi.py::TestFapiRSA::test_create_seal_random - tpm2_pytss.TS...
ERROR test/test_fapi.py::TestFapiRSA::test_create_seal_both_data_and_size_fail
ERROR test/test_fapi.py::TestFapiRSA::test_create_seal_neither_data_nor_size_fail
ERROR test/test_fapi.py::TestFapiRSA::test_unseal - tpm2_pytss.TSS2_Exception...
ERROR test/test_fapi.py::TestFapiRSA::test_quote_verify - tpm2_pytss.TSS2_Exc...
ERROR test/test_fapi.py::TestFapiRSA::test_export_key - tpm2_pytss.TSS2_Excep...
ERROR test/test_fapi.py::TestFapiRSA::test_delete_key - tpm2_pytss.TSS2_Excep...
ERROR test/test_fapi.py::TestFapiRSA::test_set_get_description - tpm2_pytss.T...
ERROR test/test_fapi.py::TestFapiRSA::test_get_empty_description - tpm2_pytss...
ERROR test/test_fapi.py::TestFapiRSA::test_set_get_app_data - tpm2_pytss.TSS2...
ERROR test/test_fapi.py::TestFapiRSA::test_get_no_app_data - tpm2_pytss.TSS2_...
ERROR test/test_fapi.py::TestFapiRSA::test_set_get_certificate - tpm2_pytss.T...
ERROR test/test_fapi.py::TestFapiRSA::test_get_empty_certificate - tpm2_pytss...
ERROR test/test_fapi.py::TestFapiRSA::test_get_empty_platform_certificates_ok
ERROR test/test_fapi.py::TestFapiRSA::test_get_empty_platform_certificates_fail
ERROR test/test_fapi.py::TestFapiRSA::test_pcr_read - tpm2_pytss.TSS2_Excepti...
ERROR test/test_fapi.py::TestFapiRSA::test_pcr_extend_read - tpm2_pytss.TSS2_...
ERROR test/test_fapi.py::TestFapiRSA::test_nv_write_read - tpm2_pytss.TSS2_Ex...
ERROR test/test_fapi.py::TestFapiRSA::test_nv_increment - tpm2_pytss.TSS2_Exc...
ERROR test/test_fapi.py::TestFapiRSA::test_nv_pcr - tpm2_pytss.TSS2_Exception...
ERROR test/test_fapi.py::TestFapiRSA::test_nv_set_bits - tpm2_pytss.TSS2_Exce...
ERROR test/test_fapi.py::TestFapiRSA::test_set_auth_callback - tpm2_pytss.TSS...
ERROR test/test_fapi.py::TestFapiRSA::test_unset_auth_callback - tpm2_pytss.T...
ERROR test/test_fapi.py::TestFapiRSA::test_write_authorize_nv - tpm2_pytss.TS...
ERROR test/test_fapi.py::TestFapiRSA::test_authorize_policy - tpm2_pytss.TSS2...
ERROR test/test_fapi.py::TestFapiRSA::test_policy_signed - tpm2_pytss.TSS2_Ex...
ERROR test/test_fapi.py::TestFapiRSA::test_policy_branched - tpm2_pytss.TSS2_...
ERROR test/test_fapi.py::TestFapiRSA::test_policy_action - tpm2_pytss.TSS2_Ex...
ERROR test/test_fapi.py::TestFapiRSA::test_sign - tpm2_pytss.TSS2_Exception.T...
ERROR test/test_fapi.py::TestFapiRSA::test_get_tpm_blobs - tpm2_pytss.TSS2_Ex...
ERROR test/test_fapi.py::TestFapiRSA::test_encrypt_decrypt - tpm2_pytss.TSS2_...
ERROR test/test_fapi.py::TestFapiRSA::test_encrypt_decrypt - AttributeError: ...
===== 208 failed, 155 passed, 1 warning, 116 errors in 6494.80s (1:48:14) ======
[1m[31m==> ERROR:[m[1m A failure occurred in check().[m
[1m    Aborting...[m
[1m[31m==> ERROR:[m[1m Build failed, check /var/lib/archbuild/extra-riscv64/felix28/build[m
receiving incremental file list
python-tpm2-pytss-1.1.0-1-riscv64-build.log
python-tpm2-pytss-1.1.0-1-riscv64-check.log
python-tpm2-pytss-1.1.0-1-riscv64-pkgver.log

sent 81 bytes  received 30,888 bytes  20,646.00 bytes/sec
total size is 1,102,638  speedup is 35.60
