Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

FileExeVersionExtractor.py", line 94, in main for line in Output.decode().split("\n"): #8

Open
zanesand opened this issue Sep 10, 2021 · 2 comments

Comments

@zanesand
Copy link

Describe the bug
Decode of 7zip output fails to split on Some files.

To Reproduce
Steps to reproduce the behavior:

  1. run the following in autopkg - python ..\autopkg\Code\autopkg run -vvvvv com.github.bigfix.bigfix.VMwareWorkstation-Win64

Expected behavior
Code should split the output but doesn't

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Python autopkg
@jgstew
Copy link
Owner

jgstew commented Sep 16, 2021

Did you ever figure out what the issue was? I couldn't reproduce it, but from the error, it seems like the issue is due to an invalid string decoding that could be ignored potentially.

@jgstew
Copy link
Owner

jgstew commented Aug 31, 2023

It might be that the decode method needs to be told to use UTF8 and to ignore / replace errors silently.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants