[issue27924] ensurepip raises TypeError after pip uninstall

2016-08-31 Thread Nick Coghlan
Nick Coghlan added the comment: Yeah, this is a known problem with pip where if you run it with sudo, it will happily uninstall system managed files from the system Python. To fix your system (if you haven't already): $ sudo dnf reinstall python2-pip (Anyone that accidentally uninstalls

[issue27924] ensurepip raises TypeError after pip uninstall

2016-08-31 Thread Donald Stufft
Donald Stufft added the comment: rewheel is definitely some Fedora patches. -- ___ Python tracker ___ ___

[issue27924] ensurepip raises TypeError after pip uninstall

2016-08-31 Thread John Mark Vandenberg
John Mark Vandenberg added the comment: Well, it wasnt my intention to remove the vendor package. There were two versions, and I assume it would remove the older package which wasnt supplied by the vendor, but it removed both. Anyways, I see that most of the code path is in

[issue27924] ensurepip raises TypeError after pip uninstall

2016-08-31 Thread Ned Deily
Ned Deily added the comment: Sorry, 2.7.12 built from source. -- ___ Python tracker ___ ___ Python-bugs-list

[issue27924] ensurepip raises TypeError after pip uninstall

2016-08-31 Thread Ned Deily
Changes by Ned Deily : -- nosy: +dstufft, ncoghlan ___ Python tracker ___ ___

[issue27924] ensurepip raises TypeError after pip uninstall

2016-08-31 Thread Ned Deily
Ned Deily added the comment: You used "pip uninstall" to uninstall the Fedora-supplied pip (/usr/bin/pip)? That would be a really *bad* thing to do. And does Fedora supply a modified ensurepip / pip? What happens if you try this with a vanilla Python 3.5.x built from source? My initial

[issue27924] ensurepip raises TypeError after pip uninstall

2016-08-31 Thread John Mark Vandenberg
New submission from John Mark Vandenberg: After uninstalling pip on Fedora 24, ensurepip get_records_to_pack returns None, causing rewheel.rewheel_from_record to raise TypeError: 'NoneType' object is not iterable. While this is probably not a scenario that CPython supports directly, it would