Ledger-Donjon / rainbow

Makes Unicorn traces. Generic Side-Channel and Fault Injection simulator
GNU Lesser General Public License v3.0
172 stars 34 forks source link

rainbow/utils/plot/styles.css is missing in Python module #17

Closed aiooss-ledger closed 2 years ago

aiooss-ledger commented 2 years ago

While running rainbow/examples/HW_analysis/pin_fault.py, I get the following exception:

Traceback (most recent call last):
  File "pin_fault.py", line 91, in <module>
    viewer(e.sca_address_trace, np.array([trace, fault_trace]), highlight=1)  
  File "/xxx/rainbow/venv/lib/python3.8/site-packages/rainbow/utils/plot/__init__.py", line 29, in viewer
    gui = Interface(disassembly, traces, highlight)
  File "/xxx/rainbow/venv/lib/python3.8/site-packages/rainbow/utils/plot/interface.py", line 32, in __init__
    with open(style_file) as stylesheet:
FileNotFoundError: [Errno 2] No such file or directory: '/xxx/rainbow/venv/lib/python3.8/site-packages/rainbow/utils/plot/styles.css'

I believe styles.css should be added in MANIFEST.in to be included in the Python module.