Skip to content

render_pretty.py does not work in whonix. #1

@rjQjMqpX

Description

@rjQjMqpX

Testing operating system- whonix workstation.

Quick start works until I get to the second command for step 3.

user@host:~$ cd dtrust
user@host:~/dtrust$ python3 render_pretty.py --in build/tier2.json --out build/tier2_pretty.html --score build/tier2.score.json
Traceback (most recent call last):
  File "/home/user/dtrust/render_pretty.py", line 205, in <module>
    main()
  File "/home/user/dtrust/render_pretty.py", line 198, in main
    content.append(render_tier2(report))
                   ^^^^^^^^^^^^^^^^^^^^
  File "/home/user/dtrust/render_pretty.py", line 160, in render_tier2
    rows = "".join(f"<tr><td>{esc(k)}</td><td class='mono'>{esc(', '.join(v))}</td></tr>" for k, v in list(shadows.items())[:200])
                                                                                                           ^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'items'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions