Open xambroz opened 5 years ago
@christian-intra2net, could you please have a look?
Gladly
Could be related to the fact that during rpm-building the tests run in a very minimalistic environment, e.g. without LANG set (or set to "C" maybe). I hope to have a closer look tomorrow
I can reproduce your errors by prepending "LANG=C" to the call to "python3 setup.py test". However, this problem is fixed in current master (after commit 2f7a1ef1b347a1124d01ef6559d939be5ccf50cd: "Merge pull request #365 ...")
So I suggest you create the rpm based on a newer version or you try to supply your build process with a proper LANG
@decalage2 Maybe create a new release (either 0.55 or 0.54.3) to simplify this?
Yes, I'd like to release 0.55 in the coming weeks, once I have fixed a few other issues.
Affected ool: msodde, oleobj, ooxml
Describe the bug When trying to build the oletools package for RHEL7, there is multiple 'ascii' codec encoding errors being reported by the "python3.6 setup.py test".
File/Malware sample to reproduce the bug All test cases already part of the 0.54.2b release.
How To Reproduce the bug
Expected behavior It is expected that test cases should not produce errors.
Console output / Screenshots
Version information:
Additional context When I was running the tests interactively or interactively rebuilding the package in my own RHEL7 system like "rpmbuild -ba python-oletools.spec", I have not observed these errors. It could be some race condition related to default python encoding or something like that.