Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#45236 - [python2] platform.linux_distribution() is incorrect

Attached to Project: Arch Linux
Opened by Nathaniel Ringo (tikiking1) - Saturday, 06 June 2015, 20:48 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 07 June 2015, 02:34 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
In Python 2, platform.linux_distribution() returns ('', '', '') instead of ('arch', 'Arch', 'Linux').

This is upstream bug #20454 (http://bugs.python.org/issue20454), however, it seems unlikely to be merged and affects only Arch users. Message 241212 (http://bugs.python.org/msg241212) has instructions for fixing.

Additional info:
* pacman2 2.7.10-1

Steps to reproduce:
$ python2 -c 'import platform; print platform.linux_distribution()'
('', '', '')
$ python3 -c 'import platform; print(platform.linux_distribution())'
('arch', 'Arch', 'Linux')
This task depends upon

Closed by  Doug Newgard (Scimmia)
Sunday, 07 June 2015, 02:34 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#40928 
Comment by Nathaniel Ringo (tikiking1) - Saturday, 06 June 2015, 20:49 GMT
And because I'm in caffeine withdrawal,

Additional info:
* pacman2 2.7.10-1

should read

Additional info:
* python2 2.7.10-1

Loading...