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
44 stars 10 forks source link

ERROR: dataset plot features (true_class: NoneType object is not subscriptable) #142

Open jramhani opened 1 month ago

jramhani commented 1 month ago

dataset plot features fileless_dataset_mixed number_wx_sections

00:00:01.451 [INFO] Preparing plot data...
00:00:01.455 [INFO] Counting values for feature number_wx_sections...
Traceback (most recent call last):
  File "/home/user/.opt/tools/dataset", line 215, in <module>
    getattr(ds, args.command)(**vars(args))
  File "/home/user/.local/lib/python3.12/site-packages/pbox/core/dataset/__init__.py", line 696, in plot
    _PLOTS[subcommand](self, **kw)
  File "/home/user/.local/lib/python3.12/site-packages/pbox/helpers/figure.py", line 67, in _wrapper
    imgs = f(*a, **configure_style(**kw))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/.local/lib/python3.12/site-packages/pbox/core/dataset/visualization.py", line 72, in _features_bar_chart
    true_class_cap = true_class[0].upper() + true_class[1:]
                     ~~~~~~~~~~^^^
TypeError: 'NoneType' object is not subscriptable