-
Notifications
You must be signed in to change notification settings - Fork 68
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
If "uname -rs" returns no output, _parse_uname_content causes exception #264
Comments
What's really strange about this is that the documentation says:
but my system does have the first three:
So quite why the code is relying on the lowest preference option is baffling me. |
I've found what was "breaking" |
We could do something like this in content = self._to_str(stdout).splitlines()
if content and len(content) >= 1:
return self._parse_uname_content(content)
return {} But then we would drop it just silently. Not sure if that is what we want. |
@brejoc I guess |
Addressed in #304, we can even include it in 1.6.0 if everyone's OK with that. Cheers |
Closing here as #304 is almost there. |
Python version 3.5.2
OS: Ubuntu 16.04.6 LTS
I'm trying to install
pip
by usingpython3 get-pip.py --user
. This is failing with "IndexError: list index out of range". Running a debugger shows that the root cause seems to be thatuname -rs
returns no output on my system. The individual options work but not when combined.Here is the exception stack trace:
The text was updated successfully, but these errors were encountered: