packing-box / docker-packing-box

Docker image gathering packers and tools for making datasets of packed executables and training machine learning models for packing detection
GNU General Public License v3.0
49 stars 10 forks source link

Error with `dataset plot features-compare` command #89

Closed jramhani closed 9 months ago

jramhani commented 9 months ago
$ dataset plot features-compare upx_base -d upx_altered_test_ntdll
00:00:01.170 [INFO] Computing features...
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10/10 samples • 0:00:00 • 0:00:00 • upx_base
00:00:02.114 [INFO] Computing features...
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10/10 samples • 0:00:00 • 0:00:00 • upx_altered_test_ntdll
00:00:03.946 [INFO] Preparing plot data...
Traceback (most recent call last):
  File "/home/user/.opt/tools/dataset", line 205, in <module>
    getattr(ds, args.command)(**vars(args))
  File "/home/user/.local/lib/python3.11/site-packages/pbox/core/dataset/__init__.py", line 661, in plot
    _PLOTS[subcommand](self, **kw)
  File "/home/user/.local/lib/python3.11/site-packages/pbox/helpers/figure.py", line 83, in _wrapper
    imgs = f(*a, **kw)
           ^^^^^^^^^^^
  File "/home/user/.local/lib/python3.11/site-packages/pbox/core/dataset/visualization.py", line 181, in _features_comparison_heatmap
    datasets_feats[ds.basename] = d._data.copy()
                                  ^
NameError: name 'd' is not defined. Did you mean: 'ds'?