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

`AttributeError` on `model train` #26

Closed smarbal closed 1 year ago

smarbal commented 1 year ago

Running model -v train PE-upx-dataset -a kmeans produces the following error :

$ model -v train PE-upx-dataset -a kmeans
Traceback (most recent call last):
  File "/home/user/.opt/tools/model", line 109, in <module>
    getattr(name, args.command)(**vars(args))
AttributeError: 'NoneType' object has no attribute 'train'

The error seems to be introduced from changes made in commit 04a8a0d.

dhondta commented 1 year ago

@smarbal This should be fixed. Please test.

smarbal commented 1 year ago

@dhondta. It works, thank you !