Closed smarbal closed 1 year ago
@smarbal this should be fixed. You can test.
Hi @dhondta ! I had a few issues that I solved (I think) in packing-box/docker-packing-box#29.
But now I stumble on this error :
model -v visualize -e PE-upx-dataset_pe32-pe64_40_kmeans_f90
00:00:03.610 [INFO ] model - Test dataset: PE-upx-dataset(PE32,PE64)
00:00:03.611 [INFO ] model - Computing features...
Traceback (most recent call last):
File "/home/user/.opt/tools/model", line 107, in <module>
getattr(name, args.command)(**vars(args))
File "/home/user/.local/lib/python3.10/site-packages/pbox/learning/model.py", line 613, in visualize
if not self._prepare(**kw):
File "/home/user/.local/lib/python3.10/site-packages/pbox/learning/model.py", line 218, in _prepare
__parse(ds.files.listdir(is_exe), False)
File "/home/user/.local/lib/python3.10/site-packages/pbox/learning/model.py", line 198, in __parse
exe = Executable(str(exe))
File "/home/user/.local/lib/python3.10/site-packages/pbox/learning/executable.py", line 15, in __new__
Features(None) # lazily populate Features.registry at first instantiation
File "/home/user/.local/lib/python3.10/site-packages/tinyscript/preimports/log.py", line 91, in _wrapper
return f(*args, **kwargs)
File "/home/user/.local/lib/python3.10/site-packages/pbox/learning/features/__init__.py", line 66, in __init__
with Features.source.open() as f:
AttributeError: 'NoneType' object has no attribute 'open'
@smarbal the offending line appears at L65 instead of L66 in the current source code, are you sure you updated the package with pbox-update
within the container ?
Fixed by #29
Running
model visualize
without providing any specificfeatures
path produces the following error :Replacing the path by
/home/user/.opt/features.yml
seems to work as a temporary fix.