Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

lshw output UnicodeDecodeError #77

Open
Solvik opened this issue Sep 10, 2019 · 0 comments
Open

lshw output UnicodeDecodeError #77

Solvik opened this issue Sep 10, 2019 · 0 comments
Labels
type: bug Something isn't working

Comments

@Solvik
Copy link
Owner

Solvik commented Sep 10, 2019

  File "/usr/share/python/netbox-agent/lib/python3.4/site-packages/netbox_agent/lshw.py", line 16, in __init__
    'lshw -quiet -json'
  File "/usr/lib/python3.4/subprocess.py", line 736, in getoutput
    return getstatusoutput(cmd)[1]
  File "/usr/lib/python3.4/subprocess.py", line 717, in getstatusoutput
    data = check_output(cmd, shell=True, universal_newlines=True, stderr=STDOUT)
  File "/usr/lib/python3.4/subprocess.py", line 609, in check_output
    output, unused_err = process.communicate(inputdata, timeout=timeout)
  File "/usr/lib/python3.4/subprocess.py", line 947, in communicate
    stdout = _eintr_retry_call(self.stdout.read)
  File "/usr/lib/python3.4/subprocess.py", line 491, in _eintr_retry_call
    return func(*args)
  File "/usr/share/python/netbox-agent/lib/python3.4/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 164: ordinal not in range(128)```
@Solvik Solvik added the type: bug Something isn't working label Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant